Skip to content

Commit

Permalink
Merge pull request #11 from nicolasaunai/fix_circ_import
Browse files Browse the repository at this point in the history
fix circular import
  • Loading branch information
nicolasaunai authored May 4, 2024
2 parents 38f2acd + 4036cd0 commit e05c104
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 130 deletions.
10 changes: 2 additions & 8 deletions mpmaps/__init__.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
__author__ = """Nicolas Aunai"""
__email__ = "[email protected]"
__version__ = '0.1.1'
__version__ = "0.1.1"

from platformdirs import user_data_dir
import urllib.request
import os

from .mpmaps import MPMap
from .globals import grids


data_dir = os.path.join(user_data_dir(), "mpmaps")

grids = [
"mp_coordinates.pkl",
"mp_b_msp.pkl",
"mp_b_msh.pkl",
"mp_np_msp.pkl",
"mp_np_msh.pkl",
]

base_url = "https://hephaistos.lpp.polytechnique.fr/data/mpmaps_grids"

Expand Down
7 changes: 7 additions & 0 deletions mpmaps/globals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
grids = [
"mp_coordinates.pkl",
"mp_b_msp.pkl",
"mp_b_msh.pkl",
"mp_np_msp.pkl",
"mp_np_msh.pkl",
]
Loading

0 comments on commit e05c104

Please sign in to comment.