Closed eerolinna closed 3 years ago
This is now over 1 month old, any comments? @MansMeg @paul-buerkner
Im currently fixing everything for prototype draft. So I will answer asap.
I think this is probably a good idea. Although this is the current structure so I think we now add this as an improvement but not in the prototype.
This won't change the public API so we can do this later too, however I think it would be good to do this sooner than later. This is a quite small change so I could go ahead and prepare a PR for it soon.
However if you want more time to think if this is a good change we can also wait.
If we want to go ahead I think these are the required changes
.zip
to data_file
in every data info file.zip
I think there might be some other small changes required but nothing too big.
So I just added you to the repository. Start a new branch and change it there. Then I can fix the R stuff in that branch and when the branch works, we can merge it. You could see if you could get it to work with the R code.
It's just not the highest priority right now for me, but in the long run, we want it to be done.
Great! I think even if I start a new branch in my fork you'll still be able to make fixes directly to it. I will start with that as then there is 0% chance of accidently pushing to master in this repo. If we run into problems we can always merge that PR to a separate branch in this repo and continue from there.
I propose a further change. In addition to having filenames ending with .zip
like
"data_file": "content/datasets/data/8_schools.json.zip"
it is also possible to have
"data_file": "content/datasets/data/8_schools.json"
In this case the dataset file is not zipped in the posterior database but is just a normal JSON file.
I also suggest that most small files would be stored unzipped and only large files should be zipped.
Any comments on this?
I think it is easier to have all zipped for now?
I close this for now. If this becomes a problem down the line we solve that then.
In the model info files we have
which when concatenated with the path to posterior db gives the full filepath to the stan code file.
The dataset info files have
which does not give the full filepath when concatenated with the path to the posterior db. This is because a ".zip" needs to be added to the end.
I propose we change the dataset info files to