Skip to content

Commit 6d2abc4

Browse files
committed
null defaults for es builder inputs
1 parent d7c6afd commit 6d2abc4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

emmet-builders/emmet/builders/materials/electronic_structure.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ class InputMeta(BaseModel):
2525

2626
class StructureInputs(InputMeta):
2727
# summary electronic structure data from VASP outputs for task doc
28-
band_gap: float
28+
band_gap: float | None = None
2929
cbm: float | None = None
3030
vbm: float | None = None
3131
efermi: float | None = None
32-
is_gap_direct: bool
33-
is_metal: bool
34-
magnetic_ordering: Ordering
32+
is_gap_direct: bool | None = None
33+
is_metal: bool | None = None
34+
magnetic_ordering: Ordering | None = None
3535

3636

3737
class StructuresShim(InputMeta):
@@ -45,7 +45,7 @@ class BSInputs(StructuresShim):
4545

4646
class DosInputs(StructuresShim):
4747
dos: DosShim
48-
is_gap_direct: bool
48+
is_gap_direct: bool | None = None
4949

5050

5151
class BSDosInputs(DosInputs, BSInputs): ...

0 commit comments

Comments
 (0)