Skip to content

Commit

Permalink
enhancements and bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chraibi committed Feb 22, 2024
1 parent 18f5644 commit 2a17902
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion analysis_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def run_tab3(selected_file):
)
# todo save to files
trajectory_data = datafactory.load_file(filename)
walkable_area = setup_walkable_area(trajectory_data)
walkable_area = utilities.setup_walkable_area(trajectory_data)

voronoi_density[basename], intersecting[basename] = (
calculate_or_load_voronoi_density(
Expand Down
8 changes: 2 additions & 6 deletions plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ def plot_trajectories(
name="geometry",
)
)
xmin = np.min(x_exterior) - 0.1
xmax = np.max(x_exterior) + 0.1
ymin = np.min(y_exterior) - 0.1
ymax = np.max(y_exterior) + 0.1
count_direction = ""
for direction in [1, 2, 3, 4]:
count = directions[directions["direction_number"] == direction].shape[0]
Expand Down Expand Up @@ -349,15 +345,15 @@ def download_file(figname, col=None):
with open(figname, "rb") as pdf_file:
if col is None:
st.download_button(
label=f"Download",
label="Download",
data=pdf_file,
file_name=figname,
mime="application/octet-stream",
help=f"Download {figname}",
)
else:
col.download_button(
label=f"Download",
label="Download",
data=pdf_file,
file_name=figname,
mime="application/octet-stream",
Expand Down

0 comments on commit 2a17902

Please sign in to comment.