Code Monkey home page Code Monkey logo

Comments (3)

cosimoNigro avatar cosimoNigro commented on July 19, 2024

Hi @jsitarek, thanks for reporting this.
I do check the SSA for the PowerLaw case in the tests, comparing the SED with one I generated in a previous version of the code:
https://github.com/cosimoNigro/agnpy/blob/master/agnpy/tests/test_synchrotron.py#L111
I think the problem is related only to the BrokenPowerLaw, the analytical formula I have used might be incorrect, with respect to the previous version. I am sure the problem is there, will check!
Thank you!

from agnpy.

jsitarek avatar jsitarek commented on July 19, 2024

looking through the code, I got a similar conclusion, the SSA integrant function for the broken PWL has changed considerably between the two versions of the code, but since it is pretty complicated, I prefer not to touch it myself, so if you can fix it, it would be great.

I checked also the PWL and LP, for PWL both old and new code indeed gives the same result, LP was not supported in the old code. Both PWL and LP however give me somewhat different values then theoretical curve, in particular if gamma_min is >>1:
lp_test
pwl_test
For this simple test I calculate this SSA from effective temperature of electrons, see e.g.: https://www.cv.nrao.edu/course/astr534/SelfAbsorption.html while you do the full absorption calculations, but still it is somewhat suspicious, so it would be great if you have a look at the other two integrants as well if there is no similar mistake there.

from agnpy.

cosimoNigro avatar cosimoNigro commented on July 19, 2024

Hi @jsitarek,
I solved this with PR #43 and introduced some tests against SSA SEDs generate with jetset (check the figures in the pull request).
I am closing this.

from agnpy.

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.