Skip to content

Commit

Permalink
Try a formatted string
Browse files Browse the repository at this point in the history
  • Loading branch information
pennycuda committed Aug 7, 2024
1 parent a52651b commit 68a594b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/convert_to_ometiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ def create_original_channel_names_df(channelList: List[str]) -> pd.DataFrame:
].str.extract(cyc_ch_pattern)
og_ch_names_df["Cycle"] = pd.to_numeric(og_ch_names_df["Cycle"])
og_ch_names_df["Channel"] = pd.to_numeric(og_ch_names_df["Channel"])
og_ch_names_df["channel_id"] = (
"cycle" + og_ch_names_df["Cycle"] + "_ch" + og_ch_names_df["Channel"]
)
og_ch_names_df["channel_id"] = f"cycle{og_ch_names_df["Cycle"]}_ch{og_ch_names_df["Channel"]}"
# og_ch_names_df["channel_id"] = (
# "cycle" + og_ch_names_df["Cycle"] + "_ch" + og_ch_names_df["Channel"]
# )

return og_ch_names_df

Expand Down

0 comments on commit 68a594b

Please sign in to comment.