BioImage-Archive / bia-integrator

Apache License 2.0
2 stars 3 forks source link

refactor of study export logic #169

Closed sherwoodf closed 1 month ago

sherwoodf commented 1 month ago

does not change output but makes dropping in the code to handle the client easier at a later date.

General approach was to have:

create_X/ method that creates (lists of) website objects - normally independent of source (API or local) except when it would be terribly inefficient locally, so sometimes they do some pre-computing of local data that they save to the config.

retreieve_X: method that contains all the logic to return a list of API objects, either from local files (implemented) or from the API (currently not yet implemented)

Note i've made sure the tests haven't changed so that hopefully this can be reviewed smoothly.