Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Justin Reid
ncmltransformdemo
Commits
0b2936c4
Commit
0b2936c4
authored
May 03, 2016
by
Justin Reid
Browse files
Fixed source file deletion bug
parent
60fc16de
Pipeline
#260
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ncmltransformdemo/metadatatransformer.py
View file @
0b2936c4
...
...
@@ -31,7 +31,7 @@ class MetadataTransformer:
"""
self
.
nc_dump_path
=
os
.
path
.
join
(
self
.
_out_path
,
self
.
in_file
.
replace
(
".nc"
,
".txt"
)
self
.
in_file
.
replace
(
".nc"
,
"
_dumped
.txt"
)
)
cmd
=
" "
.
join
([
"ncdump"
,
"-h"
,
self
.
in_path
,
">"
,
self
.
nc_dump_path
])
...
...
@@ -50,7 +50,7 @@ class MetadataTransformer:
self
.
nc_classic_path
=
os
.
path
.
join
(
self
.
_out_path
,
self
.
nc_dump_path
.
replace
(
".txt"
,
".nc"
)
self
.
nc_dump_path
.
replace
(
".txt"
,
"
_classic
.nc"
)
)
cmd
=
" "
.
join
([
"ncgen"
,
"-k"
,
"classic"
,
"-o"
,
self
.
nc_classic_path
,
self
.
nc_dump_path
])
...
...
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