@@ -170,7 +170,7 @@ class C302NRNSimulation:
170170 max_ca = 4e-7
171171 max_ca_found = - 1
172172
173- def __init__ (self , tstop = 100 , dt = 0.005 , activity_file = None , verbose = True ):
173+ def __init__ (self , tstop = 100 , dt = 0.005 , activity_file = None , verbose = False ):
174174 # from LEMS_c302_C1_Full_nrn import NeuronSimulation
175175 # from LEMS_c302_nrn import NeuronSimulation
176176
@@ -207,11 +207,12 @@ def save_results(self):
207207 self .ns .save_results ()
208208
209209 def run (self , skip_to_time = - 1 ):
210- print_ ("> Current NEURON time: %s ms" % self .h .t )
210+ print_ ("> Current NEURON time pre advance : %s ms" % self .h .t )
211211
212212 self .ns .advance ()
213213
214- print_ ("< Current NEURON time: %s ms" % self .h .t )
214+ if self .verbose :
215+ print_ ("< Current NEURON time: %s ms" % self .h .t )
215216
216217 if hasattr (self .h , "a_MDR01" ):
217218 var_pre = "a_M"
@@ -302,13 +303,14 @@ def run(self, skip_to_time=-1):
302303 )
303304 except AttributeError as e :
304305 if var == "%sVL24" % var_pre :
305- print_ (
306- "Problem passing neuronal output of %s to muscle in Sibernetic: %s"
307- % (var , e )
308- )
309- print_ (
310- "Note: not an issue as no muscle MVL24 in the real C. elegans"
311- )
306+ if self .verbose :
307+ print_ (
308+ "Problem passing neuronal output of %s to muscle in Sibernetic: %s"
309+ % (var , e )
310+ )
311+ print_ (
312+ "Note: not an issue as no muscle MVL24 in the real C. elegans"
313+ )
312314 val = 0
313315 else :
314316 raise Exception (
0 commit comments