3 Commits

Author SHA1 Message Date
Xuwznln
14a2aea166 Bump version: 0.0.10 → 0.0.11 2025-10-24 00:26:21 +08:00
Xuwznln
a009dac5ab Update gitignore 2025-10-24 00:26:15 +08:00
Xuwznln
371b3edf70 Correct calculating passengers arrival time. 2025-10-23 21:30:10 +08:00
4 changed files with 7 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
[bumpversion] [bumpversion]
current_version = 0.0.10 current_version = 0.0.11
commit = True commit = True
tag = True tag = True
tag_name = v{new_version} tag_name = v{new_version}

3
.gitignore vendored
View File

@@ -4,6 +4,9 @@
elevator_saga/traffic/test_cases.py elevator_saga/traffic/test_cases.py
elevator_saga/traffic/test_cases elevator_saga/traffic/test_cases
result.json result.json
batch_grading.py
students.csv
ElevatorTest
# Compiled Python files # Compiled Python files
__pycache__/ __pycache__/

View File

@@ -6,5 +6,5 @@ A Python implementation of the Elevator Saga game with event-driven architecture
realistic elevator dispatch algorithm development and testing. realistic elevator dispatch algorithm development and testing.
""" """
__version__ = "0.0.10" __version__ = "0.0.11"
__author__ = "ZGCA Team" __author__ = "ZGCA Team"

View File

@@ -892,8 +892,8 @@ class ElevatorSimulation:
total_energy_consumption=total_energy, total_energy_consumption=total_energy,
) )
floor_wait_times = [float(p.floor_wait_time) for p in completed] floor_wait_times = [float(p.floor_wait_time) for p in self.state.passengers.values()]
arrival_wait_times = [float(p.arrival_wait_time) for p in completed] arrival_wait_times = [float(p.arrival_wait_time) for p in self.state.passengers.values()]
def average_excluding_top_percent(data: List[float], exclude_percent: int) -> float: def average_excluding_top_percent(data: List[float], exclude_percent: int) -> float:
"""计算排除掉最长的指定百分比后的平均值""" """计算排除掉最长的指定百分比后的平均值"""