Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update power meter module #101

Merged
merged 3 commits into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading