From ad5ce347e42230f315118d13e21a1664a17778e6 Mon Sep 17 00:00:00 2001 From: Jonathan Bloedow Date: Mon, 8 Jul 2024 19:51:30 -0700 Subject: [PATCH] 1) Fixed bug in how incubators were being counted; 2) Removed currently unused functions in sir_numpy.py; 3) Added detailed doc strings to used functions. 4) Added schema.json and code to key off that so as to avoid hardcoding properties schema. --- jb/src/idmlaser/schema.json | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 jb/src/idmlaser/schema.json diff --git a/jb/src/idmlaser/schema.json b/jb/src/idmlaser/schema.json new file mode 100644 index 0000000..e14bf59 --- /dev/null +++ b/jb/src/idmlaser/schema.json @@ -0,0 +1,44 @@ +{ + "title": "Agents", + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Primary key, auto-incremented" + }, + "node": { + "type": "integer", + "description": "Node identifier" + }, + "age": { + "type": "number", + "description": "Age of the agent" + }, + "infected": { + "type": "boolean", + "description": "Infection status of the agent" + }, + "infection_timer": { + "type": "integer", + "description": "Timer for infection duration" + }, + "incubation_timer": { + "type": "integer", + "description": "Timer for incubation period" + }, + "immunity": { + "type": "boolean", + "description": "Immunity status of the agent" + }, + "immunity_timer": { + "type": "integer", + "description": "Timer for immunity duration" + }, + "expected_lifespan": { + "type": "integer", + "description": "Expected lifespan of the agent" + } + }, + "required": ["id", "node", "age", "infected", "infection_timer", "incubation_timer", "immunity", "immunity_timer", "expected_lifespan"] +} +