Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
TAJD committed Oct 24, 2024
1 parent 3cb95cc commit a15a0a5
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 5,933 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ venv
dev.py
/.pytest_cache
/__pycache__/
.pytest_cache
.pytest_cache/
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

4 changes: 1 addition & 3 deletions demos/Home.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import streamlit as st
from utils import footer, header
from utils import footer

st.set_page_config(
page_title="Home - Yacht VPP",
page_icon="👋",
)

header()

st.write("# Welcome to Yacht VPP 👋")

st.markdown(
Expand Down
4 changes: 1 addition & 3 deletions demos/pages/1_VPP_⛵.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import matplotlib.pyplot as plt
import numpy as np
import streamlit as st
from utils import footer, header
from utils import footer

sys.path.append(os.path.realpath("."))
from src.api import app
Expand Down Expand Up @@ -116,8 +116,6 @@ def plot_single_polar(response: Dict[str, Any]) -> plt.Figure:
jib = {"Name": "J1", "I": 16.20, "J": 5.10, "LPG": 5.40, "HBI": 1.8}
kite = {"Name": "A2", "area": 150.0, "vce": 9.55}

header()

st.markdown(
"""
# Yacht VPP
Expand Down
17 changes: 0 additions & 17 deletions demos/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,6 @@ def get_git_hash():
return None


def header():
header = """
<script>
window.goatcounter = {no_onload: true}
window.addEventListener('hashchange', function(e) {
window.goatcounter.count({
path: location.pathname + location.search + location.hash,
})
})
</script>
<script data-goatcounter="https://yacht-vpp.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
"""
return components.html(header)


def footer():
git_hash = get_git_hash()
footer = f"""
Expand Down
78 changes: 68 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,69 @@
numpy==1.26.3
matplotlib==3.8.2
scipy==1.12.0
altair==5.3.0
attrs==23.2.0
black==24.4.2
blinker==1.8.2
cachetools==5.4.0
certifi==2024.7.4
charset-normalizer==3.3.2
click==8.1.7
contourpy==1.1.1
cycler==0.12.1
exceptiongroup==1.2.2
Flask==3.0.3
fonttools==4.53.1
gitdb==4.0.11
GitPython==3.1.43
idna==3.7
importlib_metadata==8.2.0
importlib_resources==6.4.0
iniconfig==2.0.0
isort==5.13.2
itsdangerous==2.2.0
Jinja2==3.1.4
jsonschema==4.23.0
jsonschema-specifications==2023.12.1
kiwisolver==1.4.5
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.7.5
mdurl==0.1.2
mypy==1.11.0
mypy-extensions==1.0.0
nlopt==2.7.1
streamlit==1.31.0
tqdm==4.66.3
black
flask
isort
mypy
pytest
numpy==1.24.4
packaging==24.1
pandas==2.0.3
pathspec==0.12.1
pillow==10.4.0
pkgutil_resolve_name==1.3.10
platformdirs==4.2.2
plotly==5.23.0
pluggy==1.5.0
protobuf==5.27.2
pyarrow==17.0.0
pydeck==0.9.1
Pygments==2.18.0
pyparsing==3.1.2
pytest==8.3.2
python-dateutil==2.9.0.post0
pytz==2024.1
referencing==0.35.1
requests==2.32.3
rich==13.7.1
rpds-py==0.19.1
scipy==1.10.1
six==1.16.0
smmap==5.0.1
streamlit==1.37.0
tenacity==8.5.0
toml==0.10.2
tomli==2.0.1
toolz==0.12.1
tornado==6.4.1
tqdm==4.66.4
typing_extensions==4.12.2
tzdata==2024.1
urllib3==2.2.2
watchdog==4.0.1
Werkzeug==3.0.3
zipp==3.19.2
Loading

0 comments on commit a15a0a5

Please sign in to comment.