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 ad5ce34
Showing 1 changed file with 44 additions and 0 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"]
}

0 comments on commit ad5ce34

Please sign in to comment.