mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
parse_ifcxml: drop the use of the removed method
This commit is contained in:
@@ -222,10 +222,7 @@ def open(
|
||||
format = guess_format(path)
|
||||
logger = logger_or_root(logger)
|
||||
if format == ".ifcXML":
|
||||
f = ifcopenshell_wrapper.parse_ifcxml(str(path.absolute()), *((logger,) if logger is not None else ()))
|
||||
if f:
|
||||
return file(f)
|
||||
raise OSError(f"Failed to parse .ifcXML file from {path}")
|
||||
raise NotImplementedError("Reading .ifcXML files is not currently supported.")
|
||||
if format == ".ifcZIP":
|
||||
with tempfile.TemporaryDirectory() as unzipped_path:
|
||||
with zipfile.ZipFile(path) as zf:
|
||||
|
||||
Reference in New Issue
Block a user