From 4bb843b2eee3e225c1aa013638b37d940406605b Mon Sep 17 00:00:00 2001 From: kotaro iwakami <113085644+kiwakami@users.noreply.github.com> Date: Tue, 28 Nov 2023 05:15:05 +0000 Subject: [PATCH 1/2] #100 Update power meter module --- mao_merge_45m/power_meter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mao_merge_45m/power_meter.py b/mao_merge_45m/power_meter.py index 88e8db8..69e0b7b 100644 --- a/mao_merge_45m/power_meter.py +++ b/mao_merge_45m/power_meter.py @@ -47,7 +47,7 @@ def convert( ) -> Path: """Convert a raw log file(s) to a formatted Zarr file. - This function will make a one-dimensional antenna log outputs + This function will make a one-dimensional power meter log outputs with time metadata derived from the raw log file. Args: From c82262853722e65eaae0cde0f6a24cf57c656440 Mon Sep 17 00:00:00 2001 From: kotaro iwakami <113085644+kiwakami@users.noreply.github.com> Date: Tue, 28 Nov 2023 09:14:56 +0000 Subject: [PATCH 2/2] #100 Update power meter module --- mao_merge_45m/power_meter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mao_merge_45m/power_meter.py b/mao_merge_45m/power_meter.py index 69e0b7b..5e41ab9 100644 --- a/mao_merge_45m/power_meter.py +++ b/mao_merge_45m/power_meter.py @@ -116,6 +116,7 @@ def convert( df_ = df_.drop(columns=["time", "num", "num_max", "s"]) df = pd.concat([df, df_]) + df.sort_index(inplace=True) # write DataFrame(s) to the Zarr file ds = PowerMeter.new(df.total_power) ds = ds.assign_coords(time=ds.time - JST_HOURS)