Summarizing across trackers
I have a microsimulation model in which I have several (~30) trackers, each representing a specific health condition. Each of these trackers takes on a value of -1 if the person does not have the condition, and a value starting at 0 to +Inf to count the number of cycles the person has had the condition (so 0 is used to identify an incident condition). The trackers are modified each cycle using a python formula.
I'm looking for a way to summarize the trackers. Specifically, I want to know a) how many conditions the person currently has, and b) how many incident conditions there are (how many trackers are 0). I thought I could do this with trackerincr(), but that doesn't seem to work within a Python function. I also don't see a way to do this with a Treeage-native tracker modification other than to write a separate python function that reads in all the trackers (which defeats the purpose, I'm trying to do this to increase model efficiency so I don't have to read in all these trackers to a function every cycle).
Just wanted to see if I was missing something.