Comments (8)
That is already done in the definition of __getattr__
in class Results:
def __getattr__(self, prop):
"""Returns a section of the results.
Example:
..
dipole = result.dipole
"""
if prop in self.prop_dict:
return self.get_property(prop)
else:
raise KeyError("Generic property '" + str(prop) + "' not defined")
from qmflows.
No I mean generic keywords in the settings, it means we should raise a RuntimeError in handle_special_keywords it the key is not found. I now see it is already done in ADF, but not in DFTB. I will do it. Not sure about the other packages.
from qmflows.
Ok, I will do it for gamess, Orca and Cp2k
from qmflows.
Can We make a list of all the special keywords that should be implemented in all packages?
Keywords:
- basis
from qmflows.
Actually a warning might be better. Sometimes I want to quickly test a workflow by replacing a package by DFTB, and for sure DFTB doesn't have some of the keywords (e.g. basis
)
I think we should introduce a logger, so we can use different warning levels. Then the script can be run at different tolerance levels as well.
from qmflows.
What about an UserWarning?
from qmflows.
like:
from warnings import warn
msg = "Beware!"
warn(UserWarning(msg))
from qmflows.
OK, let's use that ....
from qmflows.
Related Issues (20)
- Add doctests HOT 1
- Replace Noodles with Dusk HOT 1
- fixed CP2K_RESULT creation
- Rename qmflows-namd to nano-qmflows
- Replace `init()` with `InitRestart`? HOT 2
- Add src to the setup.cfg testpaths
- Run cp2k with srun HOT 2
- Run tests in MaCOS and deactivate travis HOT 4
- setup of calling packages HOT 2
- Improve CP2K parser error HOT 1
- Read alpha and beta orbitals from cp2k unrestricted calculations
- CP2K unordered molecular orbital coefficients
- Make mention of package-specific environment variables somewhere
- Add tests for python 3.9
- Add tests for Python 3.9 HOT 1
- Fix the `test_cp2k_singlepoint_mock` test HOT 1
- ADF template default cause problems HOT 3
- Print CP2K cell parameters with more significant digits
- Re-enable the CP2K tests
- TST: Fix the codecov coverage HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qmflows.