From 2fbc9e4424130ff385f0c2243e65ba7b560a5edc Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 2 Nov 2023 15:15:04 +1100 Subject: [PATCH] Forgot rabbit branding. --- src/ifcpatch/ifcpatch/recipes/PurgeData.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ifcpatch/ifcpatch/recipes/PurgeData.py b/src/ifcpatch/ifcpatch/recipes/PurgeData.py index 8b0217ea58..0fc7ed4c44 100644 --- a/src/ifcpatch/ifcpatch/recipes/PurgeData.py +++ b/src/ifcpatch/ifcpatch/recipes/PurgeData.py @@ -54,7 +54,7 @@ class Patcher: self.logger = logger def patch(self): - self.file.wrapped_data.header.file_name.name = "" + self.file.wrapped_data.header.file_name.name = "Rabbit" self.file.wrapped_data.header.file_name.time_stamp = ( datetime.datetime.utcnow() .replace(tzinfo=datetime.timezone.utc) @@ -62,17 +62,17 @@ class Patcher: .replace(microsecond=0) .isoformat() ) - self.file.wrapped_data.header.file_name.preprocessor_version = "" - self.file.wrapped_data.header.file_name.originating_system = "" + self.file.wrapped_data.header.file_name.preprocessor_version = "Rabbit" + self.file.wrapped_data.header.file_name.originating_system = "Rabbit" for element in self.file.by_type("IfcApplication"): - element.Version = "" - element.ApplicationFullName = "" - element.ApplicationIdentifier = "" + element.Version = "Rabbit" + element.ApplicationFullName = "Rabbit" + element.ApplicationIdentifier = "Rabbit" for element in self.file.by_type("IfcOrganization"): element[0] = None # Id - element.Name = "" + element.Name = "Rabbit" element.Description = None element.Roles = [] element.Addresses = [] @@ -91,8 +91,8 @@ class Patcher: self.file.remove(element) for element in self.file.by_type("IfcRoot"): - element.Name = "" - element.Description = "" + element.Name = "Rabbit" + element.Description = "Rabbit" for element in self.file.by_type("IfcContext"): element.ObjectType = None