compSPI / ioSPI

I/O and Data Visualization
MIT License
4 stars 7 forks source link

Refactor datasets.py module #74

Open ninamiolane opened 2 years ago

ninamiolane commented 2 years ago

What?

Why?

There are several reasons for this task:

Where?

The class OSFProject should go into the ioSPI/datasets.py module.

This class replaces the classes Project and OSFUpload from ioSPI/datasets.py.

How?

The new class OSFProject should have (at least):

and follow the logic that one object instantiated from this class corresponds to one OSF project.

bongjinkoo commented 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?