Skip to content
Snippets Groups Projects

F h5 cfood

Merged Henrik tom Wörden requested to merge f-h5-cfood into dev
3 files
+ 15
17
Compare changes
  • Side-by-side
  • Inline

Files

@@ -48,12 +48,7 @@ class ExampleH5CFood(H5CFood):
@@ -48,12 +48,7 @@ class ExampleH5CFood(H5CFood):
self.identifiables.append(self.identifiable_root)
self.identifiables.append(self.identifiable_root)
def special_treatment(self, key, value, dtype):
def special_treatment(self, key, value, dtype):
if key == "ship_imo":
if key == "attr_data_root":
ship = db.Record()
return "single_attribute", value, dtype
ship.add_parent("Ship")
ship.add_property("IMO Number", value)
self.identifiables.append(ship)
return "Ship", ship, "Ship"
return key, value, dtype
return key, value, dtype
Loading