Open joriswitstok opened 2 months ago
Hi Joris,
Thanks for this, definitely possible that I've made some sort of mistake. Please could you upload a minimum working example code file demonstrating the issue? Just so I can understand exactly what the issue is and run some tests.
Cheers, Adam
Sure! I've uploaded one into my forked repository (https://github.com/joriswitstok/bagpipes/blob/master/mwe.py).
Result before the fix:
After:
Hi Joris,
Apologies for the long radio-silence on this, but now term is over I should have some time to investigate. I'll try to take a look later on this week. Just checking if anything has changed in the mean time?
Cheers, Adam
Hi Adam,
No worries! There's no updates since last time, hopefully the MWE should clarify things.
Cheers, Joris
Hi Adam,
Hope you’re well! I’m back with a bagpipes question – I have been getting stuck into non-parametric SFHs and was getting some nice fits, although I noticed the two most recent bins always seemed to be fixed at the same value, which seemed suspicious to me.
I had a look under the hood and I think I may have found a bug causing this behaviour (see below, it may well be I misunderstood your implementation). Let me know if you agree!
Cheers, Joris
As an example, below I was trying to manually reproduce a 6-bin SFH myself using some best-fit values of the ΔSFR parameters (printing several values for each step to debug). The inferred SFR is exactly the same in the last two bins, while I'm fairly sure this shouldn't be the case?
If I simply prepend dsfrs with a zero, it seems to solve the issue and (I think) each of the 5 ΔSFR parameters nicely describe the logarithmic ratio of SFRs in adjacent bins – I assume the code later takes care of normalisation using the total stellar mass: