It would be nice to have consistency tests for all the datasets, which could include:
ChildProject.validate(ignore_files = True, check_annotations = True) returns no error
dates in the metadata can be parsed
ages seem coherent (> 0 for all children)
make sure that 'ses' lies in 1-5 (or is NAN at worst?)
Can you think of more tests ? Suggestions welcome
They should be implemented in a pytest compliant fashion I think.
It would be nice to have consistency tests for all the datasets, which could include:
- ChildProject.validate(ignore_files = True, check_annotations = True) returns no error
- dates in the metadata can be parsed
- ages seem coherent (> 0 for all children)
- make sure that 'ses' lies in 1-5 (or is NAN at worst?)
Can you think of more tests ? Suggestions welcome
They should be implemented in a pytest compliant fashion I think.
We can turn write tests for the import code? So given the raw files, we can correctly run the imports for eaf files for example (though maybe ChildProject.validate does this already?).
We can turn write tests for the import code? So given the raw files, we can correctly run the imports for `eaf` files for example (though maybe `ChildProject.validate` does this already?).
Hello Sarp,
It's a possibility, though I think the priority is to have tests that make sure that the data are ready to be used;
Here's what it could look like:
https://gin.g-node.org/EL1000/bergelson/src/tests/tests/test_data.py
It would be nice to have consistency tests for all the datasets, which could include:
Can you think of more tests ? Suggestions welcome They should be implemented in a pytest compliant fashion I think.
We can turn write tests for the import code? So given the raw files, we can correctly run the imports for
eaf
files for example (though maybeChildProject.validate
does this already?).Hello Sarp,
It's a possibility, though I think the priority is to have tests that make sure that the data are ready to be used;
Here's what it could look like:
https://gin.g-node.org/EL1000/bergelson/src/tests/tests/test_data.py
In the process of writing consistency tests here:
https://gin.g-node.org/EL1000/tools/src/master/EL1000/tests.py
https://gin.g-node.org/EL1000/EL1000/src/main/tests/test_datasets.py
Current state:
This time, including the annotations: