You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can be confusing that Objects are also Datasets but they don't have the same helper functions (like "query()". If an Object is a type "dataset", it should be possible to at least query it. How can we blend the Dataset class into the Object class?
One way is to have different sub-classes for each Object type, like DatasetObject, FileObject, FolderObject. Or we can deprecate the Dataset class itself and replace it with a subclass of Object (called Dataset), and add File and Folder subclasses.
The text was updated successfully, but these errors were encountered:
What about adding a __getattr__ and returning the result of getattr(Dataset, "attr") if the object type is dataset? We can limit the list of valid attrs to "beacon, activity, etc.." if we want.
* get or create for an Object (also closes#326)
* add Object getattr for #287
* handle other cases
* update
* update examples
* add a note
* use Object lookup
It can be confusing that Objects are also Datasets but they don't have the same helper functions (like "query()". If an Object is a type "dataset", it should be possible to at least query it. How can we blend the Dataset class into the Object class?
One way is to have different sub-classes for each Object type, like
DatasetObject
,FileObject
,FolderObject
. Or we can deprecate theDataset
class itself and replace it with a subclass of Object (calledDataset
), and addFile
andFolder
subclasses.The text was updated successfully, but these errors were encountered: