Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

highspeed-bids-participants.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # ======================================================================
  2. # SCRIPT INFORMATION:
  3. # ======================================================================
  4. # SCRIPT: UPDATE PARTICIPANTS .JSON FILE
  5. # PROJECT: HIGHSPEED
  6. # WRITTEN BY LENNART WITTKUHN, 2018 - 2019
  7. # CONTACT: WITTKUHN AT MPIB HYPHEN BERLIN DOT MPG DOT DE
  8. # MAX PLANCK RESEARCH GROUP NEUROCODE
  9. # MAX PLANCK INSTITUTE FOR HUMAN DEVELOPMENT
  10. # MAX PLANCK UCL CENTRE FOR COMPUTATIONAL PSYCHIATRY AND AGEING RESEARCH
  11. # LENTZEALLEE 94, 14195 BERLIN, GERMANY
  12. # ======================================================================
  13. # IMPORT RELEVANT PACKAGES
  14. # ======================================================================
  15. import json
  16. import os
  17. # ======================================================================
  18. # DEFINE PATHS
  19. # ======================================================================
  20. # path to the root directory:
  21. path_root = os.environ['HOME']
  22. # path to the data input directory (in bids format):
  23. path_bids = os.path.join(path_root, 'highspeed', 'bids')
  24. path_desc = os.path.join(path_bids, 'participants.json')
  25. # ======================================================================
  26. # UPDATE DATA-SET DESCRIPTION FILE
  27. # ======================================================================
  28. # update fields of the json file:
  29. json_desc = dict()
  30. json_desc["participant_id"] = "Participant identifier"
  31. json_desc["age"] = "Age, in years as in the first session"
  32. json_desc["sex"] = "Sex, self-rated by participant, m for male / f for female / o for other"
  33. json_desc["handedness"] = "Handedness, self-rated by participant; note that participants were required to be right-handed"
  34. json_desc["digit_span"] = "Total score in Digit-Span Test (Petermann & Wechsler, 2012), assessing working memory capacity"
  35. json_desc["randomization"] = "Pseudo-randomized group assignment for selection of sequences in sequence trials"
  36. json_desc["session_interval"] = "Interval in days between the two experimental sessions"
  37. # save updated data-set_description.json file:
  38. with open(path_desc, 'w') as outfile:
  39. json.dump(json_desc, outfile, indent=4)
  40. outfile.close()