Skip to content

Commit

Permalink
Merge pull request pyoceans#205 from upsonp/rosette_summary_204
Browse files Browse the repository at this point in the history
added unit tests and fix for issue pyoceans#204
  • Loading branch information
ocefpaf authored Feb 27, 2024
2 parents c877b4f + 3c9b3f5 commit 6518195
Show file tree
Hide file tree
Showing 3 changed files with 1,116 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ctd/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ def from_cnv(fname):
)
df.index.name = prkey

name = _basename(fname)[1]
if "name" not in metadata:
name = _basename(fname)[1]
metadata["name"] = str(name)

dtypes = {"bpos": int, "pumps": bool, "flag": bool}
for column in df.columns:
Expand All @@ -463,7 +465,6 @@ def from_cnv(fname):
stacklevel=2,
)

metadata["name"] = str(name)
df._metadata = metadata
return df

Expand Down
Loading

0 comments on commit 6518195

Please sign in to comment.