Fixed PML when called by hash command

这个提交包含在:
Craig Warren
2022-11-15 16:11:16 +00:00
父节点 2efc206c53
当前提交 d035ac9ca2

查看文件

@@ -278,16 +278,12 @@ class PMLProps(UserObjectSingle):
def create(self, G, uip):
try:
formulation = self.kwargs['formulation']
G.pmls['formulation'] = self.kwargs['formulation']
if G.pmls['formulation'] not in PML.formulations:
logger.exception(self.__str__() + f" requires the value to be " +
f"one of {' '.join(PML.formulations)}")
except KeyError:
logger.exception(self.__str__() + ' requires the formulation of PML to use')
raise
if formulation not in PML.formulations:
logger.exception(self.__str__() + f" requires the value to be one " +
f"of {' '.join(PML.formulations)}")
raise ValueError
G.pmls['formulation'] = formulation
pass
try:
thickness = self.kwargs['thickness']