Feat: user can now decide frequency of repartition of dask dataframes after being loaded (both hk and pbp)
This commit is contained in:
@@ -135,7 +135,7 @@ def main():
|
||||
ddf_hk = ddf_hk.reset_index().set_index( # 'calculated_time' becomes a column
|
||||
"calculated_time", sorted=False, shuffle="tasks"
|
||||
) # Dask now infers divisions
|
||||
ddf_hk = ddf_hk.repartition(freq="1h")
|
||||
ddf_hk = ddf_hk.repartition(freq=run_config["repartition"])
|
||||
meta = pd.DataFrame(
|
||||
{
|
||||
"Sample Flow Controller Read (sccm)": pd.Series(
|
||||
@@ -182,7 +182,7 @@ def main():
|
||||
ddf_raw = ddf_raw.reset_index().set_index( # 'calculated_time' becomes a column
|
||||
"calculated_time", sorted=False, shuffle="tasks"
|
||||
) # Dask now infers divisions
|
||||
ddf_raw = ddf_raw.repartition(freq="1h")
|
||||
ddf_raw = ddf_raw.repartition(freq=run_config["repartition"])
|
||||
|
||||
ddf_cal = calibrate_single_particle(ddf_raw, instr_config, run_config)
|
||||
dask_objects.append(ddf_cal)
|
||||
|
||||
Reference in New Issue
Block a user