mirror of
https://github.com/ZGCA-Forge/Elevator.git
synced 2025-12-17 13:01:03 +00:00
Compare commits
6 Commits
0.0.10
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07e05139cf | ||
|
|
5d97015c01 | ||
|
|
14a2aea166 | ||
|
|
a009dac5ab | ||
|
|
371b3edf70 | ||
|
|
0b5853a1e2 |
@@ -1,5 +1,5 @@
|
||||
[bumpversion]
|
||||
current_version = 0.0.10
|
||||
current_version = 0.0.11
|
||||
commit = True
|
||||
tag = True
|
||||
tag_name = v{new_version}
|
||||
|
||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -48,7 +48,7 @@ jobs:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Cache pip dependencies
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ubuntu-pip-3.10-${{ hashFiles('**/pyproject.toml') }}
|
||||
@@ -156,7 +156,7 @@ jobs:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Cache pip dependencies
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
|
||||
|
||||
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -61,7 +61,7 @@ jobs:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Cache pip dependencies
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ubuntu-pip-3.10-${{ hashFiles('**/pyproject.toml') }}
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -4,6 +4,9 @@
|
||||
elevator_saga/traffic/test_cases.py
|
||||
elevator_saga/traffic/test_cases
|
||||
result.json
|
||||
batch_grading.py
|
||||
students.csv
|
||||
ElevatorTest
|
||||
|
||||
# Compiled Python files
|
||||
__pycache__/
|
||||
|
||||
@@ -6,5 +6,5 @@ A Python implementation of the Elevator Saga game with event-driven architecture
|
||||
realistic elevator dispatch algorithm development and testing.
|
||||
"""
|
||||
|
||||
__version__ = "0.0.10"
|
||||
__version__ = "0.0.11"
|
||||
__author__ = "ZGCA Team"
|
||||
|
||||
@@ -892,8 +892,8 @@ class ElevatorSimulation:
|
||||
total_energy_consumption=total_energy,
|
||||
)
|
||||
|
||||
floor_wait_times = [float(p.floor_wait_time) for p in completed]
|
||||
arrival_wait_times = [float(p.arrival_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 self.state.passengers.values()]
|
||||
|
||||
def average_excluding_top_percent(data: List[float], exclude_percent: int) -> float:
|
||||
"""计算排除掉最长的指定百分比后的平均值"""
|
||||
@@ -1145,7 +1145,7 @@ def main() -> None:
|
||||
parser = argparse.ArgumentParser(description="Elevator Simulation Server (Async)")
|
||||
parser.add_argument("--host", default="127.0.0.1", help="Server host")
|
||||
parser.add_argument("--port", type=int, default=8000, help="Server port")
|
||||
parser.add_argument("--debug", default=True, action="store_true", help="Enable debug logging")
|
||||
parser.add_argument("--debug", default=False, action="store_true", help="Enable debug logging")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user