Skip to content

Commit

Permalink
black fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
engrosamaali91 committed Aug 24, 2023
1 parent 7a74afa commit 91ddc89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions whippersnappy/config_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def fthresh_value_cb(self, new_value):
def fmax_slider_value_cb(self):
"""
Callback function for user-modified fmax slider.
This function is triggered when the user modifies the fmax slider. It
stores the selected value and updates the corresponding user input box.
"""
Expand Down Expand Up @@ -266,7 +266,7 @@ def convert_value_to_range(self, value, old_limits, new_limits):
-------
new_value : float
Converted value.
"""
"""
old_range = old_limits[1] - old_limits[0]
new_range = new_limits[1] - new_limits[0]
new_value = (((value - old_limits[0]) * new_range) / old_range) + new_limits[0]
Expand Down
6 changes: 3 additions & 3 deletions whippersnappy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
def normalize_mesh(v, scale=1.0):
"""
Normalize mesh vertex coordinates.
- Center their bounding box at the origin.
- Ensure that the longest side-length is equal to the scale variable (default 1).
Expand Down Expand Up @@ -199,8 +199,8 @@ def rescale_overlay(values, minval=None, maxval=None):
def binary_color(values, thres, color_low, color_high):
"""
Create a binary colormap based on a threshold value.
This function assigns colors to input values based on whether they are
This function assigns colors to input values based on whether they are
below or equal to the threshold (thres) or greater than the threshold.
Values below thres are color_low, others are color_high.
Expand Down

0 comments on commit 91ddc89

Please sign in to comment.