In [1]:
%load_ext autoreload
%autoreload 2
In [2]:
import cellpy
from cellpy.utils import batch
from cellpy import prms
from pathlib import Path
In [17]:
batch.check_iterate()
In [ ]:
In [ ]:
f = r"C:\Scripting\Processing\Celldata\outdata\cellpy_test\cellpy_batch_embla_test.json"
In [ ]:
name = "embla_test"
project = "cellpy_test"
batch_col = "b02"
In [ ]:
prms.Batch.backend = "matplotlib"
#prms.Batch.backend = "bokeh"
In [ ]:
#b = batch.Batch(file_name=f, db_reader=None)
b = batch.process_batch(name, project, batch_col=batch_col, force_cellpy=True)
In [ ]:
#b.paginate()
#b.update()
#b.combine_summaries()
In [ ]:
f = b.plot_summaries(output_filename="out.png", backend="matplotlib")
In [ ]:
b.plotter.farms
In [ ]:
#_, out_dir, _ = b.experiment.journal.paginate()
In [ ]:
In [ ]:
In [ ]:
name = b.experiment.journal.name
In [ ]:
b.experiment.journal.project_dir
In [ ]:
out_dir = Path(b.experiment.journal.batch_dir)
In [ ]:
for n, farm in enumerate(b.plotter.farms):
if len(b.plotter.farms) > 1:
file_name = f"summary_plot_{name}_{str(n+1).zfill(3)}.png"
else:
file_name = f"summary_plot_{name}.png"
out = out_dir / file_name
farm.savefig(out)
In [ ]:
fig = b.plotter.farms[0]
In [ ]:
fig
In [ ]: