Skip to content

Commit

Permalink
FIX: Fix wrap action check when preparing subset geometries #509
Browse files Browse the repository at this point in the history
Changed state variable checked when determining wrap action.
  • Loading branch information
bekozi committed Jan 3, 2020
1 parent 54fa10d commit 0fa9f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocgis/variable/geom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ def prepare(self, archetype=None):
archetype_wrapped_state = archetype.wrapped_state
if archetype_wrapped_state not in (WrappedState.UNKNOWN, None):
if archetype_wrapped_state != self_wrapped_state:
if archetype_wrapped_state == WrappedState.WRAPPED and ret.wrapped_state == WrappedState.UNWRAPPED:
if archetype_wrapped_state == WrappedState.WRAPPED and self_wrapped_state == WrappedState.UNWRAPPED:
action = WrapAction.WRAP
elif archetype_wrapped_state == WrappedState.UNWRAPPED and self_wrapped_state == WrappedState.WRAPPED:
action = WrapAction.UNWRAP
Expand Down

0 comments on commit 0fa9f6f

Please sign in to comment.