Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
IPSL
E
ESPRI
ESPRI-Mod
catalog
Commits
1988e0cd
Commit
1988e0cd
authored
Feb 03, 2022
by
Guillaume
Browse files
Bugfixes
parent
68bbaa12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
ESMCollectionTemplate.json
ESMCollectionTemplate.json
+3
-5
utils.py
utils.py
+4
-4
No files found.
ESMCollectionTemplate.json
View file @
1988e0cd
...
...
@@ -23,13 +23,11 @@
"table_id"
,
"grid_label"
],
"aggregations"
:
[{
%
for
agg
in
,
aggregation
_control.aggregations
,
%
}
"aggregations"
:
[{
%
for
agg
in
aggregation
s
%
}
{
"type"
:
"{{ agg.type }}"
,
"attribute_name"
:
"{{ agg.attribute_name }}"
,
{
%
if
options
in
agg.keys()
%
}
"options"
:
"{{ agg.options }}"
{
%
endif
%
}
"attribute_name"
:
"{{ agg.attribute_name }}"
{
%
if
'options'
in
agg
%
},
"options"
:
"{{ agg.options }}"
{
%
endif
%
}
}{
%
if
not
loop.last
%
},{
%
endif
%
}
{
%
endfor
%
}]
}
...
...
utils.py
View file @
1988e0cd
...
...
@@ -73,10 +73,10 @@ def make_json(catdir, project, header):
'options'
:
{
'coords'
:
'minimal'
,
'compat'
:
'override'
}})
if
project
==
'CMIP6'
:
content
[
'
aggregation_control'
][
'
aggregations'
].
append
({
'type'
:
'join_new'
,
'attribute_name'
:
'init_year'
,
'options'
:
{
'coords'
:
'minimal'
,
'compat'
:
'override'
}})
content
[
'aggregations'
].
append
({
'type'
:
'join_new'
,
'attribute_name'
:
'init_year'
,
'options'
:
{
'coords'
:
'minimal'
,
'compat'
:
'override'
}})
# Create directory if not exists.
if
not
os
.
path
.
exists
(
os
.
path
.
dirname
(
catpath
)):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment