We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13e99e1 commit 1cc8aa6Copy full SHA for 1cc8aa6
dfttk/vasp_input.py
@@ -17,11 +17,16 @@
17
yaml_dir = os.path.dirname(__file__)
18
potcar_dict_path = os.path.join(yaml_dir, "settings/potcar_dict.yaml")
19
magmom_dict_path = os.path.join(yaml_dir, "settings/magmom_dict.yaml")
20
-with open(potcar_dict_path, "r") as file:
21
- POTCAR_DICT = yaml.safe_load(file)
22
23
-with open(magmom_dict_path, "r") as file:
24
- MAGMOM_DICT = yaml.safe_load(file)
+if not os.environ.get("READTHEDOCS"):
+ with open(potcar_dict_path, "r") as file:
+ POTCAR_DICT = yaml.safe_load(file)
+
25
+ with open(magmom_dict_path, "r") as file:
26
+ MAGMOM_DICT = yaml.safe_load(file)
27
+else:
28
+ POTCAR_DICT = {}
29
+ MAGMOM_DICT = {}
30
31
32
def base_set(
0 commit comments