Skip to content

Commit

Permalink
roll back metadata changes, implementation was working correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrakenhoff committed Jun 26, 2024
1 parent 6203dcf commit 01a5582
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pastastore/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1277,12 +1277,9 @@ def _meta_list_to_frame(metalist: list, names: list):
meta = pd.DataFrame(metalist)
elif len(metalist) == 0:
meta = pd.DataFrame()
if "name" in meta.columns:
meta.set_index("name", inplace=True)
else:
meta.index = names
meta.index.name = "name"

meta.index = names
meta.index.name = "name"
return meta

def _parse_model_dict(self, mdict: dict, update_ts_settings: bool = False):
Expand Down

0 comments on commit 01a5582

Please sign in to comment.