-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor Time Aggregation #162
Changes from 1 commit
1140907
f3a29c1
650d3fc
a046c74
3309c22
c7f7e25
908e40e
78a6e7a
8b27963
fa6423e
df9faad
de9be08
61a2a0d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,17 +170,17 @@ class YearlyTotalPrecipitationTestCase(IndicatorTests, TestCase): | |
indicator_class = indicators.TotalPrecipitation | ||
indicator_name = 'total_precipitation' | ||
time_aggregation = 'yearly' | ||
units = 'kg/m^2/s' | ||
test_indicator_rcp85_equals = {2000: {'avg': 35.0, 'min': 30.0, 'max': 40.0}} | ||
test_indicator_rcp45_equals = {2000: {'max': 20.0, 'avg': 15.0, 'min': 10.0}, | ||
2001: {'max': 20.0, 'avg': 15.0, 'min': 10.0}, | ||
2002: {'avg': 10.0, 'max': 10.0, 'min': 10.0}, | ||
units = 'kg/m^2' | ||
test_indicator_rcp85_equals = {2000: {'avg': 3024000.0, 'min': 2592000, 'max': 3456000}} | ||
test_indicator_rcp45_equals = {2000: {'max': 1728000, 'avg': 1296000, 'min': 864000}, | ||
2001: {'max': 1728000, 'avg': 1296000, 'min': 864000}, | ||
2002: {'avg': 864000, 'max': 864000, 'min': 864000}, | ||
2003: {'avg': 0.0, 'max': 0.0, 'min': 0.0}} | ||
test_years_filter_equals = {2001: {'max': 20.0, 'avg': 15.0, 'min': 10.0}, | ||
2002: {'avg': 10.0, 'max': 10.0, 'min': 10.0}} | ||
test_models_filter_equals = {2000: {'avg': 10.0, 'max': 10.0, 'min': 10.0}, | ||
2001: {'avg': 10.0, 'max': 10.0, 'min': 10.0}, | ||
2002: {'avg': 10.0, 'max': 10.0, 'min': 10.0}, | ||
test_years_filter_equals = {2001: {'max': 1728000, 'avg': 1296000, 'min': 864000}, | ||
2002: {'avg': 864000, 'max': 864000, 'min': 864000}} | ||
test_models_filter_equals = {2000: {'avg': 864000, 'max': 864000, 'min': 864000}, | ||
2001: {'avg': 864000, 'max': 864000, 'min': 864000}, | ||
2002: {'avg': 864000, 'max': 864000, 'min': 864000}, | ||
2003: {'avg': 0.0, 'max': 0.0, 'min': 0.0}} | ||
|
||
|
||
|
@@ -416,17 +416,17 @@ class MonthlyTotalPrecipitationTestCase(IndicatorTests, TestCase): | |
indicator_class = indicators.TotalPrecipitation | ||
indicator_name = 'total_precipitation' | ||
time_aggregation = 'monthly' | ||
units = 'kg/m^2/s' | ||
test_indicator_rcp85_equals = {'2000-01': {'avg': 35.0, 'min': 30.0, 'max': 40.0}} | ||
test_indicator_rcp45_equals = {'2000-01': {'max': 20.0, 'avg': 15.0, 'min': 10.0}, | ||
'2001-01': {'max': 20.0, 'avg': 15.0, 'min': 10.0}, | ||
'2002-01': {'avg': 10.0, 'max': 10.0, 'min': 10.0}, | ||
units = 'kg/m^2' | ||
test_indicator_rcp85_equals = {'2000-01': {'avg': 3024000, 'min': 2592000, 'max': 3456000}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did the test condition for the TotalPrecipitation indicators (both yearly/monthly) change? Does it make sense that both aggregation levels have the same totals and responses? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test condition changed because it was previously looking for And unfortunately upon inspection it does make sense that the monthly and yearly have the same values... every single one of our test data points is set for January 1st. We need a lot more test data to start to get diverging results. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gotcha. Thanks for clarifying. |
||
test_indicator_rcp45_equals = {'2000-01': {'max': 1728000, 'avg': 1296000.0, 'min': 864000}, | ||
'2001-01': {'max': 1728000, 'avg': 1296000.0, 'min': 864000}, | ||
'2002-01': {'avg': 864000, 'max': 864000, 'min': 864000}, | ||
'2003-01': {'avg': 0.0, 'max': 0.0, 'min': 0.0}} | ||
test_years_filter_equals = {'2001-01': {'max': 20.0, 'avg': 15.0, 'min': 10.0}, | ||
'2002-01': {'avg': 10.0, 'max': 10.0, 'min': 10.0}} | ||
test_models_filter_equals = {'2000-01': {'avg': 10.0, 'max': 10.0, 'min': 10.0}, | ||
'2001-01': {'avg': 10.0, 'max': 10.0, 'min': 10.0}, | ||
'2002-01': {'avg': 10.0, 'max': 10.0, 'min': 10.0}, | ||
test_years_filter_equals = {'2001-01': {'max': 1728000, 'avg': 1296000.0, 'min': 864000}, | ||
'2002-01': {'avg': 864000, 'max': 864000, 'min': 864000}} | ||
test_models_filter_equals = {'2000-01': {'avg': 864000, 'max': 864000, 'min': 864000}, | ||
'2001-01': {'avg': 864000, 'max': 864000, 'min': 864000}, | ||
'2002-01': {'avg': 864000, 'max': 864000, 'min': 864000}, | ||
'2003-01': {'avg': 0.0, 'max': 0.0, 'min': 0.0}} | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍