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
45e354d4
Commit
45e354d4
authored
Feb 04, 2022
by
Guillaume
Browse files
Fix catalog ext.
parent
ea1e2257
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
esm_cat_generator.py
esm_cat_generator.py
+5
-12
No files found.
esm_cat_generator.py
View file @
45e354d4
...
...
@@ -90,18 +90,11 @@ class Process(object):
# Append entry to final list.
self
.
entries
.
append
(
entry
)
catname
=
'_'
.
join
(
source
.
split
(
'/'
)[
2
:
-
1
])
catpath
=
os
.
path
.
join
(
self
.
outcat
,
self
.
project
,
catname
)
# Remove existing catalog files.
try
:
for
ext
in
[
CSV_EXTENSION
,
JSON_EXTENSION
]:
os
.
remove
(
catpath
+
ext
)
except
OSError
:
pass
# Write CSV catalog.
make_csv
(
catpath
+
CSV_EXTENSION
,
self
.
entries
)
catname
=
'_'
.
join
(
source
.
split
(
'/'
)[
2
:
-
1
])
catpath
=
os
.
path
.
join
(
self
.
outcat
,
self
.
project
,
catname
)
# Write CSV catalog.
make_csv
(
catpath
+
CSV_EXTENSION
,
self
.
entries
)
except
Exception
as
e
:
print
(
source
,
e
)
...
...
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