Skip to content

Commit

Permalink
1) Fixed bug in how incubators were being counted; 2) Removed current…
Browse files Browse the repository at this point in the history
…ly 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.
  • Loading branch information
Jonathan Bloedow committed Jul 9, 2024
1 parent 23c55cb commit 074cc37
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 478 deletions.
44 changes: 44 additions & 0 deletions jb/src/idmlaser/schema.json
Original file line number Diff line number Diff line change
@@ -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"]
}

Loading

0 comments on commit 074cc37

Please sign in to comment.