mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Quality - run black on api/sequence directory
This commit is contained in:
@@ -25,12 +25,17 @@ class Usecase:
|
||||
self.settings[key] = value
|
||||
|
||||
def execute(self):
|
||||
recurrence = self.file.createIfcRecurrencePattern(self.settings["recurrence_type"])
|
||||
recurrence = self.file.createIfcRecurrencePattern(
|
||||
self.settings["recurrence_type"]
|
||||
)
|
||||
|
||||
if self.settings["parent"].is_a("IfcWorkTime"):
|
||||
if (
|
||||
self.settings["parent"].RecurrencePattern
|
||||
and len(self.file.get_inverse(self.settings["parent"].RecurrencePattern)) == 1
|
||||
and len(
|
||||
self.file.get_inverse(self.settings["parent"].RecurrencePattern)
|
||||
)
|
||||
== 1
|
||||
):
|
||||
self.file.remove(self.settings["parent"].RecurrencePattern)
|
||||
self.settings["parent"].RecurrencePattern = recurrence
|
||||
|
||||
Reference in New Issue
Block a user