From 47350717be0fd6a80a895984149217851d87ab66 Mon Sep 17 00:00:00 2001
From: Tamino Huxohl <thuxohl@techfak.uni-bielefeld.de>
Date: Wed, 14 Dec 2022 13:37:36 +0100
Subject: [PATCH] add parsing patient's sex in prepare script

---
 mu_map/data/prepare.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mu_map/data/prepare.py b/mu_map/data/prepare.py
index a5b1b87..702769e 100644
--- a/mu_map/data/prepare.py
+++ b/mu_map/data/prepare.py
@@ -19,6 +19,7 @@ headers = argparse.Namespace()
 headers.id = "id"
 headers.patient_id = "patient_id"
 headers.age = "age"
+headers.sex = "sex"
 headers.weight = "weight"
 headers.size = "size"
 headers.protocol = "protocol"
@@ -479,6 +480,7 @@ if __name__ == "__main__":
                     headers.id: _id,
                     headers.patient_id: projection.PatientID,
                     headers.age: parse_age(projection.PatientAge),
+                    headers.sex: projection.PatientSex,
                     headers.weight: float(projection.PatientWeight),
                     headers.size: float(projection.PatientSize),
                     headers.protocol: protocol,
-- 
GitLab