Skip to content

Commit a51db51

Browse files
committed
midc mapper
1 parent f4bbac8 commit a51db51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pvlib/iotools/midc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def read_midc(filename, variable_map=VARIABLE_MAP, raw_data=False):
165165
return data
166166

167167

168-
def read_midc_raw_data_from_nrel(site, start, end):
168+
def read_midc_raw_data_from_nrel(site, start, end, variable_map={}):
169169
"""Request and read MIDC data directly from the raw data api.
170170
171171
Parameters
@@ -194,4 +194,4 @@ def read_midc_raw_data_from_nrel(site, start, end):
194194
'end': end.strftime('%Y%m%d')}
195195
endpoint = 'https://midcdmz.nrel.gov/apps/data_api.pl?'
196196
url = endpoint + '&'.join(['{}={}'.format(k, v) for k, v in args.items()])
197-
return read_midc(url, raw_data=True)
197+
return read_midc(url, variable_map=variable_map, raw_data=True)

0 commit comments

Comments
 (0)