mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
black
This commit is contained in:
@@ -490,8 +490,8 @@ class IfcCsv:
|
||||
concat: str,
|
||||
) -> None:
|
||||
# Patterns to skip during import (substrings)
|
||||
SKIP_PATTERNS = {'count', 'material'}
|
||||
|
||||
SKIP_PATTERNS = {"count", "material"}
|
||||
|
||||
try:
|
||||
element = ifc_file.by_guid(row[0])
|
||||
except:
|
||||
@@ -509,11 +509,11 @@ class IfcCsv:
|
||||
elif value == bool_false:
|
||||
value = False
|
||||
key = attributes[i] or headers[i]
|
||||
|
||||
|
||||
# Skip keys containing certain patterns
|
||||
if any(pattern in key.lower() for pattern in SKIP_PATTERNS):
|
||||
continue
|
||||
|
||||
|
||||
ifcopenshell.util.selector.set_element_value(ifc_file, element, key, value, concat=concat)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user