Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""
Simulation Constants
"""

"""
there is going to be
some changes
"""
Comment on lines +4 to +7
Copy link

Copilot AI Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added triple-quoted block is a standalone string literal (not the module docstring) and will be treated as a no-op statement at import time. If this is meant to document the module, merge it into the initial module docstring; otherwise convert it to # comments or remove it.

Copilot uses AI. Check for mistakes.

class SimColor:
"""
Expand Down Expand Up @@ -69,3 +72,5 @@ class PreventativeMeasure:
VACCINATE_POP,
SHELTER_IN_PLACE
]

"""this is the end.."""
Copy link

Copilot AI Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This trailing triple-quoted string is another standalone string literal and doesn’t function as a docstring (it also adds unnecessary trailing whitespace on the preceding blank line). It should be removed, or replaced with a comment if you need an end-of-file marker (generally not needed).

Suggested change
"""this is the end.."""

Copilot uses AI. Check for mistakes.
71 changes: 71 additions & 0 deletions constants.py~
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
"""
Simulation Constants
"""
Comment on lines +1 to +3
Copy link

Copilot AI Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be an editor/backup file (the ~ suffix). It’s generally best to avoid committing these; please remove it from version control and add an ignore pattern like *~ to .gitignore so it won’t be re-added accidentally.

Copilot uses AI. Check for mistakes.


class SimColor:
"""
Tuples corresponding to RGB colors
"""
Comment on lines +6 to +9
Copy link

Copilot AI Feb 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The class docstring is not indented under class SimColor:. In Python this causes an IndentationError (expected an indented block after the class definition). Indent the docstring (and any other class-level docstrings in this file) to be inside the class body.

Copilot uses AI. Check for mistakes.
LIGHT_GREY = (240, 240, 240)
DARK_GREY = (30, 30, 50)
BLACK = (0, 0, 0)
LIMIT_LINE = (80, 80, 100)
INFECTED = (210, 100, 140)
RECOVERED = (0, 160, 0)
UNEXPOSED = (0, 120, 240)


class Disease:
"""
Constants for disease
"""
INFECTED = 0
RECOVERED = 1
UNEXPOSED = 2

DEFAULT_RECOVERY_PERIOD = 340

COLOR_MAP = {
INFECTED: SimColor.INFECTED,
RECOVERED: SimColor.RECOVERED,
UNEXPOSED: SimColor.UNEXPOSED
}


class Screen:
"""
Constants for Screen
"""
WIDTH = 680
HEIGHT = 480
FONT_SIZE = 18
GRAPH_X_UNIT = 0.8
MEDICAL_LIMIT = 50

"""
Class for initial condition of Patient
"""
class InitialCondition:
POP_UNEXPOSED = 49
POP_INFECTED = 1


class HostConfig:
SIZE = 11
VACCINATION_DRIP = 3
PREVENTATIVE_MEASURE_ADHERENCE = 0.5
MAX_SPEED = 6
MIN_SPEED = 2


class PreventativeMeasure:
SHELTER_IN_PLACE = 0
VACCINATE_POP = 1
LIMIT_TRAVEL = 2

SELECTED = [
LIMIT_TRAVEL,
VACCINATE_POP,
SHELTER_IN_PLACE
]
Loading