Instead of the specific timex-implementation, this could be generalised to a kind of "interface" in the dynamic_characterization package. Default input to the interface would be just the dynamic inventory and a characterization function dict, optionally also temporal grouping and demand_timing_dict (should per default just look for the -1 in consumer)
We could also re-think the general structure of the data. Rather than basing everything on data frames, it could make more sense to use arrays to improve performance
Instead of the specific timex-implementation, this could be generalised to a kind of "interface" in the dynamic_characterization package. Default input to the interface would be just the dynamic inventory and a characterization function dict, optionally also temporal grouping and demand_timing_dict (should per default just look for the -1 in consumer)