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
8dca7d6e
Commit
8dca7d6e
authored
3 years ago
by
Florian Obersteiner
Browse files
Options
Downloads
Patches
Plain Diff
enumerators: use IntEnum, docstring
parent
eb458163
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
-6
5 additions, 6 deletions
src/icartt/dataset.py
with
5 additions
and
6 deletions
src/icartt/dataset.py
+
5
−
6
View file @
8dca7d6e
...
...
@@ -6,20 +6,19 @@ import re
import
warnings
import
numpy
as
np
from
enum
import
Enum
,
IntEnum
from
enum
import
IntEnum
DEFAULT_NUM_FORMAT
=
"
%f
"
DEFAULT_FIELD_DELIM
=
"
,
"
class
Formats
(
IntEnum
):
# TODO: FormatIndex
"""
File Format Indicators (FFI)
"""
# TODO: File Format Indices
class
Formats
(
IntEnum
):
"""
File Format Indices (FFI)
"""
FFI1001
=
1001
FFI2110
=
2110
class
VariableType
(
Enum
):
# TODO: could use IntEnum here as well
class
VariableType
(
Int
Enum
):
IndependentVariable
=
1
IndependentBoundedVariable
=
2
AuxiliaryVariable
=
3
...
...
@@ -935,4 +934,4 @@ class Dataset:
self
.
readHeader
(
splitChar
)
if
loadData
:
self
.
endDefineMode
()
self
.
readData
(
splitChar
)
\ No newline at end of file
self
.
readData
(
splitChar
)
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