mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
ifc5d - strip " Cost" suffix when importing csv
" Cost" is a suffix is added on export, so it makes to get rid of it on import.
This commit is contained in:
@@ -157,7 +157,10 @@ class Csv2Ifc:
|
||||
else:
|
||||
# Very fragile part of the code.
|
||||
self.categories = { # pyright: ignore [reportAttributeAccessIssue]
|
||||
name: index for name, index in self.headers.items() if name not in MAIN_CSV_HEADER_COLUMNS
|
||||
# ' Cost' is a sufix added on export.
|
||||
name.removesuffix(" Cost"): index
|
||||
for name, index in self.headers.items()
|
||||
if name not in MAIN_CSV_HEADER_COLUMNS
|
||||
}
|
||||
if self.categories:
|
||||
print(
|
||||
|
||||
Reference in New Issue
Block a user