diff --git a/neuroml/nml/helper_methods.py b/neuroml/nml/helper_methods.py index a394630..24a79e1 100644 --- a/neuroml/nml/helper_methods.py +++ b/neuroml/nml/helper_methods.py @@ -1845,7 +1845,12 @@ def add_membrane_property(self, property_name, **kwargs): """ self.setup_nml_cell(use_convention=False) - prop = self.biophysical_properties.membrane_properties.add(property_name, validate=False, **kwargs) + + if "validate" in kwargs.keys(): + prop = self.biophysical_properties.membrane_properties.add(property_name, **kwargs) + else: + prop = self.biophysical_properties.membrane_properties.add(property_name, validate=False, **kwargs) + return prop diff --git a/neuroml/nml/nml.py b/neuroml/nml/nml.py index b19790d..0084e3c 100644 --- a/neuroml/nml/nml.py +++ b/neuroml/nml/nml.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # -# Generated Wed Oct 16 16:26:54 2024 by generateDS.py version 2.44.1. +# Generated Wed Nov 6 11:43:32 2024 by generateDS.py version 2.44.1. # Python 3.11.10 (main, Sep 9 2024, 00:00:00) [GCC 14.2.1 20240801 (Red Hat 14.2.1-1)] # # Command line options: @@ -49401,9 +49401,16 @@ def add_membrane_property(self, property_name, **kwargs): """ self.setup_nml_cell(use_convention=False) - prop = self.biophysical_properties.membrane_properties.add( - property_name, validate=False, **kwargs - ) + + if "validate" in kwargs.keys(): + prop = self.biophysical_properties.membrane_properties.add( + property_name, **kwargs + ) + else: + prop = self.biophysical_properties.membrane_properties.add( + property_name, validate=False, **kwargs + ) + return prop def add_channel_density_v(