Skip to content

Commit

Permalink
# update reference model to use "requestedOperationParam" instead of …
Browse files Browse the repository at this point in the history
…"operationParam" when provided in dump record
  • Loading branch information
RedaHossino committed Dec 3, 2018
1 parent 8ce2bf7 commit eedca5f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/harness/reference_models/common/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,14 @@ def constructCbsdGrantInfo(reg_request, grant_request, is_managing_sas=True):

max_eirp, low_frequency, high_frequency = None, None, None
if grant_request is not None:
max_eirp = grant_request['operationParam']['maxEirp']
low_frequency = grant_request['operationParam']['operationFrequencyRange']['lowFrequency']
high_frequency = grant_request['operationParam']['operationFrequencyRange']['highFrequency']
if 'requestedOperationParam' in grant_request:
max_eirp = grant_request['requestedOperationParam']['maxEirp']
low_frequency = grant_request['requestedOperationParam']['operationFrequencyRange']['lowFrequency']
high_frequency = grant_request['requestedOperationParam']['operationFrequencyRange']['highFrequency']
else:
max_eirp = grant_request['operationParam']['maxEirp']
low_frequency = grant_request['operationParam']['operationFrequencyRange']['lowFrequency']
high_frequency = grant_request['operationParam']['operationFrequencyRange']['highFrequency']
return CbsdGrantInfo(
# Get information from the registration
latitude=lat_cbsd,
Expand Down

0 comments on commit eedca5f

Please sign in to comment.