-
Notifications
You must be signed in to change notification settings - Fork 42
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
Issue with reading Mortality shapefile when using SR Predict #107
Comments
Hi Julia, I am trying to use inmap srpredict and run into the same issue. However, since I only need air pollution results but not mortality results, I am curious if I can work around this issue. In your post, you said "If I remove the mortality-related output variables then inmap sr predict works", could you please let me know how you removed the mortality-related output variables? Did you just remove them in the [OutputVariables] part? If yes, do I need to modify the [VarGrid.MortalityRateColumns] part? Thank you! Best, |
I think the issue here might be that the mortality rate variable in the SR matrix might just have a different name. If I remember correctly it might be |
Thank you, Chris! I will try this today and see if it works. |
I changed it to |
Regarding @vxhuang's I get a similar error (with a different index that is out of range) when using any one (or combination) of the baseline variables, and it doesn't occur when using any one (or combination) of the other variables included in the I think that I can get away with only using the output PM variables without using any baseline variables. But that may be a sizeable limitation to other projects. @ctessum, would it help if I submit a different issue for the |
This issue is the same as the previously submitted one.
What are you trying to do?
I am trying to run inmap sr predict with mortality-related output variables.
What did you do?
I used inmap run and inmap sr predict. First, I tried each using our own input data files and config file. Second, I tried each using the github repo data at the path cmd/inmap/. I used exampleConfig.toml, the provided test data at the default paths, and the only thing I changed in the config file was the SR.OutputFile path to be the path to the IRSM matrix downloaded from Zenodo linked here.
Here are the results for the four attempts to run with mortality output:
If I remove the mortality-related output variables then inmap sr predict works, but we don't get these mortality outputs that we want. Other things I tried are: playing with the capitalization of AllCause to allcause in the config file and moving the Mortality Rate and Census related fields in the config file to the top.
What did you expect to happen?
We expected inmap sr predict to successfully run and compute all the output variables, but when we use AllCause in the formulas for output variables, the previously mentioned error message is thrown. It is the same error message every time.
What actually happened?
With the exact same setup (except that inmap sr predict uses the IRSM file and inmap run does not), inmap run works correctly while inmap sr predict throws the error "inmap: undefined variable name 'AllCause'" and terminates.
What version of Go and InMAP are you using?
Using inMAP version: inmap-v1.9.2-linux-amd64
We haven't used Go at all. To run inmap we use the commands: ./inmap run steady --config="configfile.toml" and ./inmap sr predict --config="configfile.toml"
Does this issue reproduce with the current master?
Yes
The text was updated successfully, but these errors were encountered: