adios_db.db_init package

Submodules

adios_db.db_init.database module

adios_db.db_init.labels module

This is where we handle the initialization of the oil labels.

Basically, we have a number of oil labels which will make it possible for users to find oils by the general ‘type’ of oil they are looking for.

So we would like each oil to be linked to one or more of these labels. For most of the oils we should be able to do this using generalized methods. But there will very likely be some records we just have to link in a hard-coded way.

The selection criteria for assigning refined products to different labels depends upon the API (density) and the viscosity at a given temperature, usually at 38 C(100F). The criteria follows closely, but not identically, to the ASTM standards

adios_db.db_init.labels.load_labels(db)
adios_db.db_init.labels.print_all_labels(db)