8000 style fixed in test_midc.py · lboeman/pvlib-python@d7b6561 · GitHub
[go: up one dir, main page]

Skip to content

Commit d7b6561

Browse files
committed
style fixed in test_midc.py
1 parent 9c1fee2 commit d7b6561

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pvlib/test/test_midc.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
test_dir = os.path.dirname(
1212
os.path.abspath(inspect.getfile(inspect.currentframe())))
1313
midc_testfile = os.path.join(test_dir, '../data/midc_20181014.txt')
14-
midc_network_testfile = 'https://midcdmz.nrel.gov/apps/data_api.pl?site=UAT&begin=20181018&end=20181019'
14+
midc_network_testfile = ('https://midcdmz.nrel.gov/apps/data_api.pl'
15+
'?site=UAT&begin=20181018&end=20181019')
16+
1517

1618
@pytest.mark.parametrize('field_name,expected', [
1719
('Temperature @ 2m [deg C]', 'temp_air_@_2m'),
@@ -34,6 +36,7 @@ def test_midc_format_index():
3436
assert data.index[0] == start
3537
assert data.index[-1] == end
3638

39+
3740
def test_midc_format_index_raw():
3841
data = pd.read_csv(midc_network_testfile)
3942
data = midc.format_index_raw(data)
@@ -44,15 +47,16 @@ def test_midc_format_index_raw():
4447
assert data.index[0] == start
4548
assert data.index[-1] == end
4649

50+
4751
def test_read_midc_var_mapping_as_arg():
4852
data = midc.read_midc(midc_testfile, variable_map=midc.VARIABLE_MAP)
4953
assert 'ghi_PSP' in data.columns
5054
assert 'temp_air_@_2m' in data.columns
5155
assert 'temp_air_@_50m' in data.columns
5256

5357

54-
start_ts = pd.Timestamp('20181018')
55-
end_ts = pd.Timestamp('20181019')
5658
@network
5759
def test_read_midc_raw_data_from_nrel():
60+
start_ts = pd.Timestamp('20181018')
61+
end_ts = pd.Timestamp('20181019')
5862
midc.read_midc_raw_data_from_nrel('UAT', start_ts, end_ts)

0 commit comments

Comments
 (0)
0