From 79fe1bfcfc8aee0cf59e1f7363d595e61f054479 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 12 Jan 2025 17:45:43 +1100 Subject: [PATCH] Minor fix from new patch recipe in PR #5441 (src no longer required) --- src/ifcpatch/ifcpatch/recipes/AssignConstituentFractions.py | 3 +-- src/ifcpatch/ifcpatch/recipes/RegenerateGlobalIds.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ifcpatch/ifcpatch/recipes/AssignConstituentFractions.py b/src/ifcpatch/ifcpatch/recipes/AssignConstituentFractions.py index 42726cb2ee..bbcde73316 100644 --- a/src/ifcpatch/ifcpatch/recipes/AssignConstituentFractions.py +++ b/src/ifcpatch/ifcpatch/recipes/AssignConstituentFractions.py @@ -17,8 +17,7 @@ class Patcher: and assigns fraction values accordingly. """ - def __init__(self, src: str, file: ifcopenshell.file, logger: Logger, *args): - self.src = src + def __init__(self, file: ifcopenshell.file, logger: Logger): self.file = file self.logger = logger diff --git a/src/ifcpatch/ifcpatch/recipes/RegenerateGlobalIds.py b/src/ifcpatch/ifcpatch/recipes/RegenerateGlobalIds.py index dec1a1db10..63c595ca9e 100644 --- a/src/ifcpatch/ifcpatch/recipes/RegenerateGlobalIds.py +++ b/src/ifcpatch/ifcpatch/recipes/RegenerateGlobalIds.py @@ -22,7 +22,7 @@ from logging import Logger class Patcher: - def __init__(self, file: ifcopenshell.file, logger: Logger, only_duplicates=False): + def __init__(self, file: ifcopenshell.file, logger: Logger, only_duplicates: bool = False): """Regenerate GlobalIds in an IFC model All root elements in an IFC model must be identified by a unique Global