Skip to content
Snippets Groups Projects

Refactor packaging

Merged Cammille Carinan requested to merge refactor-packaging into master
1 unresolved thread
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
from .XAS import (
xas, xasxmcd)
from .knife_edge import knife_edge
from .XAS import *
# Module name is the same as a child function, we use alias to avoid conflict
import toolbox_scs.routines.knife_edge as knife_edge_module
from .knife_edge import *
__all__ = (
# Functions
"xas",
"xasxmcd",
"knife_edge"
knife_edge_module.__all__
+ XAS.__all__
)
# -----------------------------------------------------------------------------
# Clean namespace
# -> certain filenames we dont need in the namespace. Especially not those
# that are marked as private by using an underscore (_<filename>.py).
# -----------------------------------------------------------------------------
clean_ns = [
# filenames
'XAS',
]
for name in dir():
if name in clean_ns:
del globals()[name]
del globals()['clean_ns']
del globals()['name']
Loading