bw2data.backends.utils
#
Module Contents#
Functions#
Check exchange data validity when processing |
|
|
Replace |
|
Transform data from SQLite representation to Python objects. |
- bw2data.backends.utils.check_exchange_amount(exc)[source]#
Check exchange data validity when processing
- bw2data.backends.utils.replace_cfs(old_key, new_key)[source]#
Replace
old_key
withnew_key
in characterization factors.Returns list of modified methods.
- bw2data.backends.utils.retupleize_geo_strings(value)[source]#
Transform data from SQLite representation to Python objects.
We are using a SQLite3 cursor, which means that the Peewee data conversion code is not called. So
('foo', 'bar')
is stored as a string, not a tuple. This code tries to do this conversion correctly.TODO: Adapt what Peewee does in this case?