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

fix: stratified matrix expressions #2881

Merged
merged 1 commit into from
Feb 29, 2024
Merged

fix: stratified matrix expressions #2881

merged 1 commit into from
Feb 29, 2024

Conversation

shawnyama
Copy link
Contributor

@shawnyama shawnyama commented Feb 29, 2024

Description

I set the evaluate expressions to false by default so that we don't run into blank cells for now. You can see in the video that Pyodide is throwing errors on the Carcoine model but not the SIR.

It seems to not like the variable names:

pyodide.asm.js:9 Uncaught PythonError: Traceback (most recent call last):
  File "/lib/python311.zip/_pyodide/_base.py", line 460, in eval_code
    CodeRunner(
  File "/lib/python311.zip/_pyodide/_base.py", line 248, in __init__
    self.ast = next(self._gen)
               ^^^^^^^^^^^^^^^
  File "/lib/python311.zip/_pyodide/_base.py", line 144, in _parse_and_compile_gen
    mod = compile(source, filename, mode, flags | ast.PyCF_ONLY_AST)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<exec>", line 2
    beta_0,beta_1,beta_2,beta_3,epsilon_0,epsilon_1,gamma_0,gamma_1,alpha_0,alpha_1,p_old_young,p_young_old,lambda,mu,City = sympy.symbols('beta_0 beta_1 beta_2 beta_3 epsilon_0 epsilon_1 gamma_0 gamma_1 alpha_0 alpha_1 p_old_young p_young_old lambda mu City')
Screen.Recording.2024-02-29.at.2.17.58.PM.mov

@shawnyama shawnyama changed the title fix: stratified matrix fix: stratified matrix expressions Feb 29, 2024
@shawnyama shawnyama marked this pull request as ready for review February 29, 2024 19:23
@YohannParis YohannParis merged commit a4df3ea into main Feb 29, 2024
5 checks passed
@YohannParis YohannParis deleted the matrix-fix branch February 29, 2024 19:40
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

Successfully merging this pull request may close these issues.

2 participants