Skip to content

Commit 71dc8c5

Browse files
author
Daniel Lassahn
committed
Avoid duplicate import of pvlib tools
1 parent fe5bf63 commit 71dc8c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pvlib/test/test_tools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import pandas as pd
55
import pytest
66

7-
import pvlib.tools
87
from pvlib import tools
98

109
times = pd.date_range(start=datetime.datetime(2014, 6, 24),
@@ -24,7 +23,7 @@ def test_build_kwargs(keys, input_dict, expected):
2423

2524
def test_datetime_to_julian():
2625
""" test transformation from datetime to julians """
27-
julians = pvlib.tools.datetime_to_julian(pd.to_datetime(times))
26+
julians = tools.datetime_to_julian(pd.to_datetime(times))
2827
np.testing.assert_array_almost_equal(np.array(julians[:10]),
2928
np.array([
3029
2456832.5,

0 commit comments

Comments
 (0)