mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Quality - run black on api/sequence directory
This commit is contained in:
@@ -33,7 +33,15 @@ class Usecase:
|
||||
if isinstance(value, float):
|
||||
value = self.file.createIfcRatioMeasure(value)
|
||||
else:
|
||||
value = self.file.createIfcDuration(ifcopenshell.util.date.datetime2ifc(value, "IfcDuration"))
|
||||
value = self.file.createIfcDuration(
|
||||
ifcopenshell.util.date.datetime2ifc(value, "IfcDuration")
|
||||
)
|
||||
setattr(self.settings["lag_time"], name, value)
|
||||
for rel in [r for r in self.file.get_inverse(self.settings["lag_time"]) if r.is_a("IfcRelSequence")]:
|
||||
ifcopenshell.api.run("sequence.cascade_schedule", self.file, task=rel.RelatedProcess)
|
||||
for rel in [
|
||||
r
|
||||
for r in self.file.get_inverse(self.settings["lag_time"])
|
||||
if r.is_a("IfcRelSequence")
|
||||
]:
|
||||
ifcopenshell.api.run(
|
||||
"sequence.cascade_schedule", self.file, task=rel.RelatedProcess
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user