import HybridTut  # import parameters file
from netpyne import sim  # import netpyne sim module

np = HybridTut.netParams
print("********************\n*\n*  Note: setting noise to 1, since noise can only be 0 or 1 in NeuroML export currently!\n*\n********************")
np.stimSourceParams['bkg']['noise'] = 1

sim.createExportNeuroML2(netParams = np,
                       simConfig = HybridTut.simConfig,
                       reference = 'HybridTut')  # create and export network to NeuroML 2

@@ -491,8 +491,130 @@
 uroML 2%0A
+%0A%0A###### Validate the NeuroML ######%0A%0Afrom neuroml.utils import validate_neuroml2%0A%0Avalidate_neuroml2('HybridTut.net.nml')%0A

Validate nml after generating