Skip to content

Commit

Permalink
Fix converter error on single value fields
Browse files Browse the repository at this point in the history
  • Loading branch information
corentinlger committed Aug 27, 2024
1 parent 692c85c commit 72760e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vivarium/controllers/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def nve_data_to_state_changes(nve_data, state):
val = np.array(state.field(nf)[np.array(ent_idx)])
col_map = None
col_idx = None
if isinstance(nve_tuples[0].col, slice):
elif isinstance(nve_tuples[0].col, slice):
val = np.array(state.field(nf)[np.array(ent_idx)])
col_map = nve_tuples[0].col
col_idx = None
Expand Down

0 comments on commit 72760e2

Please sign in to comment.