Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CTDAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NearRealTimeCTDAS
CTDAS
Commits
11e7555a
Commit
11e7555a
authored
11 years ago
by
karolina
Browse files
Options
Downloads
Patches
Plain Diff
moved rc importing to the top of the module
parent
39ee37e5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gridded/da/tm5/observationoperator.py
+1
-3
1 addition, 3 deletions
gridded/da/tm5/observationoperator.py
with
1 addition
and
3 deletions
gridded/da/tm5/observationoperator.py
+
1
−
3
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment