adios_db.scripts package

Submodules

adios_db.scripts.add_labels module

Add the suggested labels to all records, from the add_labels code.

adios_db.scripts.add_labels.add_the_labels()

adios_db.scripts.add_to_reference module

This simply runs all the JSON records through the Oil object

A way to “normalize” it all.

Ideally, it doesn’t change a thing, but if the Oil object changes, then it might have to update something.

adios_db.scripts.add_to_reference.run_through()

adios_db.scripts.assign_ids module

Assign Oil IDs to records

adios_db.scripts.assign_ids.main()

adios_db.scripts.db_backup module

adios_db.scripts.db_import module

adios_db.scripts.db_initialize module

adios_db.scripts.db_restore module

adios_db.scripts.eccc_compare_oils module

adios_db.scripts.oil_query module

adios_db.scripts.process_json module

This simply runs all the JSON records through the Oil object

A way to “normalize” it all.

Ideally, it doesn’t change a thing, but if the Oil object changes, then it might have to update something.

adios_db.scripts.process_json.run_through()

adios_db.scripts.read_noaa_csv module

adios_db.scripts.update_test_data module

Script to update the test data from the “canonical” source data

adios_db.scripts.update_test_data.main()

adios_db.scripts.validate module

generates a validation report from a collection of oil JSON files

adios_db.scripts.validate.main()
adios_db.scripts.validate.oil_id_content(oil)

Generate and return the content for the oil’s identification.

adios_db.scripts.validate.write_by_error(outfile, validation_by_error)
adios_db.scripts.validate.write_by_record(outfile1, validation_by_record)
adios_db.scripts.validate.write_header(of, base_dir)
adios_db.scripts.validate.write_header_rev(outfile)
adios_db.scripts.validate.write_reports(base_dir, save)