-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add Theory of Change Framework preprint #1523
Conversation
@matt-graham @tbhallett I have added this publication to the Zotero library. But I haven't been succesful with step 3 of the process. When I run in the tlo environment |
Hi @sakshimohan. Are you running the
to directly run the script, but you will also need to run |
Many thanks, @matt-graham . That problem is resolved. I get the following different error now - |
Oh that's an interesting one! That's suggesting there is a syntax error in TLOmodel/docs/tlo_publications.py Lines 103 to 108 in 49acef5
which confusingly does not create any syntax errors when running for me 😕 Can I check what Python version you have and what the version |
I've got - |
Ah this could be an issue with the use of As a more minimal example import numpy as np
array = np.arange(12).reshape(3, 4)
array[*(i for i in range(1, 3))] runs fine for me on Python 3.11+ but gives a syntax error in Python 3.10. |
Got I will update to Python 11 in this case. Are you OK to merge this PR into master anyway? |
Probably worth updating to Python 3.11 as that is what we are currently recommending and testing against. For a quickfix for now to get this running in your Python 3.10 you can just change toplevel[
*(
tag("tr")[toplevel[tag("td")[tag("em")[key]], tag("td")[value]]]
for key, value in details.items()
)
] to toplevel[
tuple(
tag("tr")[toplevel[tag("td")[tag("em")[key]], tag("td")[value]]]
for key, value in details.items()
)
] that is swap To update your environment to Python 3.11 the easiest way is to delete your current Conda environment
and the follow the installation instructions to create a new Python 3.11 environment with the dependencies. |
Sorry missed this while writing previous message! Yes that's fine, once the checks / documentation workflows finish running I'll merge this assuming they pass! |
Added preprint to publication list.