question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyPESTO namespace: flat or modularized?

See original GitHub issue

Currently, 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
yannikschaeltecommented, May 29, 2020

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.

1reaction
dweindlcommented, May 29, 2020

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found