@@ -530,8 +530,11 @@ class Validation(WorkflowTaskRequiringMechanisms, IPyParallelTask):
530530 def requires (self ):
531531 """ """
532532
533- plot_optimisation = self .access_point .pipeline_settings .plot_optimisation
534533 compile_mechanisms = self .access_point .pipeline_settings .compile_mechanisms
534+ plot_parameter_evolution = self .access_point .pipeline_settings .plot_parameter_evolution
535+ plot_distributions = self .access_point .pipeline_settings .plot_distributions
536+ plot_traces = self .access_point .pipeline_settings .plot_traces
537+ plot_scores = self .access_point .pipeline_settings .plot_scores
535538
536539 to_run = [
537540 StoreBestModels (
@@ -558,7 +561,7 @@ def requires(self):
558561 )
559562 )
560563
561- if plot_optimisation :
564+ if any (( plot_parameter_evolution , plot_distributions , plot_scores , plot_traces )) :
562565 to_run .append (
563566 PlotModels (
564567 emodel = self .emodel ,
@@ -1096,21 +1099,6 @@ def requires(self):
10961099 )
10971100 ]
10981101
1099- plot_optimisation = self .access_point .pipeline_settings .plot_optimisation
1100-
1101- if plot_optimisation :
1102- to_run .append (
1103- PlotValidatedDistributions (
1104- emodel = self .emodel ,
1105- etype = self .etype ,
1106- ttype = self .ttype ,
1107- mtype = self .mtype ,
1108- species = self .species ,
1109- brain_region = self .brain_region ,
1110- iteration_tag = self .iteration_tag ,
1111- )
1112- )
1113-
11141102 return to_run
11151103
11161104
@@ -1249,7 +1237,13 @@ def requires(self):
12491237 def run (self ):
12501238 """ """
12511239
1252- plot_optimisation = self .access_point .pipeline_settings .plot_optimisation
1240+ plot_parameter_evolution = self .access_point .pipeline_settings .plot_parameter_evolution
1241+ plot_distributions = self .access_point .pipeline_settings .plot_distributions
1242+ plot_traces = self .access_point .pipeline_settings .plot_traces
1243+ plot_scores = self .access_point .pipeline_settings .plot_scores
1244+ plot_thumbnail = self .access_point .pipeline_settings .plot_thumbnail
1245+ plot_dendritic_ISI_CV = self .access_point .pipeline_settings .plot_dendritic_ISI_CV
1246+ plot_dendritic_rheobase = self .access_point .pipeline_settings .plot_dendritic_rheobase
12531247 plot_currentscape = self .access_point .pipeline_settings .plot_currentscape
12541248 plot_bAP_EPSP = self .access_point .pipeline_settings .plot_bAP_EPSP
12551249 plot_IV_curves = self .access_point .pipeline_settings .plot_IV_curves
@@ -1271,13 +1265,13 @@ def run(self):
12711265 figures_dir = Path ("./figures" ) / self .emodel ,
12721266 # False because already done in PlotOptimisation task
12731267 plot_optimisation_progress = False ,
1274- plot_parameter_evolution = plot_optimisation ,
1275- plot_distributions = plot_optimisation ,
1276- plot_traces = plot_optimisation ,
1277- plot_scores = plot_optimisation ,
1278- plot_thumbnail = plot_optimisation ,
1279- plot_dendritic_ISI_CV = plot_optimisation ,
1280- plot_dendritic_rheobase = plot_optimisation ,
1268+ plot_parameter_evolution = plot_parameter_evolution ,
1269+ plot_distributions = plot_distributions ,
1270+ plot_traces = plot_traces ,
1271+ plot_scores = plot_scores ,
1272+ plot_thumbnail = plot_thumbnail ,
1273+ plot_dendritic_ISI_CV = plot_dendritic_ISI_CV ,
1274+ plot_dendritic_rheobase = plot_dendritic_rheobase ,
12811275 plot_currentscape = plot_currentscape ,
12821276 plot_bAP_EPSP = plot_bAP_EPSP ,
12831277 plot_IV_curve = plot_IV_curves ,
@@ -1299,30 +1293,36 @@ def output(self):
12991293 """ """
13001294
13011295 batch_size = self .access_point .pipeline_settings .optimisation_batch_size
1302- plot_optimisation = self .access_point .pipeline_settings .plot_optimisation
1296+ plot_parameter_evolution = self .access_point .pipeline_settings .plot_parameter_evolution
1297+ plot_distributions = self .access_point .pipeline_settings .plot_distributions
1298+ plot_traces = self .access_point .pipeline_settings .plot_traces
1299+ plot_scores = self .access_point .pipeline_settings .plot_scores
13031300
13041301 outputs = []
1305- if plot_optimisation :
1302+ if plot_parameter_evolution :
13061303 # parameter evolution
13071304 for seed in range (self .seed , self .seed + batch_size ):
13081305 fname = self .access_point .emodel_metadata .as_string (seed = seed )
13091306 fname += "__evo_parameter_density.pdf"
13101307 fpath = Path ("./figures" ) / self .emodel / "parameter_evolution" / fname
13111308 outputs .append (luigi .LocalTarget (fpath ))
13121309
1310+ if plot_distributions :
13131311 # distribution
13141312 fname = self .access_point .emodel_metadata .as_string ()
13151313 fname += "__parameters_distribution.pdf"
13161314 fpath = Path ("./figures" ) / self .emodel / "distributions" / "all" / fname
13171315 outputs .append (luigi .LocalTarget (fpath ))
13181316
1317+ if plot_scores :
13191318 # scores
13201319 for seed in range (self .seed , self .seed + batch_size ):
13211320 fname = self .access_point .emodel_metadata .as_string (seed )
13221321 fname += "__scores.pdf"
13231322 fpath = Path ("./figures" ) / self .emodel / "scores" / "all" / fname
13241323 outputs .append (luigi .LocalTarget (fpath ))
13251324
1325+ if plot_traces :
13261326 # traces
13271327 for seed in range (self .seed , self .seed + batch_size ):
13281328 fname = self .access_point .emodel_metadata .as_string (seed )
0 commit comments