Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ICARTT Python Package
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
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
MBEES
ICARTT Python Package
Merge requests
!6
The source project of this merge request has been removed.
code refactor
Merged
code refactor
(removed):master
into
master
Overview
4
Commits
32
Pipelines
0
Changes
1
Merged
Florian Obersteiner
requested to merge
(removed):master
into
master
3 years ago
Overview
4
Pipelines
0
Changes
1
Expand
related to
#8 (closed)
:
I kept changes per commit small, so the number of commits got kind of numerous...
Edited
3 years ago
by
Florian Obersteiner
0
0
Merge request reports
Viewing commit
136c60b0
Prev
Next
Show latest version
1 file
+
7
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
136c60b0
built-in 'vars', readability
· 136c60b0
Florian Obersteiner
authored
3 years ago
src/icartt/dataset.py
+
7
−
7
Options
@@ -433,17 +433,17 @@ class Dataset:
:return: dictionary of all variables
:rtype: dict of Variable(s)
"""
vars
=
{}
# TODO rename - "vars" is a Python built-in
if
not
self
.
independentVariable
is
None
:
# TODO use "is not None" for readbility
vars
[
self
.
independentVariable
.
shortname
]
=
self
.
independentVariable
if
not
self
.
independentBoundedVariable
is
None
:
# TODO use "is not None" for readbility
vars
[
var
iable
s
=
{}
if
self
.
independentVariable
is
not
None
:
var
iable
s
[
self
.
independentVariable
.
shortname
]
=
self
.
independentVariable
if
self
.
independentBoundedVariable
is
not
None
:
var
iable
s
[
self
.
independentBoundedVariable
.
shortname
]
=
self
.
independentBoundedVariable
vars
=
{
**
vars
,
**
self
.
dependentVariables
,
**
self
.
auxiliaryVariables
}
var
iable
s
=
{
**
var
iable
s
,
**
self
.
dependentVariables
,
**
self
.
auxiliaryVariables
}
return
vars
return
var
iable
s
def
readHeader
(
self
,
splitChar
=
"
,
"
):
"""
Read the ICARTT header (from file)
"""
Loading