diff --git a/neuroml/nml/helper_methods.py b/neuroml/nml/helper_methods.py index a7f0bd4..37b1a94 100644 --- a/neuroml/nml/helper_methods.py +++ b/neuroml/nml/helper_methods.py @@ -1,5 +1,5 @@ -import sys import re +import sys # @@ -1872,7 +1872,7 @@ def add_membrane_property(self, property_name, **kwargs): """ self.setup_nml_cell(use_convention=False) - prop = self.biophysical_properties.membrane_properties.add(property_name, **kwargs) + prop = self.biophysical_properties.membrane_properties.add(property_name, validate=False, **kwargs) return prop @@ -2544,9 +2544,7 @@ def get_morphology_root(self): inserts = {} -inserts[ - "Network" -] = """ +inserts["Network"] = """ netGroup = h5file.create_group(h5Group, 'network') @@ -2578,9 +2576,7 @@ def get_morphology_root(self): """ -inserts[ - "Population" -] = """ +inserts["Population"] = """ popGroup = h5file.create_group(h5Group, 'population_'+self.id) popGroup._f_setattr("id", self.id) @@ -2622,9 +2618,7 @@ def __str__(self): """ -inserts[ - "Projection" -] = """ +inserts["Projection"] = """ projGroup = h5file.create_group(h5Group, 'projection_'+self.id) projGroup._f_setattr("id", self.id) @@ -2711,9 +2705,7 @@ def __str__(self): """ -inserts[ - "ElectricalProjection" -] = """ +inserts["ElectricalProjection"] = """ projGroup = h5file.create_group(h5Group, 'projection_'+self.id) projGroup._f_setattr("id", self.id) @@ -2786,9 +2778,7 @@ def __str__(self): """ -inserts[ - "ContinuousProjection" -] = """ +inserts["ContinuousProjection"] = """ projGroup = h5file.create_group(h5Group, 'projection_'+self.id) projGroup._f_setattr("id", self.id) @@ -2867,9 +2857,7 @@ def __str__(self): """ -inserts[ - "InputList" -] = """ +inserts["InputList"] = """ ilGroup = h5file.create_group(h5Group, 'inputList_'+self.id) ilGroup._f_setattr("id", self.id) diff --git a/neuroml/nml/nml.py b/neuroml/nml/nml.py index b636bf3..cc3c518 100644 --- a/neuroml/nml/nml.py +++ b/neuroml/nml/nml.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # -# Generated Wed May 8 18:20:27 2024 by generateDS.py version 2.43.3. +# Generated Thu May 30 18:34:59 2024 by generateDS.py version 2.43.3. # Python 3.11.9 (main, Apr 17 2024, 00:00:00) [GCC 14.0.1 20240411 (Red Hat 14.0.1-0)] # # Command line options: @@ -28,33 +28,24 @@ ModulenotfoundExp_ = ModuleNotFoundError except NameError: ModulenotfoundExp_ = ImportError -from six.moves import zip_longest -import os -import re as re_ import base64 import datetime as datetime_ import decimal as decimal_ -from lxml import etree as etree_ - +import inspect import math - +import os +import re as re_ +import typing from math import pi, sqrt - from operator import attrgetter -import inspect - +import natsort import networkx as nx - import numpy - -import natsort - -import typing - +from lxml import etree as etree_ +from six.moves import zip_longest import neuroml - import neuroml.neuro_lex_ids Validate_simpletypes_ = True @@ -49444,7 +49435,7 @@ def add_membrane_property(self, property_name, **kwargs): """ self.setup_nml_cell(use_convention=False) prop = self.biophysical_properties.membrane_properties.add( - property_name, **kwargs + property_name, validate=False, **kwargs ) return prop