ARS-toscana / ConcePTIONAlgorithmPregnancies

Repository of the script of the ConcePTION Algorithm for Pregnancies
GNU Affero General Public License v3.0
5 stars 3 forks source link

Warnings in Step 04 and Issue in Main Reconciliation #21

Closed DanOV closed 2 years ago

DanOV commented 2 years ago

Several warnings during Step04:

source(paste0(thisdir,"/p_steps_pregnancy/step_03_01_T2.2_internal_consistency_for_prompts.R")) 
Describing D3_Stream_PROMPTS_check 
[1] "Internal consistency for PROMPTS checked"
Warning message:
In max(num_spell) : no non-missing arguments to max; returning -Inf
source(paste0(thisdir,"/p_steps_pregnancy/step_03_02_T2.2_internal_consistency_for_conceptsets.R")) 
Describing D3_Stream_CONCEPTSETS_check 
[1] "Internal consistency for CONCEPTSETS checked"
Warning message:
In max(num_spell) : no non-missing arguments to max; returning -Inf
source(paste0(thisdir,"/p_steps_pregnancy/step_04_03_T2.3_first_part_reconciliation.R"))
[1] "Start recoinciliation in group - GREEN"
[1] "Start recoinciliation in group - YELLOW"
[1] "Start recoinciliation in group - BLUE"
[1] "Start recoinciliation in group - RED"
[1] "Save D3_groups_of_pregnancies"
Describing D3_groups_of_pregnancies 
Warning messages:
1: In max(n_rep) : no non-missing arguments to max; returning -Inf
2: In max(n_rep) : no non-missing arguments to max; returning -Inf
3: In min.default(numeric(0), na.rm = TRUE) :
  no non-missing arguments to min; returning Inf
4: In max.default(numeric(0), na.rm = TRUE) :
  no non-missing arguments to max; returning -Inf
5: In max(n_rep) : no non-missing arguments to max; returning -Inf
6: In max(n_rep) : no non-missing arguments to max; returning -Inf
7: In min.default(numeric(0), na.rm = TRUE) :
  no non-missing arguments to min; returning Inf
8: In max.default(numeric(0), na.rm = TRUE) :
  no non-missing arguments to max; returning -Inf
9: In min.default(numeric(0), na.rm = TRUE) :
  no non-missing arguments to min; returning Inf
10: In max.default(numeric(0), na.rm = TRUE) :
  no non-missing arguments to max; returning -Inf

After step04, the process cannot continue due to the following error in 05 MAIN RECONCILIATION

source(paste0(thisdir,"/p_steps_pregnancy/step_05_01_T2.2_reconciliation.R")) Error in eval(bysub, x, parent.frame()) : object 'pers_group_id' not found In addition: Warning message: In max(n) : no non-missing arguments to max; returning -Inf

GiorgioLimoncella commented 2 years ago

Probably the error comes from a previous step, can we arrange a call to check the results of the intermediate steps together? please contact me at giorgio.limoncella@ars.toscana.it

DanOV commented 2 years ago

Hi, I think that the issue was solved by fixing the INSTANCE table by following you indications. Thanks a lot for the help.