option for a null granularity

Former-commit-id: 7ef31b53b077ba0f3909558d88a029de4d1dcbd0
This commit is contained in:
Michael T. Kelbaugh
2020-02-28 11:07:47 -05:00
parent c0204c6c00
commit 2dcafe8174
3 changed files with 4 additions and 4 deletions

View File

@@ -19,7 +19,7 @@
"type": "object",
"properties":{
"data": {"type": "object"},
"granularity": {"type": "string", "value": "global"}
"granularity": {"type": "null"}
}
}
},

View File

@@ -36,8 +36,8 @@ class InnerWrapper(OuterWrapper):
results = {
'gfdl_cm3': {
'global_temp': {
'data': {'temp': self.global_temp},
'granularity': 'global',
'data': {'global_temp': self.global_temp},
'granularity': None,
},
'precipitation': {
'data': self.precipitation,