Address warning during export: Could not determine source_object_id #245
Labels
category: enhancement
improvements of code or code behavior
priority: low
alternative solution already working and/or relevant to only specific user(s)
Milestone
Looking through the test suite, four tests give this warning:
From this line:
hdmf-zarr/src/hdmf_zarr/backend.py
Lines 799 to 811 in 3d08b60
The tests involve a File 2 that has a link to a Foo object in File 1. Then File 2 is exported to File 3. The Foo object in File 1 has a builder but that builder has no parent, because File 1 was not built; just Foo in File 1 was built. As a result, the warning is raised. The Foo builder has a
source
and the method has arel_link_source
. So thesource
for the createdZarrReference
is correct, but thesource_object_id
is None. Is the object ID of the source file (the root of File 1) necessary for creating aZarrReference
? Should it be necessary to build the root of File 1 (which means all of File 1 gets built) in order to write a link to an object in File 1?Of all the uses of export, the above use case is probably quite common. It is confusing and a bit alarming to have this warning appear on export.
The text was updated successfully, but these errors were encountered: