Comments (5)
I fixed this issue by introducing the special Settings keyword "__block _replace"
__block_replace = True
results in removing all existing key value pairs in the current node of the settings tree.
For example:
from qmworks import Settings
t = Settings()
t.input.xc.lda = ""
u = Settings()
u.input.xc.hybrid = 'b3lyp'
print(t.overlay(u))
input:
xc:
hybrid: b3lyp
lda:
u.input.xc.__block_replace = True
print(t.overlay(u))
input:
xc:
__block_replace: True
hybrid: b3lyp
I added the __block_replace keyword already in the templates, so you don't need to add __block_replace to your user settings. It should just work know. Please try and let me know if you encounter any issues.
from qmflows.
By the way: these recent changes are currently only in the "develop" branch of qmworks
from qmflows.
Dear Lars,
I have tested it and I got a following error "RuntimeError: dictionary changed size during iteration"., which is related to templates.
slurm-2272394.txt
Kind regards,
Satesh
from qmflows.
Hi Satesh,
I cannot reproduce this problem, which your reported quite some time ago. Is it still occurring on your side?
Regards,
Lars
from qmflows.
Dear Lars,
I have tested them again and it is not occurring now.
Regards,
Satesh
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.