Closed willu47 closed 5 years ago
results.read_scenario_data reads in the wrong data, and the data changes as the list of timesteps passed changes. Somewhere, there is a misalignment between the Spec coordinates and the data.
For example, actual data:
Using the api
>>> df = results.read_scenario_data( 'socio-economic', 'arc_baseline', 'floor_area', [2030]) >>> df[df['lad_uk_2016'] == 'E06000056']
returns the incorrected data:
Direct read from the store gives expected data:
>>> store = results._store >>> df = store.read_scenario_variant_data('socio-economic', 'arc_baseline', 'floor_area', 2030).as_df().reset_index() >>> df[df['lad_uk_2016'] == 'E06000056']
Associated changes also needed in the results API, which is now more thoroughly tested.
results.read_scenario_data reads in the wrong data, and the data changes as the list of timesteps passed changes. Somewhere, there is a misalignment between the Spec coordinates and the data.
For example, actual data:
Using the api
returns the incorrected data:
Direct read from the store gives expected data: