Skip to content

Commit ccb4f6d

Browse files
modified codes for xml generation
1 parent be0bbde commit ccb4f6d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/modelspec/base_types.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import bson
44
import xml.etree.ElementTree as ET
55
import xml.dom.minidom
6-
import xmltodict
76
import sys
87

98
import numpy as np
@@ -269,7 +268,6 @@ def to_xml_file(
269268
self,
270269
filename: Optional[str] = None,
271270
include_metadata: bool = True,
272-
root_name="modelspec",
273271
) -> str:
274272
from modelspec.utils import build_xml_element
275273

@@ -378,7 +376,7 @@ def from_xml_file(cls, filename: str) -> "Base":
378376
from modelspec.utils import element_to_dict, handle_id, convert_values
379377

380378
with open(filename) as infile:
381-
tree = ET.parse(filename)
379+
tree = ET.parse(infile)
382380
root = tree.getroot()
383381

384382
data_dict = element_to_dict(root)

0 commit comments

Comments
 (0)