File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class ValidationDoc(EmmetBaseModel):
5353 Validation document for a VASP calculation
5454 """
5555
56- task_id : MPID = Field (... , description = "The task_id for this validation document" )
56+ task_id : MPID | None = Field (None , description = "The task_id for this validation document" )
5757
5858 valid : bool = Field (False , description = "Whether this task is valid or not" )
5959
@@ -155,9 +155,7 @@ def from_dict(
155155 orig_inputs = {} if (task_doc ["orig_inputs" ] is None ) else task_doc ["orig_inputs" ]
156156
157157 cls_kwargs : dict [str , Any ] = {
158- "task_id" : (
159- task_doc ["task_id" ] if task_doc ["task_id" ] else - 1
160- ), # Unsure about what might be a better way to do this...
158+ "task_id" : task_doc ["task_id" ] if task_doc ["task_id" ] else None ,
161159 "calc_type" : _get_calc_type (calcs_reversed , orig_inputs ),
162160 "task_type" : _get_task_type (calcs_reversed , orig_inputs ),
163161 "run_type" : _get_run_type (calcs_reversed ),
You can’t perform that action at this time.
0 commit comments