Comments (2)
Can you post the exact error message? I don't have access to a NanoVNA.
from scikit-rf.
The issue can be reproduced without a NanoVNA, the device string only needs to be a valid serial interface:
import skrf
from skrf.vi.vna.nanovna import NanoVNA
instr = NanoVNA("ASRL/dev/tty1::INSTR")
freq = skrf.Frequency(start=2.4, stop=2.4, unit='GHz', npoints=1)
instr.frequency = freq
I get the following Error:
skrf/frequency.py:412: RuntimeWarning: invalid value encountered in scalar divide
return self.span/(self.npoints-1.)
Traceback (most recent call last):
File "scratches/scratch.py", line 6, in <module>
instr.frequency = freq
^^^^^^^^^^^^^^^
File "skrf/vi/vna/nanovna/nanovna.py", line 155, in frequency
self.write(OP.WRITE8, REG_ADDR.SWEEP_STEP, 8, f.step)
File "skrf/vi/vna/nanovna/nanovna.py", line 74, in write
arg = int(arg).to_bytes(nbytes, byteorder="little", signed=False)
^^^^^^^^
ValueError: cannot convert float NaN to integer
from scikit-rf.
Related Issues (20)
- Analytical Matrix Inversion in subnetwork growth (Filipsson/Compton) vs General Numerical Inversion following Hallbjörner HOT 9
- De-embedding procedure help request HOT 3
- Trying to use pre-commit, doesn't like the .pre-commit-config.yaml regex. HOT 3
- S-parameter calculation incorrect for 3-port circuit HOT 46
- Phase mismatch between symmetrical error networks HOT 3
- `n_twoports_2_nport` does not work for more than 10 ports, similar to #947. Work around included. HOT 1
- De embedding multi frequency 2port network touchstone files HOT 4
- module 'collections' has no attribute 'Sequence' HOT 2
- Support request for network.z_time_step HOT 2
- Adding support to the Keysight N5242B VNA HOT 3
- NanoVNA connection syntax out of date in example Measuring a 4-Port With The 1.5-Port NanoVNA V2 HOT 1
- error in the def "write_spice_subcircuit_s(self, z0, file: str) -> None: " HOT 4
- Importing scikit-rf imports many modules and is slow HOT 5
- No good results with IEEEP370_MM_ZC_2xThru HOT 12
- Renumbering network should update port names HOT 1
- skrf.Network.read_zipped_touchstone misses filenames in zip archive
- Replace simple DFFT by Chirp Z transform for higher resolution in Time domain processing HOT 2
- About COM_receiver_noise_filter HOT 1
- network_2_spreadsheet doesn't scale frequency with units
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikit-rf.