Skip to content

Commit

Permalink
Merge pull request #1103 from choderalab/fix-1100
Browse files Browse the repository at this point in the history
Fix #1100: NetCDF checkpoint writing raises an error
  • Loading branch information
andrrizzi authored Oct 5, 2018
2 parents 583f4a2 + 336f923 commit 39d505a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Yank/multistate/multistatereporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,8 @@ def _calculate_checkpoint_iteration(self, iteration):
"""
checkpoint_index, remainder = divmod(iteration, self._checkpoint_interval)
if remainder == 0:
return checkpoint_index
# NetCDF variables can't be assigned using numpy integers.
return int(checkpoint_index)
return None

def _map_iteration_to_good(self, iteration):
Expand Down

0 comments on commit 39d505a

Please sign in to comment.