clima icon indicating copy to clipboard operation
clima copied to clipboard

Reported code errors in Google cloud console

Open danielh7-cs9 opened this issue 2 years ago • 4 comments

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 avatar Apr 21 '23 09:04 danielh7-cs9

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 avatar Apr 21 '23 09:04 danielh7-cs9

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

image

danielh7-cs9 avatar May 07 '23 10:05 danielh7-cs9

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

FedericoTartarini avatar May 07 '23 23:05 FedericoTartarini

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: @.***>

giobetti avatar May 08 '23 04:05 giobetti