@@ -797,7 +797,8 @@ def doIhaveInstOrSimData(self):
797797 return {'haveInstance' : out [0 ], 'haveSimData' : out [1 ]}
798798
799799 def rename (self , path , oldValue , newValue ):
800- command = 'sim.rename(self.' + path + ',"' + oldValue + '","' + newValue + '")'
800+ # command = 'sim.rename(self.' + path + ',"' + oldValue + '","' + newValue + '")'
801+ command = f'sim.rename(self.{ path } , { oldValue !r} , { newValue !r} )'
801802 logging .debug ('renaming ' + command )
802803
803804 eval (command )
@@ -935,11 +936,15 @@ def getAvailableCellModels(self):
935936 cell_models .add (cm )
936937 return list (cell_models )
937938
938- def getAvailableCellTypes (self ):
939- cell_types = set ([])
940- for p in self .netParams .cellParams :
941- cell_types .add (p )
942- return list (cell_types )
939+ def getAvailableCellModels (self ):
940+ return ["" , "VecStim" , "NetStim" , "IntFire1" ]
941+
942+ def getAvailableStimulationDistribution (self ):
943+ return ["normal" , "uniform" ]
944+
945+ def getAvailableStimulationPattern (self ):
946+ # self.netParams.popParams[name]['spikePattern'] = {}
947+ return ["" , "rhythmic" , "evoked" , "poisson" , "gauss" ]
943948
944949 def getAvailableSections (self ):
945950 sections = {}
0 commit comments