From 3fd944a95654ee5f500febe2be49d8414c68d642 Mon Sep 17 00:00:00 2001 From: HassanEmam Date: Mon, 25 Oct 2021 10:56:45 +0100 Subject: [PATCH] Fixing bugs for Scheduling Module IFC4D (#1826) * P6XML Parser failing on calendar type * add work plan references a get_person which is not an attribute. modified to get_user to work Co-authored-by: Dion Moult --- src/ifc4d/ifc4d/p62ifc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ifc4d/ifc4d/p62ifc.py b/src/ifc4d/ifc4d/p62ifc.py index 5787b8a1ad..c02530b2d2 100644 --- a/src/ifc4d/ifc4d/p62ifc.py +++ b/src/ifc4d/ifc4d/p62ifc.py @@ -185,8 +185,7 @@ class P62Ifc: def create_calendars(self): for calendar in self.calendars.values(): calendar["ifc"] = ifcopenshell.api.run( - "sequence.add_work_calendar", self.file, name=calendar["Name"], predefined_type=calendar["Type"] - ) + "sequence.add_work_calendar", self.file, name=calendar["Name"]) self.process_working_week(calendar["StandardWorkWeek"], calendar["ifc"]) self.process_exceptions(calendar["HolidayOrExceptions"], calendar["ifc"])