File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -109,16 +109,13 @@ class neuroml(Base):
109
109
xmlns : str = field (
110
110
validator = instance_of (str ), default = "http://www.neuroml.org/schema/neuroml2"
111
111
)
112
- xmlns_url : str = field (
112
+ xmlns_xsi : str = field (
113
113
validator = instance_of (str ), default = "http://www.w3.org/2001/XMLSchema-instance"
114
114
)
115
115
xmlns_loc : str = field (
116
- validator = instance_of (str ), default = "http://www.neuroml.org/schema/neuroml2"
117
- )
118
- xmln_loc_2 : str = field (
119
- validator = instance_of (str ),
120
- default = "https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2.3.xsd" ,
116
+ validator = instance_of (str ), default = "http://www.neuroml.org/schema/neuroml2https://raw.github.com/NeuroML/NeuroML2/development/Schemas/NeuroML2/NeuroML_v2.3.xsd"
121
117
)
118
+
122
119
123
120
izhikevich2007Cells : List [izhikevich2007Cell ] = field (factory = list )
124
121
pulseGenerators : List [pulseGenerator ] = field (factory = list )
Original file line number Diff line number Diff line change @@ -267,10 +267,10 @@ def build_xml_element(data, parent=None):
267
267
# This defines the various namespaces and schemaLocation of the generated xml
268
268
if hasattr (data , "xmlns" ):
269
269
parent .set ("xmlns" , data .xmlns )
270
- if hasattr (data , "xmlns_url " ):
271
- parent .set ("xmlns:xsi" , data .xmlns_url )
270
+ if hasattr (data , "xmlns_xsi " ):
271
+ parent .set ("xmlns:xsi" , data .xmlns_xsi )
272
272
if hasattr (data , "xmlns_loc" ):
273
- parent .set ("xsi:schemaLocation" , str (data .xmlns_loc + " \n " + data . xmln_loc_2 ))
273
+ parent .set ("xsi:schemaLocation" , str (data .xmlns_loc ))
274
274
return parent
275
275
276
276
You can’t perform that action at this time.
0 commit comments