Giter Club home page Giter Club logo

Comments (8)

dfm avatar dfm commented on July 17, 2024

Thanks! It looks to me like this is probably more a prospector issue than an fsps one, since the looping is happening there, and the implementation here looks sensible. @bd-j will have a better sense, but it might be worth moving this issue over there!

from python-fsps.

bd-j avatar bd-j commented on July 17, 2024

Yes this is probably better as a prospector issue though python-fsps could be set up to only run check_params() before or within the call to _compute_csp(). In practice I've never run into this because I usually don't use sf_start; I think sf_start>0 is perfectly degenerate with tage=tage-sf_start; sf_trunc=sf_trunc-sf_start; sf_start=0

from python-fsps.

k-a-webb avatar k-a-webb commented on July 17, 2024

Thank you both for your help. Perhaps it is a Prospector issue, however I couldn't figure out how to update the fsps parameters and call check_params() only after-the-fact.
In any case, I appreciate the advice for how to avoid the issue!

from python-fsps.

bd-j avatar bd-j commented on July 17, 2024

ah, right I guess there's no easy way to ensure the order that the parameters are updated won't trigger the error, without putting another identical check in prospector and reordering the update there. I think having StellarPopulation. _update_params() call self.params.check_params() might be the cleanest way to solve this issue.

from python-fsps.

dfm avatar dfm commented on July 17, 2024

Thanks both! This makes sense to me. Are there any other places where we should add a call to check_params or is that sufficient?

from python-fsps.

bd-j avatar bd-j commented on July 17, 2024

I think that’s the only place driver.update_* get called, so should be sufficient

from python-fsps.

dfm avatar dfm commented on July 17, 2024

perfect! Let's do it!

from python-fsps.

bd-j avatar bd-j commented on July 17, 2024

@k-a-webb this issue should be resolved by #187

from python-fsps.

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.