Skip to content

Commit

Permalink
Merge pull request #101 from mao-wfs/#100-Update-power_meter-module
Browse files Browse the repository at this point in the history
Update power meter module
  • Loading branch information
kiwakami authored Nov 28, 2023
2 parents 8e2ec5a + 56a3c1f commit 6f3b299
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mao_merge_45m/power_meter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6f3b299

Please sign in to comment.