mfouesneau / dustapprox Goto Github PK
View Code? Open in Web Editor NEWA tool for computing approximative extinction coefficients
Home Page: https://mfouesneau.github.io/dustapprox
License: BSD 3-Clause "New" or "Revised" License
A tool for computing approximative extinction coefficients
Home Page: https://mfouesneau.github.io/dustapprox
License: BSD 3-Clause "New" or "Revised" License
I'm trying to extract excinction coefficients with the edr3.edr3_ext.from_bprp() method but I can't seem to get it to work.
Here's my code:
import dustapprox
BPRP = np.arange(0, 5, .1)
model = dustapprox.literature.edr3.edr3_ext()
model.from_bprp("BP", BPRP, 1)
*** KeyError: 'BP'
I've tried other ways of importing he module but it just won't work. What am I doing wrong here?
Hi, is it possible to have the file used in the Quick Start example ("kurucs_gaiaedr3_small_a0_grid.csv")? Just to see how it is formatted.
Thank you
Hello,
Found an issue when using dustapprox with python 3.10. It can't be imported because of the pyphot dependency containing depreciated Iterable class
I've fixed it using the edit listed here: mfouesneau/pyphot#47 (comment)
Wasn't sure if you knew it was affecting dustapprox as well as pyphot.
Thanks
Vicky
The following code given in the documentation doesn't seem to work:
lib = PrecomputedModel()
r = lib.find(passband='Gaia')
models = []
for source in r.values():
models.extend([lib.load_model(r, passband=pbname) for pbname in source['passbands']])
The returned r
is a list and not a dictionary (as expected in for source in r.values()
).
Even if I try to load the model by passing a filename, I get the following error:
AttributeError: 'PolynomialFeatures' object has no attribute 'get_feature_names_out'
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.