8000 ENH: Create psm3.py by mikofski · Pull Request #694 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

ENH: Create psm3.py #694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
May 3, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TST: decorate test_get_psm3 with needs_pandas_0_22
  • Loading branch information
mikofski committed Apr 27, 2019
commit 13c196a800b8dceb2900a5e2aea7193a5b42434d
4 changes: 4 additions & 0 deletions pvlib/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ def pandas_0_22():
return parse_version(pd.__version__) >= parse_version('0.22.0')


needs_pandas_0_22 = pytest.mark.skipif(
not pandas_0_22(), reason='requires pandas 0.22 or greater')


def has_spa_c():
try:
from pvlib.spa_c_files.spa_py import spa_calc
Expand Down
2 changes: 2 additions & 0 deletions pvlib/test/test_psm3.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import os
from pvlib.iotools import psm3
from conftest import needs_pandas_0_22
import numpy as np
import pandas as pd
import pytest
Expand All @@ -22,6 +23,7 @@
'Wind Speed', 'Surface Albedo Units', 'Version']


@needs_pandas_0_22
def test_get_psm3():
"""test get_psm3"""
header, data = psm3.get_psm3(LATITUDE, LONGITUDE)
Expand Down
0