Skip to content

Commit

Permalink
Add materialsdb.org basic data like id
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilWaechter committed Jun 19, 2021
1 parent ebd4fee commit 16355e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/materialsdb/ifc/material_psets.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,16 +239,16 @@
},
"materialsdb.org_layer": {
"id": {
"path": "id",
"primary_measure_type": null
"path": ["id"],
"primary_measure_type": "IfcIdentifier"
},
"aliases": {
"path": "aliases",
"primary_measure_type": null
"path": ["aliases"],
"primary_measure_type": "IfcLabel"
},
"displayorder": {
"path": "displayorder",
"primary_measure_type": null
"path": ["displayorder"],
"primary_measure_type": "IfcInteger"
}
},
"materialsdb.org_thermal": {
Expand All @@ -258,7 +258,7 @@
"lambda_value_dry"
],
"unit_factor": null,
"primary_measure_type": null
"primary_measure_type": "IfcThermalConductivityMeasure"
},
"W80_coef": {
"path": [
Expand Down
2 changes: 1 addition & 1 deletion src/materialsdb/ifc/project_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def create_materials(self, source: Materials):
continue
value = get_value(layer, definition, self.country)
if value:
unit_factor = definition["unit_factor"] or 1
unit_factor = definition.get("unit_factor", None) or 1
properties.append(
file.create_entity(
"IfcPropertySingleValue",
Expand Down

0 comments on commit 16355e7

Please sign in to comment.