ReproNim / testkraken

Generalized regression testing of scientific workflows
3 stars 9 forks source link

User-reported Bug: analysis input type is not consistent with value type #110

Open XinhuiLi opened 3 years ago

XinhuiLi commented 3 years ago

Bug Description In testkraken/workflows4regtests/cpac/anat_preproc/testkraken_spec.yml, when a directory is offered as analysis input, the type "Directory" doesn't work and it has be changed to "File". For example,

analysis:
  script: anat_preproc.py
  command: python
  inputs:
  - {type: Directory, argstr: -i, value: .}

Here, the value is the current directory ".", however if we specify the type as "Directory", it doesn't work. It works if we change "Directory" to "File":

analysis:
  script: anat_preproc.py
  command: python
  inputs:
  - {type: File, argstr: -i, value: .}

Expected Behavior The type should be consistent with the value, so we expect that the first code block should work well.