Closed corrado9999 closed 3 years ago
Did you hit this bug when doing something useful? If not I'd just add and assert isinstance(tag_list, list)
.
As far as I am concerned https://github.com/bopen/xarray-sentinel/commit/4f2a272e941477b6d67407f116dea5a2e955eeac fixes this bug. @corrado9999 please close it if you agree.
@alexamici yes, I was trying something useful, but I have just realised I was doing it in the wrong way. Instead of asking for calibrationVector
I asked for the common parent calibrationVectorList
. The issue still persist in the degenerated case when e.g. only one calibrationVector
is present, but it should not arise with our data, the assert
should be enough.
If the requested tag has one or more attributes,
xmlschema
returns adict
with the attribute names as keys plus the key$
for the actual list.