Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception filtering AusPASS events #161

Open
vjf opened this issue Nov 25, 2024 · 0 comments
Open

Exception filtering AusPASS events #161

vjf opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something isn't working high High priority issues (must have features)

Comments

@vjf
Copy link
Contributor

vjf commented Nov 25, 2024

I hit "Update Events" for a number of different sources:

  1. GEONET - it works
  2. USGS - it works
  3. AUSPASS ....

image

Then get an exception:

2024-11-25 11:39:21.401 Uncaught app exception
Traceback (most recent call last):
  File "/home/faz156/seed-vault/.venv/lib/python3.10/site-packages/pandas/core/indexes/range.py", line 413, in get_loc
    return self._range.index(new_key)
ValueError: 36 is not in range

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/faz156/seed-vault/.venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
    result = func()
  File "/home/faz156/seed-vault/.venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec
    exec(code, module.__dict__)
  File "/home/faz156/seed-vault/seed_vault/ui/1_🌎_main.py", line 50, in <module>
    combined_based_workflow.render()
  File "/home/faz156/seed-vault/seed_vault/ui/components/workflows_combined.py", line 261, in render
    self.render_stage_1()
  File "/home/faz156/seed-vault/seed_vault/ui/components/workflows_combined.py", line 178, in render_stage_1
    self.event_components.render()
  File "/home/faz156/seed-vault/seed_vault/ui/components/base.py", line 1008, in render
    self.render_marker_select()
  File "/home/faz156/seed-vault/seed_vault/ui/components/base.py", line 901, in render_marker_select
    map_tools_card()
  File "/home/faz156/seed-vault/seed_vault/ui/components/base.py", line 895, in map_tools_card
    handle_marker_select()
  File "/home/faz156/seed-vault/seed_vault/ui/components/base.py", line 869, in handle_marker_select
    if self.df_markers.loc[self.clicked_marker_info['id'] - 1, 'is_selected']:
  File "/home/faz156/seed-vault/.venv/lib/python3.10/site-packages/pandas/core/indexing.py", line 1183, in __getitem__
    return self.obj._get_value(*key, takeable=self._takeable)
  File "/home/faz156/seed-vault/.venv/lib/python3.10/site-packages/pandas/core/frame.py", line 4221, in _get_value
    row = self.index.get_loc(index)
  File "/home/faz156/seed-vault/.venv/lib/python3.10/site-packages/pandas/core/indexes/range.py", line 415, in get_loc
    raise KeyError(key) from err
KeyError: 36
2024-11-25 11:39:22.052 Uncaught app exception
Traceback (most recent call last):
  File "/home/faz156/seed-vault/.venv/lib/python3.10/site-packages/pandas/core/indexes/range.py", line 413, in get_loc
    return self._range.index(new_key)
ValueError: 36 is not in range

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/faz156/seed-vault/.venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
    result = func()
  File "/home/faz156/seed-vault/.venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec
    exec(code, module.__dict__)
  File "/home/faz156/seed-vault/seed_vault/ui/1_🌎_main.py", line 50, in <module>
    combined_based_workflow.render()
  File "/home/faz156/seed-vault/seed_vault/ui/components/workflows_combined.py", line 261, in render
    self.render_stage_1()
  File "/home/faz156/seed-vault/seed_vault/ui/components/workflows_combined.py", line 178, in render_stage_1
    self.event_components.render()
  File "/home/faz156/seed-vault/seed_vault/ui/components/base.py", line 1008, in render
    self.render_marker_select()
  File "/home/faz156/seed-vault/seed_vault/ui/components/base.py", line 901, in render_marker_select
    map_tools_card()
  File "/home/faz156/seed-vault/seed_vault/ui/components/base.py", line 895, in map_tools_card
    handle_marker_select()
  File "/home/faz156/seed-vault/seed_vault/ui/components/base.py", line 869, in handle_marker_select
    if self.df_markers.loc[self.clicked_marker_info['id'] - 1, 'is_selected']:
  File "/home/faz156/seed-vault/.venv/lib/python3.10/site-packages/pandas/core/indexing.py", line 1183, in __getitem__
    return self.obj._get_value(*key, takeable=self._takeable)
  File "/home/faz156/seed-vault/.venv/lib/python3.10/site-packages/pandas/core/frame.py", line 4221, in _get_value
    row = self.index.get_loc(index)
  File "/home/faz156/seed-vault/.venv/lib/python3.10/site-packages/pandas/core/indexes/range.py", line 415, in get_loc
    raise KeyError(key) from err
KeyError: 36

@vjf vjf added bug Something isn't working high High priority issues (must have features) labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high High priority issues (must have features)
Projects
None yet
Development

No branches or pull requests

1 participant