Open jl-wynen opened 1 week ago
For now, we simply ignore the warning in the integration tests.
We currently have no need for the TDC and may never do. And since we load only relevant pieces from files, we may never encounter this warning in practice. So, to not spend more time than needed, we simply ignore the warning.
Context
At ESS, TDC logs currently do not contain a signal. They don't technically need a signal because the logs only contain a timestamp. To accommodate this, ECDC use the special
tdct
schema instead of the usualf144
for logs.tdct
also does not contain extra fields such asmaximum_value
that we normally load as coordinates of a log.~NOTE George is debating whether this should be changed on the ECDC side. So this issue might not need to be solved in ScippNexus.~ This won't happen in all likelihood. So if we actually need to load TDC timestamps, we need to work around the problem.
The problem
In ScippNexus, loading a TDC log raises a warning:
Possible solutions
Detecting a TDC log
top_dead_center
,writer_module
attr of the group is'tdct'
,Encoding the log
da.data is da.coords['time']
. I.e., use the same variable twice.data
is useless and may be confusing.