We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be0bbde commit ccb4f6dCopy full SHA for ccb4f6d
src/modelspec/base_types.py
@@ -3,7 +3,6 @@
3
import bson
4
import xml.etree.ElementTree as ET
5
import xml.dom.minidom
6
-import xmltodict
7
import sys
8
9
import numpy as np
@@ -269,7 +268,6 @@ def to_xml_file(
269
268
self,
270
filename: Optional[str] = None,
271
include_metadata: bool = True,
272
- root_name="modelspec",
273
) -> str:
274
from modelspec.utils import build_xml_element
275
@@ -378,7 +376,7 @@ def from_xml_file(cls, filename: str) -> "Base":
378
376
from modelspec.utils import element_to_dict, handle_id, convert_values
379
377
380
with open(filename) as infile:
381
- tree = ET.parse(filename)
+ tree = ET.parse(infile)
382
root = tree.getroot()
383
384
data_dict = element_to_dict(root)
0 commit comments