From 87fa9af0b6f5799f4e3622a97a5e0baf58f3e38b Mon Sep 17 00:00:00 2001 From: swittl <simon.wittl@th-deg.de> Date: Thu, 20 Mar 2025 16:48:08 +0100 Subject: [PATCH] added header to joint states --- examples/thd_joint_joint.h5 | Bin 185336 -> 204120 bytes .../thd_joint_states/add_thd_joint_states.py | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/thd_joint_joint.h5 b/examples/thd_joint_joint.h5 index 9fd3ea7a85ce98963baab038a576b2ee7351ed2f..b51ff52cba51b9c913d6cb8658d11ce865c4d2b3 100644 GIT binary patch delta 222 zcmeydocqQuo(USv5wgr1wPo2SC&>9QePx=wPA+Kk3-$#<K)%rASyGxDKQ1#dfI#zU zsrJ)SjN4C3G3oA{9I;T6QF7u%F-eU(5NWU)AmIRIq-=i3|D0VV(ZbxoD9JKW*T6K< zNY~IX%|O@E*uqpd&BQFlI4w0PG0oU);zb9LIwO<h6cc21W=4i6>NYd}s*nKMY``4x hmuYi!<zIGzC#iXhxxU|YoZ^)arh!VH%TIj32>`VAMuY$W delta 64 zcmcbyi|5C3?g<*qKQ1$E)RtvuWSE>N=f&|K3O3JXe=7tO>y)yBi#4B?YCkQ-xc#&g HlkQFc7S<t5 diff --git a/src/h5schemas/thd_joint_states/add_thd_joint_states.py b/src/h5schemas/thd_joint_states/add_thd_joint_states.py index 682ce8c..f1a82a5 100644 --- a/src/h5schemas/thd_joint_states/add_thd_joint_states.py +++ b/src/h5schemas/thd_joint_states/add_thd_joint_states.py @@ -3,6 +3,7 @@ from thd_json import thd_joint_states from h5schemas.scan_schema import open_schema from h5schemas.initialize_dataset import initialize_dataset from h5schemas.joint.add_joint import add_joint_sample +from h5schemas.header.add_header import add_header_sample, check_uuid_time_stamp def init_thd_joint_states(h5_file: File | Group): @@ -30,8 +31,11 @@ def add_thd_joint_states_sample( slave_joint_a4: float | None = None, slave_joint_a5: float | None = None, slave_joint_a6: float | None = None, - table_joint_a1: float | None = None): + table_joint_a1: float | None = None, + uuid: str | None = None, + timestamp: int | None = None,): + uuid, timestamp = check_uuid_time_stamp(uuid, timestamp) add_joint_sample(h5_file["/master_joint_e1"], master_joint_e1) @@ -53,6 +57,7 @@ def add_thd_joint_states_sample( add_joint_sample(h5_file["/table_joint_a1"], table_joint_a1) + add_header_sample(h5_file["/header"], uuid, timestamp) if __name__ == "__main__": import numpy as np -- GitLab