Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable name errors in models.py #41

Open
thefirebanks opened this issue Nov 27, 2020 · 1 comment
Open

Variable name errors in models.py #41

thefirebanks opened this issue Nov 27, 2020 · 1 comment

Comments

@thefirebanks
Copy link

In lines 1932 and 1933 for ExtSEIRSNetworkModel

self.nodeGroupData[groupName]['numQ_I_sym'][0]  = numpy.count_nonzero(self.nodeGroupData[groupName]['mask']*self.X==self.Q_I_sym)
self.nodeGroupData[groupName]['numQ_I_asym'][0] = numpy.count_nonzero(self.nodeGroupData[groupName]['mask']*self.X==self.Q_I_asym)

Q_I_sym and Q_I_asym should be Q_sym and Q_asym instead

@thefirebanks thefirebanks changed the title Variable name error Q_I_sym Variable name errors in models.py Nov 27, 2020
@thefirebanks
Copy link
Author

In line 2745

self.nodeGroupData[groupName]['N'][self.tidx]           = numpy.clip((self.nodeGroupData[groupName]['numS'][0] + self.nodeGroupData[groupName]['numE'][0] + self.nodeGroupData[groupName]['numI'][0] + self.nodeGroupData[groupName]['numQ_E'][0] + self.nodeGroupData[groupName]['numQ_I'][0] + self.nodeGroupData[groupName]['numR'][0]), a_min=0, a_max=self.numNodes)

There's no self.nodeGroupData[groupName]['numI']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant