From 7ec0e5c5fbb6e0841a47a725d1811af2b1651ecc Mon Sep 17 00:00:00 2001 From: Jakub Dylag <jjd1c23@soton.ac.uk> Date: Fri, 28 Mar 2025 14:44:57 +0000 Subject: [PATCH] Allow mulitple files per concept set - Typing Validation --- acmc/phen.py | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/acmc/phen.py b/acmc/phen.py index f551113..ff2edc2 100644 --- a/acmc/phen.py +++ b/acmc/phen.py @@ -127,22 +127,25 @@ CONFIG_SCHEMA = { "type": "dict", "schema": { "name": {"type": "string", "required": True}, - "file": { - "type": "dict", - "required": False, - "schema": { - "path": {"type": "string", "required": True}, - "columns": {"type": "dict", "required": True}, - "category": { - "type": "string" - }, # Optional but must be string if present - "actions": { - "type": "dict", - "schema": {"divide_col": {"type": "string"}}, + "files":{ + "type": "list", + "required": True, + "schema":{ + "type": "dict", + "schema": { + "path": {"type": "string", "required": True}, + "columns": {"type": "dict", "required": True}, + "category": { + "type": "string" + }, # Optional but must be string if present + "actions": { + "type": "dict", + "schema": {"divide_col": {"type": "string"}}, + }, }, - }, + # "metadata": {"type": "dict", "required": True}, + } }, - "metadata": {"type": "dict", "required": True}, }, }, }, -- GitLab