Skip to content
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

Remove relative and circular imports #146

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

mcflugen
Copy link
Collaborator

@mcflugen mcflugen commented Dec 3, 2024

The pull request will function as a base pr that I'll break out into smaller, more manageable, pull requests.

I had originally intended to convert the deltametrics many relative imports into absolute imports and to directly import objects from modules, rather than importing the modules themselves. I find absolute imports easier to read and follow than relative imports. deltametrics is small enough that it's not a big issue yet, but, still, I figured it would give it a go. Absolute imports can also expose circular imports, which is exactly what happened here.

I realize things were working before, but I hope these changes will make things a little easier to read and more robust to future changes. The circular imports may point to some design issues that we may wish to discuss in the future but which I don't address here.

@mcflugen mcflugen marked this pull request as draft December 3, 2024 20:14
@mcflugen mcflugen force-pushed the mcflugen/remove-relative-and-circular-imports branch from 5d4c21e to 23b1881 Compare December 3, 2024 23:46
@mcflugen mcflugen force-pushed the mcflugen/remove-relative-and-circular-imports branch from 23b1881 to f9bf4cc Compare December 4, 2024 02:36
@mcflugen mcflugen force-pushed the mcflugen/remove-relative-and-circular-imports branch from f9bf4cc to ff1bb35 Compare December 4, 2024 18:04
@mcflugen mcflugen force-pushed the mcflugen/remove-relative-and-circular-imports branch from ff1bb35 to 2749d4f Compare December 4, 2024 20:58
@mcflugen mcflugen force-pushed the mcflugen/remove-relative-and-circular-imports branch from 2749d4f to 88faa4c Compare December 5, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant