Skip to content

Commit

Permalink
remove classical methods from profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
chraibi committed Mar 18, 2024
1 parent f51108c commit 2a2f6af
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions src/tabs/analysis_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,14 @@ def calculate_density_profile(
selected_file: str,
) -> None:
"""Calculate density profiles based on different methods."""
chose_method = st.sidebar.radio(
"Method",
["Gaussian", "Classic"],
help="See [PedPy-documentation](https://pedpy.readthedocs.io/en/latest/user_guide.html#density-profiles).",
)
# chose_method = st.sidebar.radio(
# "Method",
# ["Gaussian", "Classic"],
# help="See [PedPy-documentation](https://pedpy.readthedocs.io/en/latest/user_guide.html#density-profiles).",
# )
with st.expander("Documentation"):
st.write("This profile is using 'Gaussian density profile' from [PedPy](https://pedpy.readthedocs.io/en/latest/user_guide.html#density-profiles).")
chose_method = "Gaussian"
chose_method = str(chose_method)
method = {
"Classic": pedpy.DensityMethod.CLASSIC,
Expand Down Expand Up @@ -488,6 +491,8 @@ def calculate_speed_profile(
selected_file: str,
) -> None:
"""Calculate speed profile."""
with st.expander("Documentation"):
st.write("This profile is using 'Gaussian speed profile' from [PedPy](https://pedpy.readthedocs.io/en/latest/user_guide.html#speed-profiles).")
grid_size = st.sidebar.number_input(
"Grid size",
value=0.4,
Expand All @@ -497,17 +502,19 @@ def calculate_speed_profile(
placeholder="Type the grid size",
format="%.2f",
)
fil = str(
st.sidebar.selectbox(
"How to fil empty cells?",
["Nan", "0"],
)
)
chose_method = st.sidebar.radio(
"Chose method",
["Gaussian", "Classic"],
help="See [PedPy-documentation](https://pedpy.readthedocs.io/en/latest/user_guide.html#density-profiles).",
)
# fil = str(
# st.sidebar.selectbox(
# "How to fil empty cells?",
# ["Nan", "0"],
# )
# )
fil = "Nan"
# chose_method = st.sidebar.radio(
# "Chose method",
# ["Gaussian", "Classic"],
# help="See [PedPy-documentation](https://pedpy.readthedocs.io/en/latest/user_guide.html#density-profiles).",
# )
chose_method = "Gaussian"
chose_method = str(chose_method)
if chose_method == "Gaussian":
fwhm = float(
Expand Down

0 comments on commit 2a2f6af

Please sign in to comment.