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
Container registry
Model registry
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
Tsurata, Aki
CTDAS
Commits
3e3e50f5
Commit
3e3e50f5
authored
14 years ago
by
Peters, Wouter
Browse files
Options
Downloads
Patches
Plain Diff
modified the baseclasses to have simpler init functions, and new observation object
parent
e707cf68
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
da/baseclasses/statevector.py
+12
-1
12 additions, 1 deletion
da/baseclasses/statevector.py
with
12 additions
and
1 deletion
da/baseclasses/statevector.py
+
12
−
1
View file @
3e3e50f5
...
...
@@ -14,6 +14,8 @@ import sys
import
logging
import
datetime
identifier
=
'
Baseclass Statevector
'
version
=
'
0.0
'
################### Begin Class EnsembleMember ###################
...
...
@@ -66,7 +68,16 @@ class EnsembleMember(object):
import
numpy
as
np
class
StateVector
(
object
):
"""
an object that holds data + methods and attributes needed to manipulate state vector values
"""
def
__init__
(
self
,
dims
):
def
__init__
(
self
):
self
.
Identifier
=
identifier
self
.
Version
=
version
msg
=
'
%s object initialized
'
%
self
.
Identifier
;
logging
.
debug
(
msg
)
msg
=
'
%s version: %s
'
%
(
self
.
Identifier
,
self
.
Version
)
;
logging
.
info
(
msg
)
def
Initialize
(
self
,
dims
):
self
.
nlag
=
dims
[
0
]
self
.
nmembers
=
dims
[
1
]
...
...
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