-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) Fixed bug in how incubators were being counted; 2) Removed current…
…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
Showing
4 changed files
with
195 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} | ||
|
Oops, something went wrong.