Skip to content

Commit

Permalink
Go back to string concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
pennycuda committed Aug 7, 2024
1 parent 68a594b commit b772173
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/convert_to_ometiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ 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"] = 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"]
# )
og_ch_names_df["channel_id"] = "cycle" + og_ch_names_df["Cycle"].astype(str) + "_ch" + og_ch_names_df["Channel"].astype(str)

return og_ch_names_df

Expand Down

0 comments on commit b772173

Please sign in to comment.