-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Replace freq '1M' with '1MS' #2266
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
Open
AdamRJensen
wants to merge
10
commits into
pvlib:main
Choose a base branch
from
AdamRJensen:freq_M_to_ME
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
05fc1d1
Replace freq '1M' with '1ME'
AdamRJensen 1242b48
Switch ME to MS
AdamRJensen 2228d8b
Modify turbidity tess
AdamRJensen bfe8a5c
Correct date_range in srml and bsrn
AdamRJensen cbf9224
Remove label option for sodapro functions
AdamRJensen 3caaa1d
Merge remote-tracking branch 'upstream/main' into freq_M_to_ME
AdamRJensen a5099de
Update v0.11.3.rst
AdamRJensen 4b58d16
Update v0.11.3.rst
AdamRJensen 2af1a2b
Remove conversion from datetime to date for d/M freqs
AdamRJensen 02395b7
Merge remote-tracking branch 'upstream/main' into freq_M_to_ME
AdamRJensen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
|
||
index_verbose = pd.date_range('2020-06-01 12', periods=4, freq='1min', | ||
tz='UTC') | ||
index_monthly = pd.date_range('2020-01-01', periods=4, freq='1M') | ||
index_monthly = pd.date_range('2020-01-01', periods=4, freq='1MS') | ||
|
||
|
||
dtypes_mcclear_verbose = [ | ||
|
@@ -172,19 +172,6 @@ def test_read_cams(testfile, index, columns, values, dtypes): | |
assert_frame_equal(out, expected, check_less_precise=True) | ||
|
||
|
||
def test_read_cams_integrated_unmapped_label(): | ||
# Default label is 'left' for 1 minute time resolution, hence 1 minute is | ||
# added for label='right' | ||
expected = generate_expected_dataframe( | ||
values_radiation_verbose_integrated, | ||
columns_radiation_verbose_unmapped, | ||
index_verbose+pd.Timedelta(minutes=1), dtypes=dtypes_radiation_verbose) | ||
out, metadata = sodapro.read_cams(testfile_radiation_verbose, | ||
integrated=True, label='right', | ||
map_variables=False) | ||
assert_frame_equal(out, expected, check_less_precise=True) | ||
|
||
|
||
def test_read_cams_metadata(): | ||
_, metadata = sodapro.read_cams(testfile_mcclear_monthly, integrated=False) | ||
assert metadata['Time reference'] == 'Universal time (UT)' | ||
|
@@ -193,7 +180,7 @@ def test_read_cams_metadata(): | |
assert metadata['longitude'] == 12.5251 | ||
assert metadata['altitude'] == 39.0 | ||
assert metadata['radiation_unit'] == 'W/m^2' | ||
assert metadata['time_step'] == '1M' | ||
assert metadata['time_step'] == '1MS' | ||
|
||
|
||
@pytest.mark.parametrize('testfile,index,columns,values,dtypes,identifier', [ | ||
|
@@ -224,7 +211,7 @@ def test_get_cams(requests_mock, testfile, index, columns, values, dtypes, | |
email='[email protected]', | ||
identifier=identifier, | ||
altitude=80, | ||
time_step='1M', | ||
time_step='1MS', | ||
verbose=False, | ||
integrated=False) | ||
expected = generate_expected_dataframe(values, columns, index, dtypes) | ||
|
@@ -240,7 +227,7 @@ def test_get_cams(requests_mock, testfile, index, columns, values, dtypes, | |
email='[email protected]', | ||
identifier=identifier, | ||
altitude=80, | ||
time_step='1M', | ||
time_step='1MS', | ||
verbose=True) | ||
|
||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.