Skip to content

Commit

Permalink
fix comments and docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
mcw92 committed Nov 11, 2024
1 parent ffd8fec commit f66bee3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions plots/02_measurement_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import argparse
from pathlib import Path
from typing import Optional, Union
from typing import Union

import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -123,7 +123,7 @@ def create_histogram(
df: pd.DataFrame,
column: str,
bins: int = 20,
x_ticks: Optional[list[str]] = None,
x_ticks: Union[list[str], None] = None,
) -> Axes:
"""
Generate a histogram plot based on a given axis and data.
Expand Down Expand Up @@ -162,7 +162,7 @@ def create_stacked_bar_chart(
ax: Axes,
df: pd.DataFrame,
time_column: str,
x_ticks: Optional[list[str]] = None,
x_ticks: Union[list[str], None] = None,
) -> Axes:
"""
Generate a stacked bar chart based on given axis and data.
Expand Down Expand Up @@ -205,8 +205,8 @@ def create_and_save_joint_plot(
y_column: str,
width: int,
height: int,
x_lim: Optional[tuple[float, float]] = None,
y_lim: Optional[tuple[float, float]] = None,
x_lim: Union[tuple[float, float], None] = None,
y_lim: Union[tuple[float, float], None] = None,
) -> None:
"""
Generate a joint plot based on two columns in the data.
Expand Down
2 changes: 1 addition & 1 deletion plots/04_create_dataset_solstice_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class DatasetSolsticeSplit:
split_data()
Classify the data according to the solstice split.
plot_solstice_split()
Plot the solstice-splitted data.
Plot the solstice-split data.
"""

def __init__(
Expand Down
2 changes: 1 addition & 1 deletion scripts/example_stac_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
# Create STAC client.
client = StacClient(output_dir=args.output_dir)

# Download tower measurements
# Download tower measurements.
client.get_tower_measurements()

# Download weather data between a certain time period.
Expand Down

0 comments on commit f66bee3

Please sign in to comment.