Skip to content

Commit

Permalink
fix SIM114 in plot module
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Dec 20, 2024
1 parent 1be47c7 commit 9de5625
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deltametrics/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,8 @@ def get_display_arrays(VarInst, data=None):
or (data in VarInst.strat._preserved_names)
):
VarInst.strat._check_knows_spacetime() # always False
# elif data in VarInst.strat._preserved_names:
# VarInst.strat._check_knows_spacetime() # always False
elif data in VarInst.strat._stratigraphy_names:
_z = VarInst[VarInst.dims[0]]
_z = np.append(_z, _z[-1])
Expand Down Expand Up @@ -974,6 +976,8 @@ def _reshape_long(X):
or (data in VarInst.strat._preserved_names)
):
VarInst.strat._check_knows_spacetime() # always False
# elif data in VarInst.strat._preserved_names:
# VarInst.strat._check_knows_spacetime() # always False
elif data in VarInst.strat._stratigraphy_names:
raise NotImplementedError # not sure best implementation
else:
Expand Down Expand Up @@ -1041,6 +1045,8 @@ def get_display_limits(VarInst, data=None, factor=1.5):
or (data in VarInst.strat._preserved_names)
):
VarInst.strat._check_knows_spacetime() # always False
# elif data in VarInst.strat._preserved_names:
# VarInst.strat._check_knows_spacetime() # always False
elif data in VarInst.strat._stratigraphy_names:
return np.min(_S), np.max(_S), np.min(_Z), np.max(_Z) * factor
else:
Expand Down

0 comments on commit 9de5625

Please sign in to comment.