We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b036d5e commit 9f3ecbaCopy full SHA for 9f3ecba
t3/schema.py
@@ -585,6 +585,19 @@ def check_qm(cls, value):
585
"""InputBase.qm validator"""
586
return value or dict()
587
588
+ @validator('rmg', always=True)
589
+ def check_rmg(cls, value):
590
+ """InputBase.rmg validator"""
591
+ # Check the presence of at least one inert gas if PDep is requested
592
+ if value.species and value.pdep and value.pdep.method:
593
+ for species in value.species:
594
+ if not species.reactive:
595
+ break
596
+ else:
597
+ raise ValueError(f'Pressure Dependence calculations require at least one inert (non-reacting) '
598
+ f'species for the bath gas.')
599
+ return value
600
+
601
@root_validator(pre=True)
602
def validate_rmg_t3(cls, values):
603
"""InputBase.validate_rmg_t3"""
0 commit comments