Giter Club home page Giter Club logo

Comments (7)

JohannesBuchner avatar JohannesBuchner commented on August 12, 2024

Yes, this is a good point. The code here is supposed to make columns compatible with xspec's mcmc functionality. I am not sure what xspec does in case of similar names. Does it attach the data group id or parameter id?

from bxa.

alexkolo avatar alexkolo commented on August 12, 2024

I neither know what XSPEC does for such cases, since I never used xspec's mcmc functionality.
As for BXA, one can get from xc.AllData.nGroups the total number of Data-Groups, which could be used to trigger a user warning if it's larger than one. However, BXA doesn't know from the transformations variable itself which parameter belongs to which Data-Group. Maybe, one could create an additional input variable for BXA, which supplies this information and which becomes mandatory if parameters from more than one data-group are used.

from bxa.

ferrigno avatar ferrigno commented on August 12, 2024

The following code snippet can be easily used to overcome this issue (I cannot get indentation correct here)
group_index=1
old_model=transformations[0]['model']
for t in transformations:
if t['model'] != old_model:
group_index+=1
old_model=t['model']
print(t['name'], t['index']+(group_index-1)*old_model.nParameters)

from bxa.

JohannesBuchner avatar JohannesBuchner commented on August 12, 2024

Thanks @ferrigno, I added your suggestion in the branch feature-multidatachain . Could you (or @alexkolo ) check out that branch and test if the fits files work in xspec?

from bxa.

ferrigno avatar ferrigno commented on August 12, 2024

Hi @JohannesBuchner . I have tested it in one case and it works. Thanks a lot for your prompt reaction.

from bxa.

ferrigno avatar ferrigno commented on August 12, 2024

Hi. I used it again and it works. Feele free to merge it on the master branch, if you wish.

from bxa.

JohannesBuchner avatar JohannesBuchner commented on August 12, 2024

done.

from bxa.

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.