Files
025-squirrel/src/squirrel/constants.py
T
Tirsvad a80b7551b4
Tests / Run the tests (pull_request) Canceled after 0s
Add project scaffold: gitignore, pyproject, constants, Doxyfile, CI
Closes #2
Closes #3
Closes #4
Closes #5
Closes #6
Refs #7

Task: MIL-001#1
Task: MIL-001#2
Task: MIL-001#3
Task: MIL-001#4
Task: MIL-001#5
Task: MIL-001#6
2026-10-13 15:28:17 +08:00

28 lines
1019 B
Python

##
# @file constants.py
# @brief Literals used by the squirrel census analysis, each defined once.
"""Literals used by the squirrel census analysis, each defined once."""
import pathlib
## @brief Default location of the census CSV file, relative to the working directory.
DEFAULT_INPUT_PATH: pathlib.Path = (
pathlib.Path("data") / "2018_Central_Park_Squirrel_Census_-_Squirrel_Data.csv"
)
## @brief Default location of the summary CSV file that is written.
DEFAULT_OUTPUT_PATH: pathlib.Path = pathlib.Path("squirrel_count.csv")
## @brief Text encoding of the input and output files.
FILE_ENCODING: str = "utf-8"
## @brief Name of the census column that holds the primary fur colour.
FUR_COLOR_COLUMN: str = "Primary Fur Color"
## @brief Fur colours that are counted, in the order they appear in the summary.
FUR_COLORS: tuple[str, ...] = ("Gray", "Cinnamon", "Black")
## @brief Header of the summary file: the colour column, then the count column.
SUMMARY_COLUMNS: tuple[str, str] = ("Fur Color", "Count")