-
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
Update multi-pass-weld schema description #781
Conversation
I have created the following script for the example and added its output to the schema file as an example: from weldx import Q_, LocalCoordinateSystem, TimeSeries, WeldxFile
data = [
[
[
[
dict(
TCP=LocalCoordinateSystem(
coordinates=Q_([10, 0, 0], "mm"),
),
welding_voltage=TimeSeries(Q_(10, "V")),
)
],
[
dict(
TCP=LocalCoordinateSystem(
coordinates=Q_([20, 0, 0], "mm"),
),
welding_voltage=TimeSeries(Q_(20, "V")),
)
],
]
],
[
[
[
dict(
TCP=LocalCoordinateSystem(
coordinates=Q_([30, 0, 0], "mm"),
),
welding_voltage=TimeSeries(Q_(30, "V")),
)
],
]
],
]
tree = dict(weld_seam=data)
wxf = WeldxFile(tree=tree, custom_schema="multi_pass_weld-0.1.0", mode="rw")
wxf.header() |
Codecov Report
@@ Coverage Diff @@
## master #781 +/- ##
=======================================
Coverage 96.77% 96.77%
=======================================
Files 88 88
Lines 6017 6017
=======================================
Hits 5823 5823
Misses 194 194 |
Good to have an example! Something like this in the example from weldx import Q_, LocalCoordinateSystem, TimeSeries, WeldxFile
time = ["0s", "5s"]
A = dict(
TCP=LocalCoordinateSystem(
coordinates=Q_([[0, 0, 0], [50, 0, 0]], "mm"),
time=time,
),
welding_voltage=TimeSeries(Q_(10, "V")),
)
B = dict(
TCP=LocalCoordinateSystem(
coordinates=Q_([[0, 0, 10], [50, 0, 10]], "mm"),
time=time,
),
welding_voltage=TimeSeries(Q_(20, "V")),
)
C = dict(
TCP=LocalCoordinateSystem(
coordinates=Q_([[0, 0, 10], [50, 0, 10]], "mm"),
time=time,
),
welding_voltage=TimeSeries(Q_(30, "V")),
)
data = [[[[A], [B]]], [[[C]]]]
tree = dict(weld_seam=data)
wxf = WeldxFile(tree=tree, custom_schema="multi_pass_weld-0.1.0", mode="rw")
wxf.header() |
another thing that might help with the deeply nested lists: So if we have 1 seam with 3 layers each with only one bead and each bead only has a single weldment this would be enough: |
Changes
Update the multi-pass-weld schema description
Related Issues
Closes #748
Checks
updated CHANGELOG.rstupdate manifest file