CenterForTheBuiltEnvironment / clima

The CBE Clima Tool is a web-based application built to support the need of architects and engineers interested in climate-adapted design. It allows users to analyze the climate data of more than 27,500 locations worldwide using the data contained in EPW files.
https://clima.cbe.berkeley.edu
MIT License
61 stars 21 forks source link

Reported code errors in Google cloud console #176

Open danielh7-cs9 opened 1 year ago

danielh7-cs9 commented 1 year ago

This issue is follow on from #147 to investigate and resolve remaining application errors being reported in the google cloud run console.

Consistent error being reported are;

  1. [TypeError: 'NoneType' object is not subscriptable]
  2. [AttributeError: 'NoneType' object has no attribute 'loc']
danielh7-cs9 commented 1 year ago

Cause of the "KeyError:None" error which seems to be manifested when the "clear value" x on graphs is selected or if there are two selection criterion and one is cleared i.e. below image

image

danielh7-cs9 commented 1 year ago

Root cause of the "KeyError: 'Frequency'" is manifested in the Sun and clouds tabs when filtering on "Frequency"

image

FedericoTartarini commented 1 year ago

Is it because the mapping_dictionary does not have frequency as a key?

giobetti commented 1 year ago

Hi, “frequency” is special in the list of variable as it is not a calculated variable in the Clima data frame but is an option specific to the type of poorly graph used to generate the psychrometric chart. As such it should appear only there.

On 8. May 2023, at 01:52, Federico Tartarini @.***> wrote:



Is it because the mapping_dictionary does not have frequency as a key?

— Reply to this email directly, view it on GitHubhttps://github.com/CenterForTheBuiltEnvironment/clima/issues/176#issuecomment-1537571535, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIWZJABYFEYQVEE3M7A2GSTXFAYUFANCNFSM6AAAAAAXGTGRYA. You are receiving this because you are subscribed to this thread.Message ID: @.***>