jinns 1.6.0__py3-none-any.whl → 1.6.1__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.
@@ -13,7 +13,7 @@ from jaxtyping import PRNGKeyArray, Int, Array, Float
13
13
  from jinns.data._Batchs import ObsBatchDict
14
14
  from jinns.data._utils import _reset_or_increment
15
15
  from jinns.data._AbstractDataGenerator import AbstractDataGenerator
16
- from jinns.parameters._params import EqParams
16
+ from jinns.utils._DictToModuleMeta import DictToModuleMeta
17
17
 
18
18
  if TYPE_CHECKING:
19
19
  # imports only used in type hints
@@ -27,6 +27,15 @@ if TYPE_CHECKING:
27
27
  # before hand: this is not practical, let us not get mad at this
28
28
 
29
29
 
30
+ class DGObservedParams(metaclass=DictToModuleMeta):
31
+ """
32
+ However, static type checkers cannot know that DGObservedParams inherit from
33
+ eqx.Module and explicit casting to the latter class will be needed
34
+ """
35
+
36
+ pass
37
+
38
+
30
39
  class DataGeneratorObservations(AbstractDataGenerator):
31
40
  r"""
32
41
  Despite the class name, it is rather a dataloader for user-provided
@@ -126,7 +135,9 @@ class DataGeneratorObservations(AbstractDataGenerator):
126
135
  )
127
136
  # Convert the dict of observed parameters to the internal `EqParams`
128
137
  # class used by Jinns.
129
- self.observed_eq_params = EqParams(observed_eq_params, "EqParams")
138
+ self.observed_eq_params = DGObservedParams(
139
+ observed_eq_params, "DGObservedParams"
140
+ )
130
141
  else:
131
142
  self.observed_eq_params = observed_eq_params
132
143
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jinns
3
- Version: 1.6.0
3
+ Version: 1.6.1
4
4
  Summary: Physics Informed Neural Network with JAX
5
5
  Author-email: Hugo Gangloff <hugo.gangloff@inrae.fr>, Nicolas Jouvin <nicolas.jouvin@inrae.fr>
6
6
  Maintainer-email: Hugo Gangloff <hugo.gangloff@inrae.fr>, Nicolas Jouvin <nicolas.jouvin@inrae.fr>
@@ -4,7 +4,7 @@ jinns/data/_Batchs.py,sha256=UZfJWIKAFLQJxOtWN1ybJdoSQCO6PWk3SAgV9YmNVnI,2809
4
4
  jinns/data/_CubicMeshPDENonStatio.py,sha256=dtev6j7HuVZ_IBGnKVKOlJTyZVjnW_8G1VRGpcL40VU,22922
5
5
  jinns/data/_CubicMeshPDEStatio.py,sha256=g4H9wI0FkA9sdnlSxp00QArq9IjhPrmsGgSleLdNpI4,23314
6
6
  jinns/data/_DataGeneratorODE.py,sha256=XOGeX9m5J9CkkGx2alJ5G7FZYGn5cBUaFpO-3-MKvdc,7724
7
- jinns/data/_DataGeneratorObservations.py,sha256=gTiilF4nTY6PDAHQc5HogMWw7g266gwnN0pxSuF6B9A,9474
7
+ jinns/data/_DataGeneratorObservations.py,sha256=h2bS-oOUi1rYvhDHy8xT-N9voqtb_IOelL2asnXCybw,9765
8
8
  jinns/data/_DataGeneratorParameter.py,sha256=m7WCWBtmNptF8qQSWGPTQEFVzkJb8kJpidKAFBmoBiQ,10205
9
9
  jinns/data/__init__.py,sha256=DEzEmoD5TmjHCaG6pS2jmFDzuhZn1ZDpFdVa2v0jCe0,703
10
10
  jinns/data/_utils.py,sha256=xKHf7NksJ_AmrtEcpJsh7WSEvI3Yk98_cM5kmXSfmx0,5596
@@ -49,9 +49,9 @@ jinns/utils/_types.py,sha256=mmDKnZavLBRNHrfsa4w2KgZbm-3Xrlu3Vx_mJ9sKI78,1288
49
49
  jinns/utils/_utils.py,sha256=M7NXX9ok-BkH5o_xo74PB1_Cc8XiDipSl51rq82dTH4,2821
50
50
  jinns/validation/__init__.py,sha256=FTyUO-v1b8Tv-FDSQsntrH7zl9E0ENexqKMT_dFRkYo,124
51
51
  jinns/validation/_validation.py,sha256=8p6sMKiBAvA6JNm65hjkMj0997LJ0BkyCREEh0AnPVE,4803
52
- jinns-1.6.0.dist-info/licenses/AUTHORS,sha256=7NwCj9nU-HNG1asvy4qhQ2w7oZHrn-Lk5_wK_Ve7a3M,80
53
- jinns-1.6.0.dist-info/licenses/LICENSE,sha256=BIAkGtXB59Q_BG8f6_OqtQ1BHPv60ggE9mpXJYz2dRM,11337
54
- jinns-1.6.0.dist-info/METADATA,sha256=aRCwx1t_urD8T8szddlOYusL0KDpwvJ9Rlbzsw4AQN0,5314
55
- jinns-1.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
56
- jinns-1.6.0.dist-info/top_level.txt,sha256=RXbkr2hzy8WBE8aiRyrJYFqn3JeMJIhMdybLjjLTB9c,6
57
- jinns-1.6.0.dist-info/RECORD,,
52
+ jinns-1.6.1.dist-info/licenses/AUTHORS,sha256=7NwCj9nU-HNG1asvy4qhQ2w7oZHrn-Lk5_wK_Ve7a3M,80
53
+ jinns-1.6.1.dist-info/licenses/LICENSE,sha256=BIAkGtXB59Q_BG8f6_OqtQ1BHPv60ggE9mpXJYz2dRM,11337
54
+ jinns-1.6.1.dist-info/METADATA,sha256=f3RcBZX2apKaq1DNb243IOlI2ieoUr0l1a5BDw0Wfsc,5314
55
+ jinns-1.6.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
56
+ jinns-1.6.1.dist-info/top_level.txt,sha256=RXbkr2hzy8WBE8aiRyrJYFqn3JeMJIhMdybLjjLTB9c,6
57
+ jinns-1.6.1.dist-info/RECORD,,
File without changes