-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the correct way to use the MAGMOM
's value when using MP API data?
#4173
What's the correct way to use the MAGMOM
's value when using MP API data?
#4173
Comments
@hongyi-zhao , this is more of an atomate2 question, but the critical thing here is that the line If you want to use the magmoms from the MP structure as the starting values of MAGMOM, then having "magmom" in the structure's site_properties is sufficient, atomate2 will use those To be explicit, I recommend just the following:
|
But, the above code will trigger several custodian errors: #$ pyenv shell datasci
#$ module load vasp
#$ ipython
In [1]: from mp_api.client import MPRester
...: from atomate2.vasp.flows.mp import MPGGADoubleRelaxMaker
...: from atomate2.vasp.powerups import update_user_potcar_functional
...: from jobflow import run_locally
...:
...: # Set POTCAR functional
...: user_potcar_functional = "PBE_64"
...:
...: # Get structure from MP
...: material_id = "mp-126"
...: with MPRester() as mpr:
...: structure = mpr.get_structure_by_material_id(material_id)
...:
...: # If you really need the conventional structure, then uncomment this line. Otherwise, this adds unnecessary compute cost
...: #structure = structure.to_conventional()
...:
...: flow = MPGGADoubleRelaxMaker().make(structure)
...:
...: # Update POTCAR settings
...: flow = update_user_potcar_functional(flow, user_potcar_functional)
...:
...: # Run the flow
...: responses = run_locally(flow, create_folders=True, ensure_success=True)
Retrieving MaterialsDoc documents: 100%|█████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 13357.66it/s]
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/sets.py:288: BadInputSetWarning: Overriding the POTCAR functional is generally not recommended as it significantly affects the results of calculations and compatibility with other calculations done with the same input set. Note that some POTCAR symbols specified in the configuration file may not be available in the selected functional.
warnings.warn(
2024-12-20 09:20:02,603 INFO Started executing jobs locally
2024-12-20 09:20:02,607 INFO Starting job - MP GGA relax 1 (1a81cdd6-3ab5-4165-aaf5-761fc4d7e45e)
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/sets.py:757: BadInputSetWarning: Relaxation of likely metal with ISMEAR < 0 (-5). See VASP recommendations on ISMEAR for metals (https://www.vasp.at/wiki/index.php/ISMEAR).
warnings.warn(
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:2420: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:2985: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(os.path.join(output_dir, key), mode="wt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:908: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:1648: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:2826: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:287: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:908: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/custodian/vasp/handlers.py:185: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(os.path.join(directory, self.output_filename), mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:1648: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:2826: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:287: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:312: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:4356: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as fid:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:2114: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:2365: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(self.filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:895: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="wt") as file:
ERROR:custodian.custodian:IncorrectSmearingHandler
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:908: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/custodian/vasp/handlers.py:185: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(os.path.join(directory, self.output_filename), mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:1648: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:2826: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:287: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:312: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:4356: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as fid:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:2114: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:2365: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(self.filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/core/structure.py:3175: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt", errors="replace") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:895: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="wt") as file:
ERROR:custodian.custodian:LargeSigmaHandler
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:908: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/custodian/vasp/handlers.py:185: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(os.path.join(directory, self.output_filename), mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:1648: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:2826: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:287: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:312: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:4356: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as fid:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:2114: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:2365: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(self.filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/core/structure.py:3175: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt", errors="replace") as file:
2024-12-20 09:21:04,335 INFO Finished job - MP GGA relax 1 (1a81cdd6-3ab5-4165-aaf5-761fc4d7e45e)
INFO:jobflow.core.job:Finished job - MP GGA relax 1 (1a81cdd6-3ab5-4165-aaf5-761fc4d7e45e)
2024-12-20 09:21:04,335 WARNING Response.stored_data is not supported with local manager.
WARNING:jobflow.managers.local:Response.stored_data is not supported with local manager.
2024-12-20 09:21:04,335 INFO Starting job - MP GGA relax 2 (d7b7f3fd-53a5-4dc3-9188-c2bdd1a6bfc5)
INFO:jobflow.core.job:Starting job - MP GGA relax 2 (d7b7f3fd-53a5-4dc3-9188-c2bdd1a6bfc5)
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/atomate2/common/files.py:268: UserWarning: /home/werner/test/job_2024-12-20-01-21-04-335517-47956/INCAR is not gzipped, skipping...
file_client.gunzip(directory / file, host=host, force=force)
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/atomate2/common/files.py:268: UserWarning: /home/werner/test/job_2024-12-20-01-21-04-335517-47956/OUTCAR is not gzipped, skipping...
file_client.gunzip(directory / file, host=host, force=force)
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/atomate2/common/files.py:268: UserWarning: /home/werner/test/job_2024-12-20-01-21-04-335517-47956/CONTCAR is not gzipped, skipping...
file_client.gunzip(directory / file, host=host, force=force)
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/atomate2/common/files.py:268: UserWarning: /home/werner/test/job_2024-12-20-01-21-04-335517-47956/vasprun.xml is not gzipped, skipping...
file_client.gunzip(directory / file, host=host, force=force)
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/atomate2/common/files.py:268: UserWarning: /home/werner/test/job_2024-12-20-01-21-04-335517-47956/WAVECAR is not gzipped, skipping...
file_client.gunzip(directory / file, host=host, force=force)
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/atomate2/common/files.py:268: UserWarning: /home/werner/test/job_2024-12-20-01-21-04-335517-47956/CHGCAR is not gzipped, skipping...
file_client.gunzip(directory / file, host=host, force=force)
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/atomate2/common/files.py:268: UserWarning: /home/werner/test/job_2024-12-20-01-21-04-335517-47956/POTCAR is not gzipped, skipping...
file_client.gunzip(directory / file, host=host, force=force)
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/atomate2/common/files.py:268: UserWarning: /home/werner/test/job_2024-12-20-01-21-04-335517-47956/KPOINTS is not gzipped, skipping...
file_client.gunzip(directory / file, host=host, force=force)
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/sets.py:757: BadInputSetWarning: Relaxation of likely metal with ISMEAR < 0 (-5). See VASP recommendations on ISMEAR for metals (https://www.vasp.at/wiki/index.php/ISMEAR).
warnings.warn(
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:2420: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:2985: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(os.path.join(output_dir, key), mode="wt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:908: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/custodian/vasp/handlers.py:185: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(os.path.join(directory, self.output_filename), mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:1648: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:2826: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:287: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:312: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:4356: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as fid:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:2114: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:2365: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(self.filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:895: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="wt") as file:
ERROR:custodian.custodian:IncorrectSmearingHandler
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:908: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/custodian/vasp/handlers.py:185: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(os.path.join(directory, self.output_filename), mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:1648: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:2826: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:287: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:312: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:4356: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as fid:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:2114: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:2365: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(self.filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/core/structure.py:3175: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt", errors="replace") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:895: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="wt") as file:
ERROR:custodian.custodian:LargeSigmaHandler
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:908: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/custodian/vasp/handlers.py:185: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(os.path.join(directory, self.output_filename), mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:1648: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:2826: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py:287: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:312: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:4356: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as fid:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:2114: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py:2365: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(self.filename, mode="rt") as file:
/home/werner/.pyenv/versions/3.11.1/envs/datasci/lib/python3.11/site-packages/pymatgen/core/structure.py:3175: EncodingWarning: We strongly encourage explicit `encoding`, and we would use UTF-8 by default as per PEP 686
with zopen(filename, mode="rt", errors="replace") as file:
2024-12-20 09:21:56,255 INFO Finished job - MP GGA relax 2 (d7b7f3fd-53a5-4dc3-9188-c2bdd1a6bfc5)
INFO:jobflow.core.job:Finished job - MP GGA relax 2 (d7b7f3fd-53a5-4dc3-9188-c2bdd1a6bfc5)
2024-12-20 09:21:56,255 WARNING Response.stored_data is not supported with local manager.
WARNING:jobflow.managers.local:Response.stored_data is not supported with local manager.
2024-12-20 09:21:56,255 INFO Finished executing jobs locally
INFO:jobflow.managers.local:Finished executing jobs locally While custodian provides automated error handling and parameter adjustments, initial reasonable parameter settings are still important for obtaining meaningful calculation results. See Neraaz/HTESP#2 (comment) for more tests and comments by me. |
@hongyi-zhao, your job still runs successfully because of the changes made by custodian. The final results will still be meaningful because of those changes. You can safely set @DanielYang59, these warnings about encoding from monty #730 are a little disruptive. Can the default be to disable this, or at least explicitly set |
You're absolutely correct, I should have used the
I just had a quick looks and it looks like |
For certain types of computational tasks, such as elastic tensors, the small differences in the above parameters can make a big difference in the final result, as shown here. |
@DanielYang59: most instances of |
@hongyi-zhao that's completely fair, but that's more of a scientific methodology question and not a pymatgen bug. FWIW, the experimental uncertainty in bulk moduli, especially after applying zero point corrections for the nuclear motion to better compare with zero-temperature DFT, can be on the order of 10 GPa if not more. The <10 GPa differences in your results is still less than the experimental uncertainty |
@esoteric-ephemera But I have another question here: for the example of "mp-126", the following values are used in the
However, the MP database involves a huge amount of computations, so how are detailed parameter adjustments like this achieved if they are not based on custodian's automatic adjustments? |
@esoteric-ephemera Ah I got your point now so it's Sorry for going astray in your thread @hongyi-zhao |
No worries, I understand. We can continue discussing the topic, or feel free to bring up any other questions you might have. 😊 |
@hongyi-zhao, since we add handlers to custodian over time, you might see different behavior in calculations run with a newer version of custodian. My guess is you're running a version of custodian that includes the |
The testing code below is adapted from my example here:
But the above code will trigger the following error:
Is there a proper way to handle
MAGMOM
settings when copying from MP calculations without requiring further user adjustment, say, the one done by the code snippetConvert MAGMOM list to dictionary format
shown above?See materialsproject/atomate2#1049 for the related discussion.
Regards,
Zhao
The text was updated successfully, but these errors were encountered: