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
Commits
af424cf1
Commit
af424cf1
authored
3 years ago
by
Florian Obersteiner
Browse files
Options
Downloads
Patches
Plain Diff
two more comments
parent
f7125d38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
code refactor
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/icartt/dataset.py
+5
-1
5 additions, 1 deletion
src/icartt/dataset.py
with
5 additions
and
1 deletion
src/icartt/dataset.py
+
5
−
1
View file @
af424cf1
...
...
@@ -125,7 +125,7 @@ class DataStore2110(collections.UserDict):
self
.
add
(
**
newdata
)
def
addBulkDep
(
self
,
ivar
,
raw
):
nlines
,
nvars
=
raw
.
shape
nlines
,
nvars
=
raw
.
shape
# nvars not used
self
.
_addDeplines
(
ivar
,
raw
,
nlines
)
def
_addDeplines
(
self
,
ivar
,
raw
,
n
):
...
...
@@ -491,6 +491,10 @@ class Dataset:
self
.
format
=
Formats
(
int
(
dmp
[
1
]))
except
:
raise
ValueError
(
"
ICARTT format {:d} not implemented
"
.
format
(
dmp
[
1
]))
# TODO except clause could be re-written like
# except ValueError as ve:
# raise ValueError(f"ICARTT format {dmp[1]:d} not implemented") from ve
# to show the error trace
if
len
(
dmp
)
>
2
:
self
.
version
=
dmp
[
2
]
...
...
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