-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IO structure : what should happen where? #8
Comments
I agree with you completely on the io structure. Additionally I restructured the |
That seems to make sense, to only use the registered attributes and leave the And cool, I'll see if I can get started on restructuring IO methods next week! |
Closed by #11 |
I believe there are quite some differences between the different
from_*
methods. Sometimes all the logic is stored in theio.io_*.py
files whereas in other cases some of the logic is still performed in thefrom_*()
method. I think this is mostly the case inObsCollection
.So I'm wondering out loud whether this is something that could be made more uniform?
Proposal
All io methods used for constructing the
Obs
andObsCollections
should return either:io_*.py
files.The
Obs.from_*
methods take the DataFrame and metadata and convert it to an Obs instance in the classmethodThe
ObsCollection.from_*
methods take the list of Obs and convert it to an ObsCollection instance.I think making this more uniform will make it easier to write new methods. Thoughts?
Edit: typos
The text was updated successfully, but these errors were encountered: