Skip to content

Commit

Permalink
cosmetic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CommonClimate committed Jun 25, 2024
1 parent 24d8e72 commit 90fdf90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyleoclim/core/ensembleseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class EnsembleSeries(MultipleSeries):
def __init__(self, series_list, label=None):
for i, ts in enumerate(series_list):
if ts.label is None:
print("assign labels if missing")
series_list[i].label = f"#{i}" # assign labels if missing
self.series_list = series_list
self.label = label
Expand Down Expand Up @@ -1381,15 +1380,15 @@ def to_dataframe(self, axis = 'value'):

if axis == 'value':
for ts in self.series_list:
if ts.label is None:
if ts.label is None: # should no longer be necessary now that it's done in __init__
df_dict[idx]=ts.value
else:
df_dict[ts.label]=ts.value
idx+=1

elif axis == 'time':
for ts in self.series_list:
if ts.label is None:
if ts.label is None: # should no longer be necessary now that it's done in __init__
df_dict[idx]=ts.time
else:
df_dict[ts.label]=ts.time
Expand Down

0 comments on commit 90fdf90

Please sign in to comment.