vortex-nwp 2.1.2__py3-none-any.whl → 2.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
vortex/__init__.py CHANGED
@@ -53,10 +53,10 @@ from .toolbox import algo as task
53
53
 
54
54
  from . import nwp as nwp # footprints import
55
55
 
56
- __version__ = "2.1.2"
56
+ __version__ = "2.1.3"
57
57
  __prompt__ = "Vortex v-" + __version__ + ":"
58
58
 
59
- __nextversion__ = "2.1.3"
59
+ __nextversion__ = "2.1.4"
60
60
  __tocinfoline__ = "VORTEX core package"
61
61
 
62
62
  __all__ = [
vortex/data/geometries.py CHANGED
@@ -764,12 +764,25 @@ def load(inifile="@geometries.ini", refresh=False, verbose=True):
764
764
 
765
765
  The class that will be instantiated depends on the "kind" keyword..
766
766
  """
767
+ from vortex import sessions
768
+
767
769
  iniconf = configparser.ConfigParser()
770
+
771
+ # Load from vortex distribution
768
772
  with importlib.resources.open_text(
769
773
  "vortex.data",
770
774
  "geometries.ini",
771
775
  ) as fh:
772
776
  iniconf.read_file(fh)
777
+
778
+ # Load from user's config directory if it exists
779
+ glove = sessions.current().glove
780
+ local = sessions.system()
781
+ user_geometries = glove.configrc + "/geometries.ini"
782
+ if local.path.exists(user_geometries):
783
+ with open(user_geometries, encoding="utf-8") as fh:
784
+ iniconf.read_file(fh)
785
+
773
786
  for item in iniconf.sections():
774
787
  gdesc = dict(iniconf.items(item))
775
788
  gkind = gdesc.get("kind")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vortex-nwp
3
- Version: 2.1.2
3
+ Version: 2.1.3
4
4
  Summary: A Python library to write Numerical Weather Prediction pipelines components
5
5
  Author-email: The Vortex Team <vortex.support@meteo.fr>
6
6
  License: CECILL-C
@@ -1,4 +1,4 @@
1
- vortex/__init__.py,sha256=Ha08D5DekSDLNs_l2NFOn32Du9ooeS7g2NAheW_aQs0,4374
1
+ vortex/__init__.py,sha256=c5NNahiKAbT_l0w-Ni5wOdjQyybGAFjJ6g8UhnZ-7x4,4374
2
2
  vortex/config.py,sha256=YEpcc81wR94jvn36fPONmKc1tM4ap0s8Rc7v3KfDUok,2948
3
3
  vortex/gloves.py,sha256=GKz27S8eLfRlk8fNqVL_z1gsQ8zvEj73p5uVi11ou00,8487
4
4
  vortex/proxy.py,sha256=OlPrVUJS5FoKt5pX8ApN1crFFDj8RJAqhDEilwvfrYU,127
@@ -19,7 +19,7 @@ vortex/data/contents.py,sha256=ZrwlJfOvkTemzikFRgYBQH3ApC-TPNrbZxpZstzDdbY,19079
19
19
  vortex/data/executables.py,sha256=FeR3SA2wW97zAQXwWVecZ0v6VYT5L_3K1Czuv33Bk74,6723
20
20
  vortex/data/flow.py,sha256=P1itBnA8jaoCWnVQjqbD_Pf26rpzud1JdwSLECDnDl4,3008
21
21
  vortex/data/geometries.ini,sha256=J7hX5hYWqwBjdUAul6q8j10U6b3I-QEHrFJ98LBTQXM,52805
22
- vortex/data/geometries.py,sha256=SjCF-74zDkbpt3qQujJU_UpeoBtgS7-xrEhbC4ywyRE,27429
22
+ vortex/data/geometries.py,sha256=ijRpb4Z0xhdYFlbO5thichY5g4DCK-oYG99Nlu6p9lw,27815
23
23
  vortex/data/handlers.py,sha256=0XeVFoSKSCMdvKTx5b1pczN79d14k_uGqccG6IXMX-8,50469
24
24
  vortex/data/outflow.py,sha256=IPKJkn75lRvhSqN5969TuhRAPnsZKlrWR4Cmw6VBFDs,1475
25
25
  vortex/data/providers.py,sha256=dkJHW9KuvNszdoWrRxcRv2u-z3gX2RPY3rlk5sEj0Vk,15730
@@ -137,8 +137,8 @@ vortex/util/roles.py,sha256=9un_QAijaMn5iTS7PrdoWI5_NNw7uHxMWTnyhc5aNzg,1150
137
137
  vortex/util/storefunctions.py,sha256=uSfG-G_A88iJf3DwFBd-j0rw6eJta8opfRT39aQHsHM,3615
138
138
  vortex/util/structs.py,sha256=vapErq0MNhiKlsnjrv_a5M0Rn29KbP3WE_oiy4Hfwb8,683
139
139
  vortex/util/worker.py,sha256=zp8f2tx4SXwf1v55XMdYLAx7n3vSlg8PRGrkHgnfdmg,4721
140
- vortex_nwp-2.1.2.dist-info/licenses/LICENSE,sha256=ewBJPmWAcQqtBPrydH10tt6ECkcYP3b1o2RfH85pJF0,21863
141
- vortex_nwp-2.1.2.dist-info/METADATA,sha256=bWDCwBAYIMthuMkaZMYIaL9TnaoOIJWMayUNrEgFKtA,2185
142
- vortex_nwp-2.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
143
- vortex_nwp-2.1.2.dist-info/top_level.txt,sha256=3xfbSD7kw8xKl0jk4GNHsOPKbhubstfWHPl6bxHciRQ,7
144
- vortex_nwp-2.1.2.dist-info/RECORD,,
140
+ vortex_nwp-2.1.3.dist-info/licenses/LICENSE,sha256=ewBJPmWAcQqtBPrydH10tt6ECkcYP3b1o2RfH85pJF0,21863
141
+ vortex_nwp-2.1.3.dist-info/METADATA,sha256=Hbbea9Uml3ko4Amutk5FO0INbWbHzhabPigBufh8eFA,2185
142
+ vortex_nwp-2.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
143
+ vortex_nwp-2.1.3.dist-info/top_level.txt,sha256=3xfbSD7kw8xKl0jk4GNHsOPKbhubstfWHPl6bxHciRQ,7
144
+ vortex_nwp-2.1.3.dist-info/RECORD,,