Rename uhh to data_model.py
Browse files- data_model.py +31 -0
- uhh +0 -1
data_model.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# data_model.py (you would save this code as a Python file)
|
| 2 |
+
|
| 3 |
+
from dataclasses import dataclass
|
| 4 |
+
from typing import Optional, List
|
| 5 |
+
|
| 6 |
+
@dataclass
|
| 7 |
+
class BackroomsDataModel:
|
| 8 |
+
"""
|
| 9 |
+
Data model for a dataset about the Backrooms.
|
| 10 |
+
"""
|
| 11 |
+
level_name: str # e.g., "Level 0", "The Lobby"
|
| 12 |
+
level_number: Optional[int] = None # If the level has a numerical designation
|
| 13 |
+
description: str # A description of the level
|
| 14 |
+
safety_class: Optional[str] = None # e.g., "Class 0: Safe", "Class 5: Unsafe"
|
| 15 |
+
entity_presence: bool = False # Whether entities are known to be present
|
| 16 |
+
entities: Optional[List[str]] = None # List of known entities in the level
|
| 17 |
+
entry_points: Optional[List[str]] = None # How to enter this level
|
| 18 |
+
exit_points: Optional[List[str]] = None # How to exit this level
|
| 19 |
+
additional_info: Optional[str] = None # Any other relevant information
|
| 20 |
+
|
| 21 |
+
# Example usage (optional):
|
| 22 |
+
# level_0_data = BackroomsDataModel(
|
| 23 |
+
# level_name="Level 0",
|
| 24 |
+
# level_number=0,
|
| 25 |
+
# description="The Lobby, a vast, non-euclidean space of yellow wallpaper and damp carpet.",
|
| 26 |
+
# safety_class="Class 0: Safe",
|
| 27 |
+
# entity_presence=False,
|
| 28 |
+
# exit_points=["Noclip through a wall"],
|
| 29 |
+
# additional_info="Smells like moist carpet."
|
| 30 |
+
# )
|
| 31 |
+
# print(level_0_data)
|
uhh
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
uhh how do i add a data model in here
|
|
|
|
|
|