Skip to content

Commit

Permalink
fix deprecated tmy call and wrong deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
wholmgren committed Dec 8, 2018
1 parent 8868e54 commit 393934a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/sphinx/source/timetimezones.rst
Expand Up @@ -272,7 +272,7 @@ Let's first examine how pvlib handles time when it imports a TMY3 file.
# some gymnastics to find the example file
pvlib_abspath = os.path.dirname(os.path.abspath(inspect.getfile(pvlib)))
file_abspath = os.path.join(pvlib_abspath, 'data', '703165TY.csv')
tmy3_data, tmy3_metadata = pvlib.tmy.readtmy3(file_abspath)
tmy3_data, tmy3_metadata = pvlib.iotools.read_tmy3(file_abspath)
tmy3_metadata
Expand Down
2 changes: 1 addition & 1 deletion pvlib/tmy.py
Expand Up @@ -9,5 +9,5 @@
readtmy2 = deprecated('0.6.1', alternative='iotools.read_tmy2',
name='readtmy2', removal='0.7')(read_tmy2)

readtmy3 = deprecated('0.6.1', alternative='iotools.read_tmy2',
readtmy3 = deprecated('0.6.1', alternative='iotools.read_tmy3',
name='readtmy3', removal='0.7')(read_tmy3)

0 comments on commit 393934a

Please sign in to comment.