vunits.db.read_unit_db

vunits.db.read_unit_db(filename=None, json_lib='json')

Updates unit database

Parameters

filename (str, optional) – Name of database. If filename not specified, saves to vunits/db/unit_db.json.

Returns

unit_db – Outputted unit database. Keys should be strings of the units and the values are Quantity objects. If not specified, uses the default library.

Return type

dict