Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
seankmartin committed Oct 22, 2024
1 parent d70c05f commit b19dd7d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ def combined_contrast_limit_plot(
) -> None:
"""Plot the CDF and the calculated limits."""
import matplotlib.pyplot as plt

fig, ax = plt.subplots()

ax.plot(cdf[0], cdf[1])
Expand Down
1 change: 1 addition & 0 deletions cryoet_data_portal_neuroglancer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ def get_window_limits_from_contrast_limits(

class ParameterOptimizer:
"""This class requires installatino of hyperopt package, version 0.2.7 or higher"""

def __init__(self, objective):
self.objective = objective

Expand Down
1 change: 0 additions & 1 deletion manual_tests/segmentation_from_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def grab_annotation():


def make_precomputed_segmentation():

encode_segmentation(
zarr_path,
output_path,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_shader.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_get_default_image_vr_shader():

contrast_threedee_control = shader_controls[threedee_contrast_name]
assert contrast_threedee_control["range"] == list(threedee_contrast_limits)
assert contrast_threedee_control["window"] == [-5.0, 5.0] # Window bigger than range
assert contrast_threedee_control["window"] == [-5.0, 5.0] # Window bigger than range

checkbox_control = shader_controls[f"invert_{threedee_contrast_name}"]
assert checkbox_control is True
Expand Down

0 comments on commit b19dd7d

Please sign in to comment.