ktindiana / sphinxval

SPHINX validation code for solar energetic particle models
MIT License
3 stars 3 forks source link

Added check_json.py #37

Closed rickyegeland closed 11 months ago

rickyegeland commented 11 months ago

check_json.py is a command-line tool for verifying that forecast/observation jsons are valid and useable by SPHINX. It currently checkst that

  1. json can be loaded
  2. energy channel blocks can be found
  3. an object can be instantiated
  4. forecast json trigger timestamps are valid

A few small changes to outside SPHINX code aided in making the checker able to validate jsons using exactly the same functions/methods that SPHINX uses to work:

Fixes issue #21

rickyegeland commented 11 months ago

Fixed typo @ktindiana found.