Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup to fix problems with tests
  • Loading branch information
dwhswenson committed Oct 27, 2018
commit d3cc42bff65fdb7735333670a1ce6ebbe3857454
6 changes: 5 additions & 1 deletion openpathsampling/engines/features/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ def unmask_quantity(quantity):
simtk.unit.Quantity
wraps a regular numpy array, not a masked array
"""
q_unit = quantity.unit
try:
q_unit = quantity.unit
except AttributeError:
# no units
return quantity
return np.array(quantity.value_in_unit(q_unit)) * q_unit

# =============================================================================
Expand Down
2 changes: 1 addition & 1 deletion openpathsampling/netcdfplus/netcdfplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def __init__(self, filename, mode=None, fallback=None):
self._restore()

self.set_auto_mask(False)
self.set_always_mask(False)
# self.set_always_mask(False) ## didn't fix; errors older versions



Expand Down