6 Commits

Author SHA1 Message Date
dependabot[bot]
2218a693d3 ci(deps): bump actions/upload-artifact from 4 to 6
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 06:22:43 +00:00
Xuwznln
5d97015c01 Merge pull request #8 from Shaobin-Jiang/main
fix incorrect default value for --debug flag
2025-11-02 21:09:18 +08:00
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
Shaobin-Jiang
0b5853a1e2 fix incorrect default value for --debug flag 2025-10-09 15:09:11 +08:00
6 changed files with 12 additions and 9 deletions

View File

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

View File

@@ -94,7 +94,7 @@ jobs:
continue-on-error: true
- name: Upload security reports
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: security-reports
path: |
@@ -127,7 +127,7 @@ jobs:
run: twine check dist/*
- name: Upload build artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: dist
path: dist/

View File

@@ -96,7 +96,7 @@ jobs:
continue-on-error: true
- name: Upload security reports
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: security-reports
path: |
@@ -158,7 +158,7 @@ jobs:
twine check dist/*
- name: Upload distributions
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: release-dists
path: dist/

3
.gitignore vendored
View File

@@ -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__/

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.
"""
__version__ = "0.0.10"
__version__ = "0.0.11"
__author__ = "ZGCA Team"

View File

@@ -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()