Skip to content

Commit

Permalink
fix field handling bug stemming from new numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
ratt-priv-ci committed Nov 26, 2019
1 parent 3e29ebb commit dd87bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tricolour/apps/tricolour/tricolourexe.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def _main(args):
",".join(flatten_field_names),
",".join(fieldnames)))

field_dict = dict([(np.where(fieldnames == fn)[0][0], fn)
field_dict = dict([(fieldnames.index(fn), fn)
for fn in flatten_field_names])
else:
field_dict = dict([(findx, fn) for findx, fn in enumerate(fieldnames)])
Expand Down

0 comments on commit dd87bfe

Please sign in to comment.