mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2024-11-12 17:43:33 +01:00
ZH: modify clock takes cli argument
This commit is contained in:
parent
22ccf7e3e3
commit
4131b3775a
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,7 @@ if __name__ == "__main__":
|
|||
from os import path
|
||||
import sys
|
||||
|
||||
max_clock_offset = 100# ns
|
||||
max_clock_offset = 100 if len(sys.argv) < 1 else int(sys.argv[1]) # ns
|
||||
remake_clock_offsets = True
|
||||
|
||||
seed = 12345
|
||||
|
@ -40,6 +40,8 @@ if __name__ == "__main__":
|
|||
if not path.isfile(antennas_fname):
|
||||
print("Antenna file cannot be found, did you try generating a beacon?")
|
||||
sys.exit(1)
|
||||
|
||||
print(f"Modifying clocks upto {max_clock_offset}ns.")
|
||||
|
||||
# read in antennas
|
||||
with h5py.File(antennas_fname, 'a') as fp:
|
||||
|
|
Loading…
Reference in a new issue