Skip to content

Commit

Permalink
"bug fixing, code cleaning and quality-of-life improvements"
Browse files Browse the repository at this point in the history
  • Loading branch information
Beeskow authored and Beeskow committed Jun 27, 2024
1 parent 7a20d2f commit abe36e4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pysills/pysills_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16881,9 +16881,10 @@ def assign_time_and_isotopic_data(self, filetype, filename_long):
self.container_measurements["Dataframe"][filename_short] = df_i
else:
if "_copy" in filename_short:
filename_short_original = filename_short.replace("_copy", "")
filename_short = filename_short_original
df_i = self.container_measurements["Dataframe"][filename_short]
key = re.search(r"(_copy\d*)", filename_short)
key_copy = key.group(1)
filename_short_original = filename_short.replace(key_copy, "")
df_i = self.container_measurements["Dataframe"][filename_short_original]
else:
df_i = self.container_measurements["Dataframe"][filename_short]

Expand Down

0 comments on commit abe36e4

Please sign in to comment.