optimamodel / optima

Optima HIV software tool
http://optimamodel.com
GNU Lesser General Public License v3.0
7 stars 1 forks source link

Rework ``__init__.py`` to not import submodules as _submodule #1899

Closed kelvinburke closed 1 year ago

kelvinburke commented 1 year ago

__init__.py used to import the submodules, eg. project as as _project and delete project. This meant that the server didn't like pickling and unpickling projects as there would be a missing optima.project.Project.

Originally the reasoning for this was: "so, e.g. optima.project is imported as optima._project, and optima.project is deleted since it's confusing when "project" is used as an instance of a project"

But since we now have the FE and hiv_utils as the interface, it shouldn't be too confusing that optima.project is a submodule and optima.Project is the class.