Source code for bw_processing.proxies
[docs]
class Proxy:
def __init__(self, func, label, kwargs):
def __call__(self):
"""Retrieve the data.
Rewinds the file or buffer to 0, see https://github.com/brightway-lca/bw_processing/issues/9.
"""
self.kwargs[self.label].seek(0)
return self.func(**self.kwargs)