Skip to content

Commit

Permalink
solve frequency as a list raising an exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainp committed May 14, 2020
1 parent e20d371 commit 5686613
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions smrt/core/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"""

import copy
from collections import Sequence
import numpy as np
from ..core.globalconstants import C_SPEED

Expand Down Expand Up @@ -136,6 +137,9 @@ def __init__(self, frequency=None, theta_inc_deg=None, theta_deg=None, phi_deg=N
else:
self.frequency = frequency

if isinstance(self.frequency, Sequence):
self.frequency = np.array(self.frequency)

self.channel = channel

if isinstance(polarization, str):
Expand Down

0 comments on commit 5686613

Please sign in to comment.