Skip to content

Commit

Permalink
Updated typing in StandardPlotOutput.py
Browse files Browse the repository at this point in the history
  • Loading branch information
braden6521 committed Jan 15, 2025
1 parent 9193d3f commit 1328844
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opencsp/common/lib/csp/StandardPlotOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class _OptionsSlopeVis:
resolution: float = 0.01
"""Plot x/y sample resolution (meters) (default 0.01)"""
clim: float = 5
clim: float | tuple[float, float, float] = 5
"""Sets colorbar limits (mrad). Plot limits set to [-clim, clim] for x or y slope plots and [0, clim] for slope magnitude plots.
Can be single value of tuple of three values to map to [x, y, magnitude] plots individually.
(default 5)"""
Expand All @@ -47,7 +47,7 @@ class _OptionsSlopeVis:
class _OptionsSlopeDeviationVis:
resolution: float = 0.01
"""Plot x/y sample resolution (meters) (default 0.01)"""
clim: float = 5
clim: float | tuple[float, float, float] = 5
"""Sets colorbar limits (mrad). Plot limits set to [-clim, clim] for x or y slope plots and [0, clim] for slope magnitude plots.
Can be single value of tuple of three values to map to [x, y, magnitude] plots individually.
(default 5)"""
Expand All @@ -71,7 +71,7 @@ class _OptionsSlopeDeviationVis:
class _OptionsCurvatureVis:
resolution: float = 0.01
"""Plot x/y sample resolution (meters) (default 0.01)"""
clim: float = 50
clim: float | tuple[float, float, float] = 50
"""Sets colorbar limits (mrad/meter). Plot limits set to [-clim, clim].
Can be single value of tuple of three values to map to [x, y, combined] plots individually. (default 50)"""
processing: list[str] | tuple[list[str], list[str], list[str]] = field(default_factory=list)
Expand Down

0 comments on commit 1328844

Please sign in to comment.