Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #269 from rashley-iqt/fix-build
Browse files Browse the repository at this point in the history
Correct validators
  • Loading branch information
cglewis authored Jul 20, 2022
2 parents 6a712cb + 5da1d60 commit 206bab6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions blue/5G/daedalus/daedalus.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,14 @@ def global_number_questions(enb):
'name': 'mcc',
'message': f'What MCC code for {enb} would you like?',
'default': '001',
'validate': MCCValidator,
'validate': MCCValidator(),
},
{
'type': 'input',
'name': 'mnc',
'message': f'What MNC code for {enb} would you like?',
'default': '01',
'validate': MNCValidator,
'validate': MNCValidator(),
},
]

Expand All @@ -344,22 +344,22 @@ def sdr_questions(enb):
'message': f'What EARFCN code for DL for {enb} would you like?',
'default': '3400',
# TODO should also validate the EARFCN wasn't already used
'validate': NumberValidator,
'validate': NumberValidator(),
'filter': lambda val: int(val),
},
{
'type': 'input',
'name': 'txgain',
'message': f'What TX gain value for {enb} would you like?',
'default': '80',
'validate': NumberValidator,
'validate': NumberValidator(),
},
{
'type': 'input',
'name': 'rxgain',
'message': f'What RX gain value for {enb} would you like?',
'default': '40',
'validate': NumberValidator,
'validate': NumberValidator(),
},
]

Expand Down Expand Up @@ -432,7 +432,7 @@ def imsi_questions():
'editor': 'nano',
'ext': '.json',
},
'validate': IMSIValidator,
'validate': IMSIValidator(),
},
{
'type': 'confirm',
Expand Down

0 comments on commit 206bab6

Please sign in to comment.