Skip to content

Commit

Permalink
#95 Fixed code's formatting (Black)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwakami committed Nov 24, 2023
1 parent c079a50 commit 3073faf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mao_merge_45m/power_meter.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def convert(
df_["num_max"] = df_.groupby("time").max()["num"]

df_.reset_index(inplace=True)
df_["s"] = (df_["num"]-1) / df_["num_max"] * 1000
df_["s"] = (df_["num"] - 1) / df_["num_max"] * 1000
df_["time"] = df_["time"] + pd.to_timedelta(np.array(df_["s"]), unit="ms")
df_.set_index(df_["time"], inplace=True)

Expand Down
1 change: 1 addition & 0 deletions tests/test_power_meter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# constants
TEST_CSV = Path("data") / "power_meter_2022144230000Z.csv"


# test function
def test_convert() -> None:
"""Test whether the data of a CSV file is correctly parsed."""
Expand Down

0 comments on commit 3073faf

Please sign in to comment.