Closed bbbales2 closed 3 years ago
Alright. I can't really see what is the problem. Do you know what might be wrong?
I suspect it is a dimensionality issue from the JSON data format. We are currently discussing this in another thread.
Lemme check real quick (I just ignored the error for what I was doing)
Uh oh it just compiled for me in cmdstanr. cmdstanpy should be the same thing so let me check that too.
Oh no no it gave an error good
Here's the model or I can make a pull. (Edit: woops, I did have the model and then deleted it to just show the diff)
The issue was that data
-ness of arguments needs to be explicit in the new compiler I guess.
So
real[] evolved_CO2(int N_t, real t0, real[] ts,
real gamma, real totalC_t0,
real k1, real k2,
real alpha21, real alpha12,
real[] x_r, int[] x_i)
changes to:
real[] evolved_CO2(int N_t, real t0, real[] ts,
real gamma, real totalC_t0,
real k1, real k2,
real alpha21, real alpha12,
data real[] x_r, data int[] x_i)
Also if you're messing with this go ahead and do a search replace for <-
with =
for this model so the warnings go away.
If you have time to fix it with a PR that would be great!
Sorry! Im just totally bogged down in teaching right now.
Here yah go: https://github.com/MansMeg/posteriordb/pull/211
Thanks!
I got this error trying to build the soil_carbon-soil_incubation model with the latest cmdstanpy: