update dependency info

This commit is contained in:
Kristofers Solo 2023-12-25 20:44:25 +02:00
parent 6710551bbf
commit db5a110981
4 changed files with 26 additions and 13 deletions

28
main.py
View File

@ -1,5 +1,16 @@
#!/usr/bin/env python
"""
Author: Kristiāns Francis Cagulis, kc22015
Date: 25.12.2023.
Github: https://github.com/kristoferssolo/LU-Data-Visualisation
Dependencies: matplotlib, numpy, pandas, loguru, openpyxl
This script generates two plots from Excel files and saves them to a PDF file.
Excel files can be stored in the same directory as this script or in a subdirectory called "data".
"""
import platform
import subprocess
from pathlib import Path
@ -11,14 +22,6 @@ from loguru import logger
from matplotlib.backends.backend_pdf import PdfPages
logger.add(
Path("logs", "data.log"),
format="{time} | {level} | {message}",
level="INFO",
rotation="1 MB",
compression="zip",
)
BASE_PATH = Path(__file__).parent
WIND_GUSTS_FILENAME = "vejaAtrumsBrazmas.xlsx"
WIND_SPEED_FILENAME = "vejaAtrumsFaktiskais.xlsx"
@ -29,6 +32,15 @@ BLUE = "#1f77b4"
ORANGE = "#ff7f0e"
BLACK = "#000000"
# Setup logger
logger.add(
BASE_PATH.joinpath("logs", "data.log"),
format="{time} | {level} | {message}",
level="INFO",
rotation="1 MB",
compression="zip",
)
def read_data(filename: str) -> pd.DataFrame:
"""

BIN
plots.pdf

Binary file not shown.

View File

@ -9,6 +9,7 @@ license = { text = "MIT" }
dependencies = [
"openpyxl==3.1.2",
"loguru==0.7.2",
"numpy==1.26.2",
"matplotlib==3.8.2",
"pandas==2.1.4",
]

View File

@ -1,5 +1,5 @@
attrs>=23.1.0
loguru>=0.7.2
matplotlib>=3.8.2
numpy>=1.26.2
openpyxl>=3.1.2
pandas>=2.1.4