Add comprehensive articles on Vascular Dementia and Wallerian Degeneration

- Created a detailed article for Vascular Dementia covering key facts, terminology, imaging findings, differential diagnoses, pathology, clinical issues, and diagnostic checklist.
- Developed an extensive article on Wallerian Degeneration including key facts, terminology, imaging features, differential diagnoses, pathology, clinical issues, and diagnostic checklist.
This commit is contained in:
Ross
2025-10-17 22:11:27 +01:00
parent efbfd301f0
commit 2f8df5f820
104 changed files with 6295 additions and 1469 deletions
@@ -163,11 +163,19 @@ async def run(args):
fname = f"{safe}_{h}_{ts}.json"
body_path = str(output / fname)
save_text(output / fname, pretty)
try:
print(f"{now_ts()}\tSAVED\t{body_path}")
except Exception:
pass
excerpt = pretty[:800]
except Exception:
fname = f"{safe}_{h}_{ts}.txt"
body_path = str(output / fname)
save_text(output / fname, txt)
try:
print(f"{now_ts()}\tSAVED\t{body_path}")
except Exception:
pass
excerpt = txt[:800]
else:
try:
@@ -186,12 +194,20 @@ async def run(args):
fname = f"{safe}_{h}_{ts}.{ext}"
body_path = str(subdir / fname)
save_binary(subdir / fname, data)
try:
print(f"{now_ts()}\tSAVED\t{body_path}")
except Exception:
pass
else:
subdir = output / 'assets'
subdir.mkdir(parents=True, exist_ok=True)
fname = f"{safe}_{h}_{ts}.{ext}"
body_path = str(subdir / fname)
save_binary(subdir / fname, data)
try:
print(f"{now_ts()}\tSAVED\t{body_path}")
except Exception:
pass
except Exception:
# final fallback: try binary
try:
@@ -203,12 +219,20 @@ async def run(args):
fname = f"{safe}_{h}_{ts}.{ext}"
body_path = str(subdir / fname)
save_binary(subdir / fname, data)
try:
print(f"{now_ts()}\tSAVED\t{body_path}")
except Exception:
pass
else:
subdir = output / 'assets'
subdir.mkdir(parents=True, exist_ok=True)
fname = f"{safe}_{h}_{ts}.{ext}"
body_path = str(subdir / fname)
save_binary(subdir / fname, data)
try:
print(f"{now_ts()}\tSAVED\t{body_path}")
except Exception:
pass
except Exception:
# skip if still failing
return