Closed monicasantamaria closed 4 months ago
After reviewing the disaggregation_rainfall
function, I noticed that this was only a resampling from hourly to daily of the synthetic series, which could be done more directly by:
y_series_daily = y_series.resample('D').agg(pd.Series.sum, min_count=1)
This avoids the error of incongruence in the dataframe shapes.
@monicasantamaria many thanks for reporting the bug. I have just reopened the issue to check it in the source code.
Thank you @monicasantamaria for the report, and sorry for the delay in taking care of the issue.
I have pushed a new commit 94670a2 into branch issue_22 that makes the Jupyter notebook work again. It would be great if you could install this branch and check if it also solves the issue for you.
We have pushed a new version of the library where everything should be working back again. I will close this issue, but please, do not hesitate to open it again in case something does not work.
Hello!
I wanted to use NEOPRENE to disaggregate daily to hourly rainfall. I'm running the NSRP_test notebook with your sample data, using Version 1.0.1. But in Example 2, when calling the
disaggregate_rainfall
function, I get the following error:It looks like the sum() method, after the grouping, is producing a Series without any columns, which causes the mismatch when trying to create the DataFrame with a single column 'Rain' ?