Skip to content
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

[fill_missing_daybefore] doesn't seem to work in for-loop #18

Open
cdemulde opened this issue Aug 2, 2017 · 0 comments
Open

[fill_missing_daybefore] doesn't seem to work in for-loop #18

cdemulde opened this issue Aug 2, 2017 · 0 comments
Assignees

Comments

@cdemulde
Copy link
Member

cdemulde commented Aug 2, 2017

The fill_missing_daybefore function works separately, in a for-loop, but not in a for-loop where another filling function is applied. Example:
This works:

for data in Q_data:
    dataset.fill_missing_interpolation(data,50,[dt.datetime(2016,5,23),dt.datetime(2016,5,24)],clear=True)
for data in Q_data:
    dataset.fill_missing_daybefore(data,[dt.datetime(2016,5,1),dt.datetime(2016,6,1)],range_to_replace=[0,5],filtered_only=True,clear=False)

This doesn't:

for data in Q_data:
    dataset.fill_missing_interpolation(data,50,[dt.datetime(2016,5,23),dt.datetime(2016,5,24)],clear=True)
    dataset.fill_missing_daybefore(data,[dt.datetime(2016,5,1),dt.datetime(2016,6,1)],range_to_replace=[0,5],filtered_only=True,clear=False)

In the last example, no filling with the day before is done (fill_missing_interpolation does work properly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants