Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions pyoptgra/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@
# file, you can obtain them at https://www.gnu.org/licenses/gpl-3.0.txt
# and https://essr.esa.int/license/european-space-agency-community-license-v2-4-weak-copyleft

from .optgra import khan_function_sin, khan_function_tanh, optgra # noqa

try:
from ._version import version as __version__ # noqa
from ._version import version_tuple as __version_tuple__ # noqa
except ImportError: # pragma: no cover
pass
from ._about import __version__ # noqa
from .khan import ( # noqa
base_khan_function,
inverse_triangular_wave,
khan_function_sin,
khan_function_tanh,
khan_function_triangle,
triangular_wave_fourier,
triangular_wave_fourier_grad,
)
from .optgra import optgra # noqa
4 changes: 3 additions & 1 deletion pyoptgra/_about.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2021 ESA, Flight Dynamics OPS-GF
"""Version number of pyoptgra package"""
__version__ = "1.0.0"
from importlib.metadata import version

__version__ = version("pyoptgra") # import version from pyproject.toml
Loading