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
NearRealTimeCTDAS
CTDAS
Commits
11e7555a
Commit
11e7555a
authored
Jun 11, 2013
by
karolina
Browse files
moved rc importing to the top of the module
parent
39ee37e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
gridded/da/tm5/observationoperator.py
View file @
11e7555a
...
...
@@ -30,6 +30,7 @@ from string import join
sys
.
path
.
append
(
os
.
getcwd
())
sys
.
path
.
append
(
"../../"
)
import
da.tools.rc
as
rc
from
da.tools.general
import
create_dirs
,
to_datetime
from
da.baseclasses.observationoperator
import
ObservationOperator
...
...
@@ -196,8 +197,6 @@ class TM5ObservationOperator(ObservationOperator):
"""
This method loads a TM5 rc-file with settings for this simulation
"""
import
da.tools.rc
as
rc
self
.
rcfile
=
rc
.
RcFile
(
name
)
self
.
tm_settings
=
self
.
rcfile
.
values
self
.
rc_filename
=
name
...
...
@@ -304,7 +303,6 @@ class TM5ObservationOperator(ObservationOperator):
"""
Write the rc-file settings to a tm5.rc file in the rundir
"""
import
da.tools.rc
as
rc
rc
.
write
(
tm5rcfilename
,
self
.
tm_settings
)
logging
.
debug
(
"Modified rc file for TM5 written (%s)"
%
tm5rcfilename
)
...
...
Write
Preview
Supports
Markdown
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