black format src/pyodide

This commit is contained in:
Andrej730
2025-11-17 12:41:27 +05:00
parent bec46562f5
commit db5ec77730
4 changed files with 39 additions and 55 deletions
+9 -6
View File
@@ -1,26 +1,29 @@
async def test_pset():
import ifcopenshell.api.pset
import ifcopenshell.api.material
errors = []
try:
model = ifcopenshell.file()
steel_material = ifcopenshell.api.material.add_material(model, name="S355 Steel")
steel_pset = ifcopenshell.api.pset.add_pset(model,
product=steel_material,
name="Pset_MaterialSteel")
steel_pset = ifcopenshell.api.pset.add_pset(model, product=steel_material, name="Pset_MaterialSteel")
ifcopenshell.api.pset.edit_pset(model,
ifcopenshell.api.pset.edit_pset(
model,
pset=steel_pset,
properties={
"YieldStress": 355*(10**6), # Pa (355 MPa)
})
"YieldStress": 355 * (10**6), # Pa (355 MPa)
},
)
except Exception as e:
errors.append(f"API Error: {e}")
return errors
async def test_doc():
import ifcopenshell.util.doc
errors = []
try:
ifcopenshell.util.doc.get_entity_doc("IFC4", "IfcWall", recursive=True)