Replies: 1 comment 1 reply
-
@imedkh93 Can you confirm you have generated demand results for this specific buildings and the issue is only in visualization? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello;
I have a question related with the demand outputs in CEA.
after entering the inputs and running the scripts, i tried to get the outputs from the dashboard , but it didn't succeed, i had this message in the place of the different charts and graphs.
Thanks in advance, i will be so grateful for your answers.
Traceback (most recent call last):
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
return self._engine.get_loc(casted_key)
File "pandas_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas_libs\hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'B1000'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask_restplus\api.py", line 584, in error_router
return original_handler(e)
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask_restplus\api.py", line 584, in error_router
return original_handler(e)
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask_cors\extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\flask\app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\cea\interfaces\dashboard\plots\routes.py", line 54, in route_div
plot_div = plot.plot_div()
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\cea\plots\base.py", line 169, in plot_div
return self.cache.lookup_plot_div(self, self._plot_div_producer)
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\cea\plots\cache.py", line 52, in lookup_plot_div
plot_div = producer()
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\cea\plots\base.py", line 182, in _plot_div_producer
fig = plotly.graph_objs.Figure(data=self._plot_data_producer(), layout=self.layout)
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\cea\plots\base.py", line 206, in _plot_data_producer
return self.cache.lookup_plot_data(self, self.calc_graph)
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\cea\plots\cache.py", line 88, in lookup_plot_data
plot_data = producer()
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\cea\plots\demand\energy_balance.py", line 70, in calc_graph
data_frame_month = self.data_frame_month
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\cea\plots\demand\energy_balance.py", line 64, in data_frame_month
gfa_m2 = self.yearly_loads.set_index('Name').loc[self.buildings[0]]['GFA_m2']
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\pandas\core\indexing.py", line 931, in getitem
return self._getitem_axis(maybe_callable, axis=axis)
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\pandas\core\indexing.py", line 1164, in _getitem_axis
return self._get_label(key, axis=axis)
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\pandas\core\indexing.py", line 1113, in _get_label
return self.obj.xs(label, axis=axis)
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\pandas\core\generic.py", line 3776, in xs
loc = index.get_loc(key)
File "C:\Users\USER\Documents\CityEnergyAnalyst\Dependencies\Python\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
raise KeyError(key) from err
KeyError: 'B1000'
Beta Was this translation helpful? Give feedback.
All reactions