Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion micromagneticmodel/energy/dmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@uu.inherit_docs
@ts.typesystem(
D=ts.Parameter(descriptor=ts.Scalar(), otherwise=df.Field),
suffix=ts.Typed(expected_type=str),
crystalclass=ts.Subset(
sample_set={
"Cnv",
Expand All @@ -20,6 +21,16 @@
"D2d_x",
"D2d_y",
"D2d_z",
"S4_x",
"S4_y",
"S4_z",
"Dn_x",
"Dn_y",
"Dn_z",
"Cn_x",
"Cn_y",
"Cn_z",
"C2v",
},
unpack=False,
),
Expand Down Expand Up @@ -105,7 +116,7 @@ class DMI(EnergyTerm):

"""

_allowed_attributes = ["D", "crystalclass"]
_allowed_attributes = ["D", "D1", "D2", "D3", "Dx", "Dy", "crystalclass", "suffix"]

@property
def _reprlatex(self):
Expand Down
Loading