pyPESTO namespace: flat or modularized?
See original GitHub issueCurrently, most functionality from pypesto.{optimize,sampling,profile}
is put into the pypesto
namespace. This makes things shorter to call, however can lead to confusion as the number of classes and functions in pypesto keeps growing. Alternatively, one could enforce calling it always as pypesto.{optimize,sampling,profile,visualization,...}.xyz
(or maybe shortenings pypesto.{op,sa,pf,vi}.xyz
). On the other hand, I would not expect that the modules offer similar functions which cannot go into one namespace. Opinions?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Error: Expected in: flat namespace occuring out of the blue ...
Hi. When I download pyproj (MAC M1 chip, Big Sur 11.0.1) on python in a VENV folder it works originally then always seems...
Read more >AMICI Documentation - Read the Docs
The AMICI workflow starts with importing a model from either SBML (Matlab, Python), PySB (Python), or a Matlab.
Read more >"Namespaces are a honking good thing" vs "Flat is better than ...
"Flat is better than nested" should apply to all architectural considerations including namespaces. It's an admonishment against nesting too deeply (with 'too ...
Read more >pyPESTO - Parameter EStimation TOolbox for python ...
pyPESTO - Parameter EStimation TOolbox for python . Build status Code coverage Documentation status DOI. Version: 0.2.14.
Read more >2. Maintainability depends on modularity: Stop using ...
In a namespace-only system, you can have private variables and functions, but choices about privacy have to be made on a global basis...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok. I think we won’t reach scipy level dependencies, but it may still be good to call things explicitly via the modules.
This would just necessitate that we change all notebooks (and thus the public API) to full paths as well. If no-one opposes, I suggest doing that for the next major release.
Voting for modular. pypesto already accumulated quite some dependencies, that will be imported everytime if we have it flat. I don’t want to wait a minute when i
import pypesto
😃