-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error in cohortDefinitions[[i]]: subscript out of bounds #18
Comments
This error is generated in
@jreps Could you have a look at this? I am not entirely following the logic. The way I understand it is that there are at least two cohort definitions in every study (target and outcome). But for some reason the length of
|
Can you send me the package you are trying to run so I can debug it? |
I forwarded it using SURFfilesender. Just run CodeToRun.R. I left in some debug statements in This uses v1.0.4 of the validation package, which is in Hydra and the problem occurs when there is only a single Analysis present, for multiple analyses it seems to work. Ultimately, we probably want to use the latest SkeletonPredictionValidationStudy automatically instead of the Hydra version, but I also had problems with SkeletonPredictionValidationStudy Issue#12 |
I should have just fixed the issue. Is this the only issue you had? I'm getting a Hydra error as the skeleton is in develop rather than master - if you use the develop version of Hydra instead of the renv version it should build. I'm writing code in the latest skeleton to optionally skip Hydra though. |
This was the only issue I encountered with SkeletonPredictionStudy. But as you mentioned, it would be great to use SkeletonPredictionValidationStudy directly and skip Hydra when creating validation packages. But in SkeletonPredictionValidationStudy I am still seeing Issue#12. Maybe we could work on moving some of the things in develop to master in both packages? I gladly test them using some of my latest studies. |
After restructuring PLP the skeletons are being updated (which is why I have to use renv for testing the old packages). It would be best to start using the issue 242 version of the skeletons as these work with the new PLP and we can test these, fix any issues and then make these the master version. In the issue 242 branch I've currently updated the model development/protocol for the development skeleton but am still working on the code to create the validation package (using Hydra or skipping Hydra) |
When creating a validation package with the following parameters (
skeletonVersion = "v1.0.4"
,saveModelsToJson = T
) the following exception is thrown.Interestingly, this error only occurs if there is only a single analysis. As soon as there are more analyses (e.g. by just duplicating
Analysis_1
) it works as intended.The text was updated successfully, but these errors were encountered: