Comments (4)
on macos aarch64 this simplified code produces a divide by zero warning but runs fine on x64 linux -- similar to the failing unit tests above.
#!/usr/bin/env python3
import numpy as np
print(np.__version__)
a = np.array([[5.e-8+0.j, 1+0.j], [1+0.j, 5.e-8+0.j]])
print(a)
print(np.linalg.det(a))
./test.py
1.25.2
[[5.e-08+0.j 1.e+00+0.j]
[1.e+00+0.j 5.e-08+0.j]]
/nix/store/rpdx49knxarbr4lmkwfi5l0461lyp6bd-python3-3.11.6-env/lib/python3.11/site-packages/numpy/linalg/linalg.py:2180: RuntimeWarning: divide by zero encountered in det
r = _umath_linalg.det(a, signature=signature)
/nix/store/rpdx49knxarbr4lmkwfi5l0461lyp6bd-python3-3.11.6-env/lib/python3.11/site-packages/numpy/linalg/linalg.py:2180: RuntimeWarning: invalid value encountered in det
r = _umath_linalg.det(a, signature=signature)
from scikit-rf.
note to future self: re-enable the failing test in nixpkgs if a fix is found
from scikit-rf.
This should be reported to https://github.com/numpy/numpy itself, but this probably related numpy/numpy#22025.
from scikit-rf.
Nevertheless we could modify the unit test slightly to avoid this issue. I'm afraid we are not able to find the root cause here.
from scikit-rf.
Related Issues (20)
- some observations about vectorfit operation
- Tests are failing HOT 11
- add statics function i.e. violin plots for a number of sample measurements HOT 1
- 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 4
- Renumbering network should update port names HOT 1
- skrf.Network.read_zipped_touchstone misses filenames in zip archive
- Error with NanoVNA if frequency npoints = 1
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.