Skip to content

Commit

Permalink
fix bug in gnssir_cl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinemlarson committed Jul 5, 2024
1 parent 22b4bc4 commit eb827dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gnssrefl/gnssir_cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,15 @@ def gnssir(station: str, year: int, doy: int, snr: int = 66, plt: bool = False,

# this is for when you want to run the code with just a single frequency, i.e. input at the console
# rather than using the input restrictions
if fr is not None:
#print(lsp['freqs'])
#if fr is not None:
if len(fr) > 0:
lsp['freqs'] = fr
# better make sure you have enough amplitudes
ampl_from_json = lsp['reqAmp'][0]
if ampl is None:
lsp['reqAmp'] = [ampl_from_json for i in range(14)]


if ampl is not None:
# this is not elegant - but allows people to set ampl on the command line
# but use the frequency list from their json ... which i think has max of 12
Expand Down

0 comments on commit eb827dc

Please sign in to comment.