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
4154ebc7
Commit
4154ebc7
authored
Feb 04, 2022
by
Guillaume
Browse files
Bugfixes
parent
1dc37ce1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
esm_cat_generator.py
esm_cat_generator.py
+1
-1
utils.py
utils.py
+1
-1
No files found.
esm_cat_generator.py
View file @
4154ebc7
...
...
@@ -244,7 +244,7 @@ def main():
# Concatenate CSV files into one compressed CSV catalog.
print
(
f
'Concatenating CSV catalogs...'
)
csv_header
=
','
.
join
(
header
)
+
'
/
n'
csv_header
=
','
.
join
(
header
)
+
'
\
n
'
with
gzip
.
open
(
f
'
{
CATALOG_OUTPUT_PROD
}
/
{
args
.
project
}{
CSV_EXTENSION
}{
COMPRESS_EXTENSION
}
'
,
'wb'
)
as
f_out
:
f_out
.
write
(
csv_header
.
encode
(
'ascii'
))
for
f
in
glob
(
f
'
{
CATALOG_OUTPUT
}
/
{
args
.
project
}
/*
{
CSV_EXTENSION
}
'
):
...
...
utils.py
View file @
4154ebc7
...
...
@@ -36,7 +36,7 @@ def make_json(catdir, project, header):
print
(
f
'Writing JSON catalog...'
)
# Get catalog name.
catpath
=
os
.
path
.
join
(
catdir
,
f
'
{
project
}{
JSON_EXTENSION
}
'
)
catpath
=
os
.
path
.
join
(
catdir
,
f
'
{
project
}{
JSON_EXTENSION
}
{
COMPRESS_EXTENSION
}
'
)
# Load Jinja2 template for ESM catalogs.
with
open
(
'ESMCollectionTemplate.json'
)
as
file
:
...
...
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