derek-thomas HF staff commited on
Commit
7238c11
1 Parent(s): 8ad27c3

Adding faq in a more readable way

Browse files
Files changed (1) hide show
  1. disc_golf_simulator.py +22 -20
disc_golf_simulator.py CHANGED
@@ -1,10 +1,10 @@
1
- import numpy as np
2
- import streamlit as st
3
  from logging import getLogger
4
  from pathlib import Path
5
 
 
 
6
  from shotshaper.projectile import DiscGolfDisc
7
- from utilities.visualize import get_plot, get_subplots, visualize_disc, stl_meshes
8
 
9
  # Define the default values
10
  default_U = 24.2
@@ -14,6 +14,24 @@ default_pitch = 15.5
14
  default_nose = 0.0
15
  default_roll = 14.7
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  def main():
19
  tab1, tab2 = st.tabs(['Simulator', 'FAQ'])
@@ -94,23 +112,7 @@ def main():
94
  st.plotly_chart(fig, True)
95
 
96
  with tab2:
97
- st.markdown("""
98
- # Motivation
99
- I saw some great work by [kegiljarhus](https://github.com/kegiljarhus) [repo](https://github.com/kegiljarhus/shotshaper)
100
- and wanted to make this available as an app so people could learn more about disc golf. I really want to commend
101
- the amazing idea of writing a [scientific article](https://link.springer.com/article/10.1007/s12283-022-00390-5)
102
- AND releasing code, and actually executing it well. This is what gets people excited about STEM.
103
-
104
- I originally saw this
105
- [reddit post](https://www.reddit.com/r/discgolf/comments/yyhbcj/wrote_a_scientific_article_on_disc_golf_flight/)
106
- which really piqued my interest.
107
-
108
- # Questions
109
- - I imagine some of you will want to add your disc here, if you can convert your disc into an `.stl` then I will
110
- add it to the database. If this gets common enough I will add an option to upload your own.
111
- - I imagine there will be a barrier to entry to do this.
112
- - If you have any ideas, just let me know in a discussion or in a pull request
113
- """)
114
 
115
 
116
  if __name__ == "__main__":
 
 
 
1
  from logging import getLogger
2
  from pathlib import Path
3
 
4
+ import numpy as np
5
+ import streamlit as st
6
  from shotshaper.projectile import DiscGolfDisc
7
+ from utilities.visualize import get_plot, get_subplots, stl_meshes, visualize_disc
8
 
9
  # Define the default values
10
  default_U = 24.2
 
14
  default_nose = 0.0
15
  default_roll = 14.7
16
 
17
+ faq = """
18
+ # Motivation
19
+ I saw some great work by [kegiljarhus](https://github.com/kegiljarhus) [repo](https://github.com/kegiljarhus/shotshaper)
20
+ and wanted to make this available as an app so people could learn more about disc golf. I really want to commend
21
+ the amazing idea of writing a [scientific article](https://link.springer.com/article/10.1007/s12283-022-00390-5)
22
+ AND releasing code, and actually executing it well. This is what gets people excited about STEM.
23
+
24
+ I originally saw this
25
+ [reddit post](https://www.reddit.com/r/discgolf/comments/yyhbcj/wrote_a_scientific_article_on_disc_golf_flight/)
26
+ which really piqued my interest.
27
+
28
+ # Questions
29
+ - I imagine some of you will want to add your disc here, if you can convert your disc into an `.stl` then I will
30
+ add it to the database. If this gets common enough I will add an option to upload your own.
31
+ - I imagine there will be a barrier to entry to do this.
32
+ - If you have any ideas, just let me know in a discussion or in a pull request
33
+ """
34
+
35
 
36
  def main():
37
  tab1, tab2 = st.tabs(['Simulator', 'FAQ'])
 
112
  st.plotly_chart(fig, True)
113
 
114
  with tab2:
115
+ st.markdown(faq)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
 
117
 
118
  if __name__ == "__main__":