Open ninamiolane opened 2 years ago
I also added remove
method. Btw, osf ls
does not give us all items in the project. Somehow it doesn't list ones created by the obsolete OSFUpload
. I suspect it is because it was added as a child node and osf ls
cannot list them, or something. Move on for now, as we will only use osf upload
?
What?
OSFProject
in ioSPI/datasets.py that refactors the code in:Project
in ioSPI's PR#70OSFUpload
in ioSPI/datasets.py moduleupload_dataset_from_files
of simSPI's tem_tutorial.ipynbupload_dataset_from_files
of simSPI's tem_tutorial.ipynbdatasets.py
module.Why?
There are several reasons for this task:
The library ioSPI can only be useful if users can understand it quickly. This task is urgent and very much needed.
Where?
The class
OSFProject
should go into the ioSPI/datasets.py module.This class replaces the classes
Project
andOSFUpload
from ioSPI/datasets.py.How?
The new class
OSFProject
should have (at least):ls
: listing the files of a OSF projectdownload
upload
and follow the logic that one object instantiated from this class corresponds to one OSF project.