GithubHelp home page GithubHelp logo

vosjo / emcmass Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 56.23 MB

Stand alone Markov chain Monte Carlo script to estimate masses for main-sequence stars based on atmospheric parameters.

License: MIT License

Python 100.00%

emcmass's Introduction

header

Hi there ๐Ÿ‘‹

I am a scientist with an education in Astrophysics. I am an end-to-end data scientist and worked on projects covering the entire path from problem definition, data acquisition, data reduction and cleaning, hypothesis testing, model creation and testing, and reporting on the results. Below you can find a few python packages for the aquisition and modeling of astronomical data that I have developed during my career in astronomy.

Projects

ย  ย 

emcmass's People

Contributors

vosjo avatar

Stargazers

 avatar

Watchers

 avatar

emcmass's Issues

IndexErrors running emcmass

Hi vosjo,

I was hoping to run the emcmass tool, but I am coming up against the following issue (either when I use the command-line or input file version) -- this is returned:

Traceback (most recent call last):
File "/Users/jolovell/anaconda3/envs/astroJBL/bin/emcmass", line 8, in
sys.exit(main())
File "/Users/jolovell/anaconda3/envs/astroJBL/lib/python3.10/site-packages/emcmass/emcmass.py", line 181, in main
results, samples = mcmc.MCMC(variables, limits, y, yerr, return_chain=True,
File "/Users/jolovell/anaconda3/envs/astroJBL/lib/python3.10/site-packages/emcmass/mcmc.py", line 154, in MCMC
grid = models.prepare_grid(evolution_model=model, variables=variables,
File "/Users/jolovell/anaconda3/envs/astroJBL/lib/python3.10/site-packages/emcmass/models.py", line 77, in prepare_grid
all_variables = fits.getdata(files[0]).dtype.names
IndexError: list index out of range

This is the same if I use the Solar parameters used in the example, or indeed any parameter set that I provide. I have updated emcee to the latest install. I wonder if this could be another dependency issue, or if you have seen this before and know how to get this to run?

Cheers
Josh

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.