VirtualFlyBrain / VFB_neo4j

A python package for writing schema-compliant content to VFB neo4J DBs
Apache License 2.0
0 stars 1 forks source link

Refactor and improve kb_tests.py #267

Open dosumis opened 2 years ago

dosumis commented 2 years ago
  1. Currently this script runs against all datasets (or all with schema = ['image']). We need t be able to run against single datasets, specified in Command Line arg, as well as against all. It should be easy to do this by refactoring to runner a script (with argparse) + a separate file of functions.

  2. Logging -> reports is a bit of an ad hoc mess right now. Should be refactored to nicely structured JSON with standard keys for test name, number of failing inds + list of failing inds.

With these improvements in place, we should look at running in Jenkins - coupled to curation loading (dataset names can be extracted from curation record YAML files)

hkir-dev commented 1 year ago

PR created #270