-
Notifications
You must be signed in to change notification settings - Fork 4
Refactors
Ben Murray edited this page Nov 14, 2020
·
8 revisions
Refactoring ExeTera
A number of high-level, big impact changes need to be made to the ExeTera codebase. These are required to make ExeTera API more generalisable and easier to use, but allow to allow for upcoming changes to be carried out with less impact, both in terms of code changes and in terms of changes to the API.
The following major refactors are planned:
- Remove all covid-specific code from ExeTera into ExeTeraCovid
- Move all data access inside the
Session
object - Provide rich functionality to groups and fields
- Move ExeTera away from HDF5 as a storage mechanism
- Provide file-system-based datastore
- Provide server-based datastore
From
s = Session()
src = s.open("my/dataset", "src")
flt = # calculate a filter
f = s.get(src["table/field"])
s.apply_filter(flt, f)
To
src = s.open("my/dataset", "src")
flt = # calculate a filter
f = src["table/field"]
f.apply_filter(flt, f)