diff --git a/commonutils.py b/commonutils.py index 26ef42f..6acbbb9 100644 --- a/commonutils.py +++ b/commonutils.py @@ -168,7 +168,7 @@ def setup_nrnbbcore_register_mapping(rings): return recordlist def write_report_config(output_file, report_name, target_name, report_type, report_variable, - unit, report_format, target_type, dt, start_time, end_time, gids, + unit, report_format, sections, compartments, dt, start_time, end_time, gids, buffer_size=8, scaling: Literal["none", "area"] = "area"): """ Writes the configuration for a report to a file. Check the docs here: @@ -182,14 +182,15 @@ def write_report_config(output_file, report_name, target_name, report_type, repo with report_conf.open("wb") as fp: # Write the formatted string to the file fp.write(b"1\n") - fp.write(("%s %s %s %s %s %s %d %lf %lf %lf %d %d %s\n" % ( + fp.write(("%s %s %s %s %s %s %s %s %lf %lf %lf %d %d %s\n" % ( report_name, target_name, report_type, report_variable, unit, report_format, - target_type, + sections, + compartments, dt, start_time, end_time, diff --git a/ringtest.py b/ringtest.py index be04886..b0e9067 100644 --- a/ringtest.py +++ b/ringtest.py @@ -175,7 +175,7 @@ def create_rings(): sim_conf_file = "sim.conf" if settings.rank == 0: write_report_config(report_conf_file, "soma.h5", "Mosaic", "compartment", "v", - "mV", "SONATA", 2, 1, 0, tstop, list(range(ncell))) + "mV", "SONATA", "soma", "center", 1, 0, tstop, list(range(ncell))) write_spike_config(report_conf_file, "spikes.h5", ["default"], [0]) write_sim_config(sim_conf_file, "corenrn_data", report_conf_file, tstop) coreneuron.sim_config=sim_conf_file