Comments (7)
Ok, I tracked it down to node.ident._backend
which appends a _
to an identifier if it is in the reserved
set. Of course, Matlab's filter
and python's filter
are completely different, but the round behaves essentially the same. Behaviour to be changed?
from smop.
Yep, this is a bug. Many of the common Matlab functions have mappings already, but these don't yet. To fix them, a function must be added to backend.py
that implements the transformation.
from smop.
The scipy lfilter
needs to be imported from the scipy.signal
module. What is the best way to do this? Put it in the _backend
for node.filter
?
from smop.
Eventually, we'll want a system for tracking which imports are used, and then generate only those. For now, it's fine to drop the import statement in the _backend
code. Maybe I'll look into an import-cleanup PR...
from smop.
Well, I tried putting it in the _backend
code, it led to weird consequences like:
a = from scipy.signal import lfilter
lfilter(b,c,d)
I've finally just caved in and put the line import scipy.signal
in main.py
I think an import tracking system will be a great thing.
from smop.
Ok, I've got a few functions implemented at seden@2486a1d
I'm working off @victorlei's 0.25 branch. I'll create a pull request if @victorlei okays it.
I'm new to github, never done a merge or pull request before so let me know if I'm doing something wrong.
from smop.
Just go ahead and create the PR now. That makes it much easier to see and comment on your changes. Also, thanks!
from smop.
Related Issues (20)
- 'DiGraph' object has no attribute 'node' HOT 15
- The function call to 'arange' function in converted .py file is incorrect
- Future Warning: Possible nested set at... creates tons of "str" output HOT 6
- No output and no file created HOT 5
- Lexer crash on `...>=(...)...` HOT 1
- FutureWarning: Possible nested set at...
- Python 2 print statement in test_primes.py HOT 1
- issue working HOT 1
- NEED HELP !! nothing created for running the main HOT 1
- New Matlab Lexer & Parser HOT 5
- Maintenance? HOT 2
- iscell is not defined
- Does'nt run with Python 3.9.5 cannot import name 'gcd' from 'fractions' HOT 1
- New similar project [mat2py](https://mat2py.org/)
- TypeError: '<' not supported between instances of 'NoneType' and 'NoneType' HOT 1
- ImportError on windows HOT 3
- smop command not found even after installation HOT 1
- Where does .py go to? HOT 1
- Doesn't work: python main.py fastsolver.m AND smop fastsolver.m HOT 3
- Observations about SMOP
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 smop.