We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d41a1cb commit a9593c4Copy full SHA for a9593c4
src/lovd/config.py
@@ -11,6 +11,7 @@
11
12
import yaml
13
14
+
15
# ─── helper functions ───────────────────────────────────────────────────────────── ✦ ─
16
#
17
def load_acquisition_config() -> yaml.YAMLObject:
@@ -30,6 +31,16 @@ def load_acquisition_config() -> yaml.YAMLObject:
30
31
if targets_path.exists():
32
with open(targets_path, "r") as f:
33
return yaml.safe_load(f)
34
+ else:
35
+ fp = Path("acquisition.yaml")
36
+ fp.touch()
37
+ with open(fp, "w") as f:
38
+ data = {
39
+ "target_gene_symbols": ["COL5A1", "MTHFR"],
40
+ "email": "user@example.com",
41
+ "user_agent": "My-Organization/1.0 (Purpose)"
42
+ }
43
+ yaml.safe_dump(data, f)
44
45
raise FileNotFoundError("`acquisition.yaml` not found in any parent directory.")
46
0 commit comments