-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve API #246
Comments
@NickleDave, I'd like your input on a potential restructure here:
My concern with the above is I have 10 files found in Separately, I have some helper functions for visualizing the results of synthesis optimization, such as |
This list is what would be imported into the top-level name space, inside For the couple of times where you list "all the other modules", do you absolutely need to import those into the top-level name space? Maybe you could use lazy loading? (Not trying to add to your to-do list, just a thought) edit: I don't think you definitely, totally, absolutely need to get rid of a tools sub-package, esp if that's a huge refactor -- sorry if that's what I implied. I would just import functions that live there at the top-level if they are frequently used. That might require a refactor if it causes circular imports tho
Very subjective but I really like to have a top-level |
I was planning on looking into lazy loading, @DanielaPamplona mentioned it. I need to look into exactly what it means -- from the user perspective, it's similar to importing them in to the top-level name space, right? I think getting rid of tools makes sense, it is an odd grab-bag of unrelated functions. I need to think more deeply about how much work it requires, but at the minimum I will import the most-used functions at the top level. For |
Related to this, we're currently ignoring Ruff error code F401 in the init files, but the right way to handle that is to set |
To remove wildcard (
Note that the Ruff linter |
From pyOpenSci review:
The text was updated successfully, but these errors were encountered: