Remove add grid in add menu, and run black

This commit is contained in:
Dion Moult
2024-09-06 18:18:32 +10:00
parent 95b7a79c64
commit 7b8e234683
7 changed files with 28 additions and 31 deletions
@@ -266,6 +266,7 @@ def get_cost_values(cost_item: ifcopenshell.entity_instance) -> list[dict[str, s
print(results)
return results
def get_cost_schedule_types(file):
schema: ifcopenshell_wrapper.schema_definition = ifcopenshell_wrapper.schema_by_name(file.schema)
results = []
@@ -274,13 +275,16 @@ def get_cost_schedule_types(file):
for attribute in declaration.attributes():
if attribute.name() == "PredefinedType":
for enumeration in attribute.type_of_attribute().declared_type().enumeration_items():
results.append({
"name": enumeration,
'description': get_predefined_type_doc(version, "IfcCostSchedule",enumeration),
})
results.append(
{
"name": enumeration,
"description": get_predefined_type_doc(version, "IfcCostSchedule", enumeration),
}
)
break
return results
class CostValueUnserialiser:
def parse(self, formula: str):
l = lark.Lark(