Skip to content

Commit

Permalink
fix linting and requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Feb 27, 2024
1 parent 25fd212 commit ed153c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ pyyaml>=6.0
xarray>=0.20.2
tifffile>=2022.5.4
scipy>=1.8.0,<1.9.0
ipympl>=0.9.1
ipywidgets>=8.1.1
12 changes: 4 additions & 8 deletions specsanalyzer/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,23 +345,19 @@ def crop_tool(
try:
ang_range_min = (
kwds["ang_range_min"]
if "ang_range_min" in kwds.keys()
if "ang_range_min" in kwds
else self._config["ang_range_min"]
)
ang_range_max = (
kwds["ang_range_max"]
if "ang_range_max" in kwds.keys()
if "ang_range_max" in kwds
else self._config["ang_range_max"]
)
ek_range_min = (
kwds["ek_range_min"]
if "ek_range_min" in kwds.keys()
else self._config["ang_range_min"]
kwds["ek_range_min"] if "ek_range_min" in kwds else self._config["ek_range_min"]
)
ek_range_max = (
kwds["ek_range_max"]
if "ek_range_max" in kwds.keys()
else self._config["ek_range_max"]
kwds["ek_range_max"] if "ek_range_max" in kwds else self._config["ek_range_max"]
)
ang_min = (
ang_range_min
Expand Down

0 comments on commit ed153c6

Please sign in to comment.