Replace all ifcopenshell.api.run with ifcopenshell.api static functions.

This commit is contained in:
Dion Moult
2024-06-28 12:36:31 +10:00
parent b5d613989e
commit 07060fc769
432 changed files with 4633 additions and 4856 deletions
@@ -18,7 +18,7 @@
import datetime
import networkx as nx
import ifcopenshell.api
import ifcopenshell.api.sequence
import ifcopenshell.util.date
import ifcopenshell.util.sequence
@@ -184,8 +184,7 @@ class Usecase:
task = self.file.by_id(ifc_definition_id)
if not task.TaskTime:
continue
ifcopenshell.api.run(
"sequence.edit_task_time",
ifcopenshell.api.sequence.edit_task_time(
self.file,
task_time=task.TaskTime,
attributes={