Skip to content

Commit 16a97be

Browse files
committed
privatize iotools.srml.format_index and map_columns
1 parent 2d5b043 commit 16a97be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pvlib/iotools/srml.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ def read_srml(filename):
6060
`http://solardat.uoregon.edu/ <http://solardat.uoregon.edu/>`_
6161
"""
6262
tsv_data = pd.read_csv(filename, delimiter='\t')
63-
data = format_index(tsv_data)
63+
data = _format_index(tsv_data)
6464
# Drop day of year and time columns
6565
data = data[data.columns[2:]]
6666

67-
data = data.rename(columns=map_columns)
67+
data = data.rename(columns=_map_columns)
6868

6969
# Quality flag columns are all labeled 0 in the original data. They
7070
# appear immediately after their associated variable and are suffixed
@@ -90,7 +90,7 @@ def read_srml(filename):
9090
return data
9191

9292

93-
def map_columns(col):
93+
def _map_columns(col):
9494
"""Map data element numbers to pvlib names.
9595
9696
Parameters
@@ -118,7 +118,7 @@ def map_columns(col):
118118
return col
119119

120120

121-
def format_index(df):
121+
def _format_index(df):
122122
"""Create a datetime index from day of year, and time columns.
123123
124124
Parameters

0 commit comments

Comments
 (0)