Skip to content

Improve pseudospectral_grids import convenience with package-level re-exports#40

Merged
haakoek merged 2 commits into
mainfrom
import_convenience
May 19, 2026
Merged

Improve pseudospectral_grids import convenience with package-level re-exports#40
haakoek merged 2 commits into
mainfrom
import_convenience

Conversation

@haakoek
Copy link
Copy Markdown
Collaborator

@haakoek haakoek commented May 19, 2026

Summary

This PR improves import ergonomics for pseudospectral grid classes and mapping utilities by re-exporting commonly used symbols at the package level.

What changed

  • Added package-level re-exports in init.py:
    • FEMDVR
    • SincDVR
    • GaussLegendreLobatto
    • Linear_map
  • Added and updated all in init.py so these names are part of the intended public API.

Why

These changes enable cleaner imports from a single package entry point instead of requiring module-specific paths. This makes usage simpler and more discoverable.

User-facing impact

You can now import directly from the package:
from grid_lib.pseudospectral_grids import FEMDVR, SincDVR, GaussLegendreLobatto, Linear_map

@haakoek haakoek merged commit b349303 into main May 19, 2026
1 check passed
@haakoek haakoek deleted the import_convenience branch May 19, 2026 13:49
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