Skip to content

Io#62

Merged
ChuanyuXue merged 14 commits into
mainfrom
io
Nov 29, 2025
Merged

Io#62
ChuanyuXue merged 14 commits into
mainfrom
io

Conversation

@ChuanyuXue
Copy link
Copy Markdown
Owner

@ChuanyuXue ChuanyuXue commented Nov 29, 2025

#60

This pull request introduces improvements to command-line argument handling and network rate configuration across multiple modules, making the codebase more consistent and flexible. The most significant changes include centralizing the parsing of simulation constants, expanding support for network link rates, and updating documentation and debug tooling to better handle problem instance ranges.

Command-line argument parsing improvements

  • Added a centralized parse_command_line_constants function in tsnkit/core/_common.py, allowing simulation constants (e.g., slot size, processing delay, queue numbers) to be set via command-line arguments and updating global values in core. This function is now invoked across multiple modules (core, data/generator.py, simulation/tas.py, test/benchmark/__main__.py, test/debug/__main__.py, and test/debug/_common.py) for consistent configuration. [1] [2] [3] [4] [5] [6] [7]
  • Updated debug and test scripts to accept a new --ins argument for specifying ranges of problem instances, with improved parsing and error handling for these ranges. [1] [2] [3]

Network rate configuration enhancements

  • Changed the network link rate parameter from int to float in tsnkit/core/_network.py and expanded accepted values to include 0.01 and 0.1, supporting finer-grained bandwidths (10 Mbps, 100 Mbps) in addition to existing rates. [1] [2] [3] [4]
  • Updated error messages and type annotations to reflect the expanded range of supported rates. [1] [2]

Documentation and usage updates

  • Revised the simulation documentation (doc/source/simulation.md) to clarify usage of the debug tool, showing how to specify problem instance ranges and single method testing with the new argument format.

These changes improve usability, flexibility, and consistency in simulation configuration and debugging workflows.

@ChuanyuXue ChuanyuXue mentioned this pull request Nov 29, 2025
@ChuanyuXue ChuanyuXue merged commit 95636a0 into main Nov 29, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants