jason-neal / baraffe_tables Goto Github PK
View Code? Open in Web Editor NEWQuickly access the Baraffe 2003/2015 evolutionary tables.
License: MIT License
Quickly access the Baraffe 2003/2015 evolutionary tables.
License: MIT License
CodeFactor found an issue: Comparison to True should be just 'expr' or 'expr is True'
It's currently on:
baraffe_tables\test\test_baraffe_tables.py:364
Find entry in 2 closest tables. then interpolate value between them to given age.
Models will be in absolute.
Simbad gives apparent magnitude.
Need to calculate the distance modulus from parallaxes
python BDmass_to_flux_ratio.py HD202206 93 3 -p
Warning: The flux ratio is nan, check that there is the value in Simbad.
/home/jneal/Phd/Codes/baraffe_tables/baraffe_tables/calculations.py:66: UserWarning: Warning: converting a masked element to nan.
flux_ratios[band] = flux_mag_ratio(float(star_params["FLUX_{0!s}".format(band)]),
Warning: The flux ratio is nan, check that there is the value in Simbad.
Warning: The flux ratio is nan, check that there is the value in Simbad.
Flux ratios:
H band star/companion Flux ratio = nan, >>> companion/star Flux ratio = nan
K band star/companion Flux ratio = nan, >>> companion/star Flux ratio = nan
J band star/companion Flux ratio = nan, >>> companion/star Flux ratio = nan
{'Mi': 12.78493720664016, 'Mj': 10.78602775700605, 'Mh': 10.372141438210313, 'Mv': 17.186642424704118, 'Mk': 10.103364174451166, 'g': 5.289646397715241, 'Mr': 14.994500986493804, 'Teff': 2597.1652357231924, 'Mll': 9.453800394597522, 'M/Ms': 0.08877726375914723, 'L/Ls': -3.2996688686380864, 'Mm': 9.787250493246903, 'R': 0.11165499013506196}
Traceback (most recent call last):
File "BDmass_to_flux_ratio.py", line 137, in <module>
sys.exit(main(star_name, companion_mass, age, **opts))
File "BDmass_to_flux_ratio.py", line 125, in main
companion_params["Mk"], flux_ratios["K"]))
TypeError: unsupported format string passed to MaskedConstant.__format__
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.