Revision 6ded6cb3 utils/noise_gen.py

View differences:

utils/noise_gen.py
19 19
EXPERIMENT_DURATION = 300
20 20

  
21 21
# for each experiment remember to set a seed
22
np.random.seed(1234)
22
#np.random.seed(1234)
23 23

  
24 24
# set the event generation rate
25 25
RATE = 1. / 5
......
80 80
    parser.add_argument("-a","--asfile", dest="asfile", required=True,
81 81
                        default="", action="store",
82 82
                        help="AS List file")
83
    parser.add_argument("-s", "--seed", dest="seed", required=True,
84
                        type=int, default=None, action="store",
85
                        help="Seed number to initialize the RNG")
83 86
    
84 87
    
85 88
    args = parser.parse_args()
86 89

  
90
    np.random.seed(args.seed)
91
    
87 92
    # Load the AS to physical node mapping
88 93
    with open(args.asfile) as a_fd:
89 94
      as_data = json.load(a_fd)

Also available in: Unified diff