mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Ensemble: Run: Log variation.
This commit is contained in:
1 parent
7d8e414fe2
commit
e7b9bc92a2
2 files changed
+17
-6
No files matched your search
@@ -533,7 +533,7 @@ class SolverLogEnsWindow(SolverLogWindow):
|
||||
samples=self._samples,
|
||||
)
|
||||
else:
|
||||
self.ensemble_variation_strickler()
|
||||
self.ensemble_variation()
|
||||
self._solver.export(
|
||||
self._study, self._workdir, qlog=self._output
|
||||
)
|
||||
@@ -546,15 +546,21 @@ class SolverLogEnsWindow(SolverLogWindow):
|
||||
self._last_run += 1
|
||||
self._progress_bar.setValue(self._last_run - 1)
|
||||
|
||||
def ensemble_variation_strickler(self):
|
||||
def ensemble_variation(self):
|
||||
for ens in self._samples:
|
||||
if ens.target_data is None:
|
||||
continue
|
||||
|
||||
x = next(self._samples[ens])
|
||||
|
||||
self._log(f"*** Variation #{self._last_run} " +
|
||||
f"'{ens.target_data}' - {ens.data_type} x {x}",
|
||||
color="blue")
|
||||
|
||||
if ens.data_type == "strickler_minor":
|
||||
ens.target_data.minor = next(self._samples[ens])
|
||||
ens.target_data.minor = x
|
||||
elif ens.data_type == "strickler_medium":
|
||||
ens.target_data.medium = next(self._samples[ens])
|
||||
ens.target_data.medium = x
|
||||
|
||||
def run(self):
|
||||
self._log(f" *** Run solver {self._solver.name}", color="blue")
|
||||
|
||||
Reference in new issue
Block a user