Coder Social home page Coder Social logo

Comments (5)

dvincentwest avatar dvincentwest commented on September 6, 2024

How do you want to do this? There are 4 classes of EightTerm Coefficients, and they each define their own self.run method where the coefs dictionaries are defined.

Two proposals:

  1. put it in EightTerm.coefs getter
    If no isolation terms are detected, initialize at zero and return
  2. put it in the EightTerm..coefs setter
    If not isolation terms are detected, initalize at zero and set the _coefs attribute with this

Or something else?

from scikit-rf.

arsenovic avatar arsenovic commented on September 6, 2024

so i think we want to

  1. change the init to look for isolation temrs as a kwarg to EightTerm, so that we could use it in the correction.
  2. use it in the correction (EightTerm.apply_cal). this may require terminate/unterminate to be updated as @Ttl suggests.
  3. use it in EightTerm.embed. (low priority, but needed for tests)
  4. have default zero-filling fall-back behavior as you suggest above.

from scikit-rf.

arsenovic avatar arsenovic commented on September 6, 2024

also putting the isolation in coefs getter, as you suggest solves the problem is redundant implementation, which is important . after looking the EightTerm.run directly accesses self._coefs, so it bypasses the setter. so going with the getter makes the most sense.

from scikit-rf.

dvincentwest avatar dvincentwest commented on September 6, 2024

are we ready to close this then?

from scikit-rf.

arsenovic avatar arsenovic commented on September 6, 2024

from scikit-rf.

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.