Skip to content

Commit

Permalink
Bug fixes and styles
Browse files Browse the repository at this point in the history
- Fixes an error with plt.grid()
- Removes css styles that doesn't work
- Adds links to the article and ads reference
  • Loading branch information
AthKouloumvakos committed Apr 28, 2023
1 parent aaf720b commit bba8f57
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# Enviroment files for testing
env/

# Distribution / packaging and Python egg metadata, generated from source files by setuptools.
build/
dist/
*.egg-info/
*.egg
.eggs/

.DS_Store

.vscode/
4 changes: 2 additions & 2 deletions HDPmt/HDPt_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@ def run():
and _HDPt_ is a lightweight tool that can be used to perform case studies
and visualize the modeled results. The implementation of
the Heliospheric Disturbance Propagation Model is described by
[Kouloumvakos et al. (2021)]().
[Kouloumvakos et al. (2021)](https://www.aanda.org/articles/aa/pdf/2023/01/aa44363-22.pdf).
**Github**: You can find [here](https://github.com/AthKouloumvakos/HDPmt) the latest version of HDPmt.
**Citation**: Please cite this software as [Kouloumvakos et al. (2021)]()
**Citation**: Please cite this software as [Kouloumvakos et al. (2021)](https://ui.adsabs.harvard.edu/abs/2023A%26A...669A..58K/exportcitation)
""")
col1, col2 = st.columns((5, 1))
col1.markdown("The development of the online tool has received funding from the \
Expand Down
16 changes: 0 additions & 16 deletions HDPmt/config/app_styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,6 @@ def apply(st):
#MainMenu {visibility: hidden;}
footer {visibility: hidden;}
</style> """, unsafe_allow_html=True)
# Do some css styling tricks here (e.g. remove the padding)
# https://medium.com/ssense-tech/streamlit-tips-tricks-and-hacks-for-data-scientists-d928414e0c16
padding = 1
st.markdown(f""" <style>
.css-12oz5g7{{
padding-top: {padding}rem;
margin-top: -3.5rem;
max-width: 50rem;
padding-right: {padding}rem;
padding-left: {padding}rem;
padding-bottom: {padding}rem;
}} </style> """, unsafe_allow_html=True)
st.markdown(f""" <style>
.css-128j0gw{{
margin-top: -3.0rem;
}} </style> """, unsafe_allow_html=True)
# Reduce the space in horizontal component
st.markdown(f""" <style>
hr {{
Expand Down
2 changes: 1 addition & 1 deletion HDPmt/utils_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def overplot_(smodel, extra):
plt.ylim(ylim)
plt.xlabel('x-axis [Rsun]')
plt.ylabel('y-axis [Rsun]')
plt.grid(b=True)
plt.grid(visible=True)
title_text = 'Model Param.: $V_0=%1.0f\\,%s, a_0=%0.2f\\,%s, \\alpha=%1.2f, \\epsilon=%1.2f$' % (smodel.V0.value, smodel.V0.unit, smodel.a0.value, smodel.a0.unit, smodel.alpha, smodel.epsilon)
plt.title(title_text, fontsize=10)

Expand Down

0 comments on commit bba8f57

Please sign in to comment.