From dd87bfed945a1268b07f254955d2eda5f69c4d83 Mon Sep 17 00:00:00 2001 From: Benna Hugo Date: Tue, 26 Nov 2019 09:42:06 +0200 Subject: [PATCH] fix field handling bug stemming from new numpy --- tricolour/apps/tricolour/tricolourexe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tricolour/apps/tricolour/tricolourexe.py b/tricolour/apps/tricolour/tricolourexe.py index bff8d90..6bf74f4 100644 --- a/tricolour/apps/tricolour/tricolourexe.py +++ b/tricolour/apps/tricolour/tricolourexe.py @@ -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)])