Skip to content

Commit

Permalink
Start Python CI15
Browse files Browse the repository at this point in the history
  • Loading branch information
breimanntools committed Apr 5, 2024
1 parent 650bd95 commit 5bf1a94
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@

# Helper function
def adjust_vmin_vmax(vmin=None, vmax=None):
vmin = -10000 if vmin < -10000 else vmin
vmax = 10000 if vmax > 10000 else vmax
if vmin is not None:
vmin = -10000 if vmin < -10000 else vmin
if vmax is not None:
vmax = 10000 if vmax > 10000 else vmax
return vmin, vmax


Expand Down
6 changes: 4 additions & 2 deletions tests/unit/cpp_plot_tests/test_cpp_plot_feature_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@

# Helper function
def adjust_vmin_vmax(vmin=None, vmax=None):
vmin = -10000 if vmin < -10000 else vmin
vmax = 10000 if vmax > 10000 else vmax
if vmin is not None:
vmin = -10000 if vmin < -10000 else vmin
if vmax is not None:
vmax = 10000 if vmax > 10000 else vmax
return vmin, vmax


Expand Down
7 changes: 5 additions & 2 deletions tests/unit/cpp_plot_tests/test_cpp_plot_heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@
DICT_COLOR = dict(zip(LIST_CAT, VALID_COLORS))


# Helper functions
def adjust_vmin_vmax(vmin=None, vmax=None):
vmin = -10000 if vmin < -10000 else vmin
vmax = 10000 if vmax > 10000 else vmax
if vmin is not None:
vmin = -10000 if vmin < -10000 else vmin
if vmax is not None:
vmax = 10000 if vmax > 10000 else vmax
return vmin, vmax


Expand Down

0 comments on commit 5bf1a94

Please sign in to comment.