Giter VIP home page Giter VIP logo

Comments (7)

seden avatar seden commented on September 28, 2024

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.

perimosocordiae avatar perimosocordiae commented on September 28, 2024

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.

seden avatar seden commented on September 28, 2024

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.

perimosocordiae avatar perimosocordiae commented on September 28, 2024

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.

seden avatar seden commented on September 28, 2024

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.

seden avatar seden commented on September 28, 2024

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.

perimosocordiae avatar perimosocordiae commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.