Skip to content

Commit 5433665

Browse files
authoredDec 7, 2022
Merge pull request #13 from pybamm-team/i12-experiment
#12 update experiment schema
2 parents a35d261 + c104d80 commit 5433665

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed
 

‎bpx/schema.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List, Literal, Union
1+
from typing import List, Literal, Union, Dict
22

33
from pydantic import BaseModel, Field
44

@@ -243,7 +243,7 @@ class Electrode(Contact):
243243
)
244244

245245

246-
class Experimental(BaseModel):
246+
class Experiment(BaseModel):
247247
time: List[float] = Field(
248248
alias="Time [s]",
249249
example=[0, 0.1, 0.2, 0.3, 0.4],
@@ -285,13 +285,9 @@ class Parameterisation(BaseModel):
285285
)
286286

287287

288-
class Validation(BaseModel):
289-
experimental: Experimental = Field(None, alias="Experimental")
290-
291-
292288
class BPX(BaseModel):
293289
header: Header = Field(
294290
alias="Header",
295291
)
296292
parameterisation: Parameterisation = Field(alias="Parameterisation")
297-
validation: Validation = Field(None, alias="Validation")
293+
validation: Dict[str, Experiment] = Field(None, alias="Validation")

0 commit comments

Comments
 (0)
Please sign in to comment.