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

Fix import of Harmonica version on sample datasets #264

Merged
merged 5 commits into from
Oct 21, 2021
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
6 changes: 1 addition & 5 deletions harmonica/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@
EQLHarmonicSpherical,
)

# This file is generated automatically by setuptools_scm
from . import _version

# Add a "v" to the version number
__version__ = f"v{_version.version}"
from .version import __version__


def test(doctest=True, verbose=True, coverage=False, figures=False):
Expand Down
2 changes: 1 addition & 1 deletion harmonica/datasets/sample_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import pandas as pd
import pooch

from .._version import version
from ..version import __version__ as version

REGISTRY = pooch.create(
path=pooch.os_cache("harmonica"),
Expand Down
8 changes: 8 additions & 0 deletions harmonica/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""
Define the __version__ variable as the version number with leading "v"
"""
# This file is generated automatically by setuptools_scm
from ._version import version

# Add a "v" to the version number
__version__ = f"v{version}"