-
Notifications
You must be signed in to change notification settings - Fork 11
Description
When dealing with a large number of frequency points, the CITI file import commands doesn't accurately reproduce the right number of frequency points in the resulting nport type.
A possible fix for this would to be replace the code in lines 179-187 in citi.py with the following statement:
self.data[packagecounter][datacount] = np.linspace(start, stop, numpoints)
This uses the numpy package linspace command which ensures the right number of frequency points are created. The linspace command more closely aligns with the way in which the number of frequency points are presented in the CITI file.
2013-03-12 Edit: for posterity I should mention that the above mentioned problem with large frequencies appeared due to numerical rounding errors. In my case it was generating an array of frequency points between 75-110 GHz in units of hertz.