Refactor lib.data.create_dataset
Current use is confusing, difficult to maintain, and overall (imo) bad.
The function lib.data.create_dataset(...)
is called in a file lib/data/<dataset>
with some arguments that contain information about the dataset.
It returns a namespace containing some functions (get_data
, get_filename
, get_finder
,...) that are automatically added to the module lib.data.<dataset>
. They can be overidden pretty easily, but their contents is really hidden in the mess of lib.data.create_dataset()
.
I guess that an OOP approach would be much more effective and simpler to grasp/modify/maintain. I don't currently have a specific idea, but surely it's doable.
Ideas of potential user interfaces are welcome!