MCPcopy Create free account
hub / github.com/Unipisa/Simu5G / create_run_specific_args

Function create_run_specific_args

_scripts/extend_simulations_csv.py:40–45  ·  view source on GitHub ↗

Create new args string with specific run number.

(original_args, run_number)

Source from the content-addressed store, hash-verified

38 return ini_file, config
39
40def create_run_specific_args(original_args, run_number):
41 """Create new args string with specific run number."""
42 # Remove existing -r argument if present
43 args_without_r = re.sub(r'-r\s+\d+', '', original_args)
44 # Add the new run number
45 return f"{args_without_r.strip()} -r {run_number}"
46
47def extend_simulations_csv(input_file, output_file):
48 """Extend the simulations.csv file to include all runs."""

Callers 1

extend_simulations_csvFunction · 0.85

Calls 1

subMethod · 0.80

Tested by

no test coverage detected