Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Z
zema_emc_annotated
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
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
M4D
zema_emc_annotated
Commits
b90af831
Verified
Commit
b90af831
authored
2 years ago
by
Björn Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
feat(data_types): introduce one aggregated data type to specify the sample size of extracted data
parent
ea274a78
No related branches found
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
src/zema_emc_annotated/data_types.py
+23
-1
23 additions, 1 deletion
src/zema_emc_annotated/data_types.py
with
23 additions
and
1 deletion
src/zema_emc_annotated/data_types.py
+
23
−
1
View file @
b90af831
"""
This module contains type aliases and data types for type hints
"""
__all__
=
[
"
RealMatrix
"
,
"
RealVector
"
,
"
UncertainArray
"
]
__all__
=
[
"
RealMatrix
"
,
"
RealVector
"
,
"
SampleSize
"
,
"
UncertainArray
"
]
from
typing
import
NamedTuple
,
TypeAlias
...
...
@@ -20,3 +20,25 @@ class UncertainArray(NamedTuple):
"""
the corresponding values
"""
uncertainties
:
RealMatrix
|
RealVector
"""
... and their associated uncertainties
"""
class
SampleSize
(
NamedTuple
):
"""
A tuple to specify the size of the extracted data
"""
idx_first_cycle
:
int
=
0
"""
index of first sample to be extracted
defaults to 0 and must be between 0 and 4765
"""
n_cycles
:
int
=
1
"""
number of cycles extracted from the dataset
each cycle contains the first :attr:`datapoints_per_cycle` readings from each of
the eleven sensors for one of the cycles with associated standard uncertainties,
defaults to 1 and must be between 1 and 4766 - :attr:`idx_first_cycle`
"""
datapoints_per_cycle
:
int
=
1
"""
number of sensor readings from each of the individual sensors per sample/cycle
defaults to 1 and should be between 1 and 2000, as there are only 2000 readings
per cycle, higher values will be clipped to 2000
"""
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