Skip to content

Commit f73dd03

Browse files
authored
Grammar fixes
1 parent b037e46 commit f73dd03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ctd/read.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def from_castaway_csv(fname):
498498
--------
499499
>>> import ctd
500500
>>> cast = ctd.from_castaway_csv('tests/data/castaway_data.csv')
501-
>>> downcast, upcast = cast.split() # upcast often prefiltered
501+
>>> downcast, upcast = cast.split() # Upcast often prefiltered
502502
>>> fig, ax = plt.subplots()
503503
>>> ax = downcast['temperature'].plot_cast()
504504
>>> fig.show()
@@ -510,16 +510,16 @@ def from_castaway_csv(fname):
510510
# Strip newline characters
511511
f = [s.strip() for s in f]
512512

513-
# separte meta data and CTD profile
513+
# Separate meta data and CTD profile
514514
meta = [s for s in f if s[0] == "%"][0:-1]
515515
data = [s.split(",") for s in f if s[0] != "%"]
516516
df = pd.DataFrame(data[1:-1], columns=data[0])
517517

518-
# convert to numeric
518+
# Convert to numeric
519519
for col in df.columns:
520520
df[col] = pd.to_numeric(df[col])
521521

522-
# normlise column names and extract units
522+
# Normalise column names and extract units
523523
units = [s[s.find("(") + 1 : s.find(")")] for s in df.columns]
524524
df.columns = [
525525
_normalize_names(s.split("(")[0]).lower().replace(" ", "_") for s in df.columns

0 commit comments

Comments
 (0)