During debugging bertsky/ocrd_detectron2#14 I realized that my assumption that every archive would only contain a single resource was wrong. The detectron2 models consist of a pytorch NN and a YAML description. This requires redundancy in the description and requires downloading the same archive twice.
With this change (and corresponding implementation in core), it would be possible to simplify
Also, this way the progressbar would be working again because the size attribute would always refer to the archive, not the file/folder in the archive.
During debugging bertsky/ocrd_detectron2#14 I realized that my assumption that every archive would only contain a single resource was wrong. The detectron2 models consist of a pytorch NN and a YAML description. This requires redundancy in the description and requires downloading the same archive twice.
With this change (and corresponding implementation in core), it would be possible to simplify
to
Also, this way the progressbar would be working again because the
size
attribute would always refer to the archive, not the file/folder in the archive.