-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add time_series-0.1.1.yaml #677
add time_series-0.1.1.yaml #677
Conversation
Codecov Report
@@ Coverage Diff @@
## master #677 +/- ##
==========================================
+ Coverage 95.86% 95.89% +0.03%
==========================================
Files 92 92
Lines 6307 6310 +3
==========================================
+ Hits 6046 6051 +5
+ Misses 261 259 -2
Continue to review full report at Codecov.
|
When creating a test file with the following code import pandas as pd
from weldx import Q_, TimeSeries, WeldxFile
data = Q_([1, 2, 3, 8], "m")
t = pd.date_range(start="2020-01-01", freq="1D", periods=4)
ts = TimeSeries(data, t)
WeldxFile("ts_debug.weldx", tree={"ts": ts}, mode="rw") I get this strange double referenced properties in asdf: #ASDF 1.0.0
#ASDF_STANDARD 1.5.0
%YAML 1.1
%TAG ! tag:stsci.edu:asdf/
%TAG !weldx! asdf://weldx.bam.de/weldx/tags/
--- !core/asdf-1.1.0
asdf_library: !core/software-1.0.0 {author: The ASDF Developers, homepage: 'http://github.com/asdf-format/asdf',
name: asdf, version: 2.8.3}
history:
extensions:
- !core/extension_metadata-1.0.0
extension_class: asdf.extension.BuiltinExtension
software: !core/software-1.0.0 {name: asdf, version: 2.8.3}
- !core/extension_metadata-1.0.0
extension_class: weldx.asdf.extension.WeldxExtension
extension_uri: asdf://weldx.bam.de/weldx/extensions/weldx-0.1.1
software: !core/software-1.0.0 {name: weldx, version: 0.5.3.dev23+g12b85957}
ts: !weldx!core/time_series-0.1.1
&id001 values: &id002 !core/ndarray-1.0.0
data: [1, 2, 3, 8]
datatype: int32
shape: [4]
time: !weldx!time/time-0.1.0
values: !weldx!time/datetimeindex-0.1.0 {start: !weldx!time/timestamp-0.1.0 '2020-01-01T00:00:00',
end: !weldx!time/timestamp-0.1.0 '2020-01-04T00:00:00', freq: D, min: !weldx!time/timestamp-0.1.0 '2020-01-01T00:00:00',
max: !weldx!time/timestamp-0.1.0 '2020-01-04T00:00:00'}
reference_time: !weldx!time/timestamp-0.1.0 2020-01-01T00:00:00
units: !weldx!units/units-0.1.0 meter
shape: [4]
interpolation: step
*id001 : *id002
... |
Co-authored-by: vhirtham <volker.hirthammer@gmail.com>
Changes
TimeSeries
is now based onTime
with support for absolute times (only serialized timedeltas before)Time
Related Issues
Closes #671
Checks