@@ -434,14 +434,12 @@ def test_basic(self):
434
434
'property1' : False },
435
435
'GluSynapse' : {'property4' : 'test' ,
436
436
'property3' : 0.025 }})
437
- self .assertEqual (self .config .conditions .list_modification_names , {"applyTTX" , "no_SK_E2" })
438
- self .assertEqual (self .config .conditions .modification ("applyTTX" ).type .name , "TTX" )
439
- self .assertEqual (self .config .conditions .modification ("applyTTX" ).node_set , "single" )
440
- self .assertEqual (self .config .conditions .modification ("no_SK_E2" ).type .name ,
441
- "ConfigureAllSections" )
442
- self .assertEqual (self .config .conditions .modification ("no_SK_E2" ).node_set , "single" )
443
- self .assertEqual (self .config .conditions .modification ("no_SK_E2" ).section_configure ,
444
- "%s.gSK_E2bar_SK_E2 = 0" )
437
+ modifications = {o .name : o for o in self .config .conditions .modifications ()}
438
+ self .assertEqual (modifications ["applyTTX" ].type .name , "TTX" )
439
+ self .assertEqual (modifications ["applyTTX" ].node_set , "single" )
440
+ self .assertEqual (modifications ["no_SK_E2" ].type .name , "ConfigureAllSections" )
441
+ self .assertEqual (modifications ["no_SK_E2" ].node_set , "single" )
442
+ self .assertEqual (modifications ["no_SK_E2" ].section_configure , "%s.gSK_E2bar_SK_E2 = 0" )
445
443
446
444
self .assertEqual (self .config .list_report_names ,
447
445
{ "axonal_comp_centers" , "cell_imembrane" , "compartment" , "soma" , "lfp" })
0 commit comments