You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried running the app but get errors below when it tries to return information
TypeError: Passing a set as an indexer is not supported. Use a list instead.
Traceback:
File "/root/anaconda3/envs/ftth_planner/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
exec(code, module.dict)
File "/root/ftth_planner/ftth_app.py", line 140, in
detailed_cost, fig = get_fiber_planning(trench_network, building_gdf, g_box )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ftth_planner/ftth_app.py", line 63, in get_fiber_planning
fiber_network, ref_fig = get_fiber_network(ref_trench_network, cost_parameters, ref_building_gdf, ref_g_box)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ftth_planner/fibers.py", line 221, in get_fiber_network
fiber_network, building_fiber_graph, trenches_gdf = _get_drop_cable_network(building_trenches_with_cabinet_df,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ftth_planner/fibers.py", line 420, in _get_drop_cable_network
building_drop_cables, trenches_gdf = _find_shortest_path_to_buildings(cabinet_look_up, g_box,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ftth_planner/fibers.py", line 526, in _find_shortest_path_to_buildings
trenches_gdf.loc[pd.IndexSlice[set(pairs)]]["dig_weight"] = 0.0
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/envs/ftth_planner/lib/python3.12/site-packages/pandas/core/indexing.py", line 1178, in getitem
check_dict_or_set_indexers(key)
File "/root/anaconda3/envs/ftth_planner/lib/python3.12/site-packages/pandas/core/indexing.py", line 2774, in check_dict_or_set_indexers
raise TypeError(
The text was updated successfully, but these errors were encountered:
I've tried running the app but get errors below when it tries to return information
TypeError: Passing a set as an indexer is not supported. Use a list instead.
Traceback:
File "/root/anaconda3/envs/ftth_planner/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
exec(code, module.dict)
File "/root/ftth_planner/ftth_app.py", line 140, in
detailed_cost, fig = get_fiber_planning(trench_network, building_gdf, g_box )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ftth_planner/ftth_app.py", line 63, in get_fiber_planning
fiber_network, ref_fig = get_fiber_network(ref_trench_network, cost_parameters, ref_building_gdf, ref_g_box)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ftth_planner/fibers.py", line 221, in get_fiber_network
fiber_network, building_fiber_graph, trenches_gdf = _get_drop_cable_network(building_trenches_with_cabinet_df,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ftth_planner/fibers.py", line 420, in _get_drop_cable_network
building_drop_cables, trenches_gdf = _find_shortest_path_to_buildings(cabinet_look_up, g_box,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ftth_planner/fibers.py", line 526, in _find_shortest_path_to_buildings
trenches_gdf.loc[pd.IndexSlice[set(pairs)]]["dig_weight"] = 0.0
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/envs/ftth_planner/lib/python3.12/site-packages/pandas/core/indexing.py", line 1178, in getitem
check_dict_or_set_indexers(key)
File "/root/anaconda3/envs/ftth_planner/lib/python3.12/site-packages/pandas/core/indexing.py", line 2774, in check_dict_or_set_indexers
raise TypeError(
The text was updated successfully, but these errors were encountered: