From 69e8cfaf01a4d7ca5a58971d516cadf672016f77 Mon Sep 17 00:00:00 2001 From: Marco Capitani Date: Tue, 27 Mar 2018 14:55:59 +0200 Subject: irati: fix for da.map calling str(dif) instead of dif.name fixes #42 --- rumba/prototypes/irati.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rumba/prototypes/irati.py b/rumba/prototypes/irati.py index 0807e10..b951d58 100644 --- a/rumba/prototypes/irati.py +++ b/rumba/prototypes/irati.py @@ -266,8 +266,8 @@ class Experiment(mod.Experiment): if len(self.dif_ordering) > 0: for adm in \ irati_templates.da_map_base["applicationToDIFMappings"]: - adm["difName"] = "%s" % (self.dif_ordering[-1],) - else: + adm["difName"] = "%s" % (self.dif_ordering[-1].name,) + else: # not yet supported irati_templates.da_map_base["applicationToDIFMappings"] = [] for apm in app_mappings: irati_templates.da_map_base["applicationToDIFMappings"]\ -- cgit v1.2.3