GithubHelp home page GithubHelp logo

jpierel14 / sntd Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 4.0 156.64 MB

SNTD is a Python package dedicated to measuring time delays for strongly lensed and multiply-imaged SN. The package can simulate lensed SN, fit for each SN time delay, and propagate the results all the way through to cosmological constraints.

Home Page: https://sntd.readthedocs.io

Python 93.39% Shell 0.07% Jupyter Notebook 6.53%
cosmology gravitational-lensing supernova

sntd's Introduction

Welcome to Supernova Time Delays (SNTD)

Documentation Status PyPI ascl:1902.001 GitHub release

alt text

SNTD is a Python package dedicated to measuring time delays for (resolved) strongly lensed and multiply-imaged SN. The package can simulate lensed SN, fit for each SN time delay, and propagate the results all the way through to cosmological constraints. Documentation for this package is hosted on ReadTheDocs. This package is under active use and development, so please post GitHub issues if anything arises (bug or feature request). Please see the "notebooks" folder for jupyter notebook examples of using SNTD.

Here you can run the SNTD example notebooks directly in your browser using Google Colab:

Simulations: Simulations:

Fitting and Plotting: Fitting and Plotting:

Constraining Cosmology: Cosmology:

Citation: SNTD

sntd's People

Contributors

jpierel14 avatar srodney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sntd's Issues

Nestle likely bug

Fitting some data with a IIn template gives an error with nestle due to a negative h.

"""
File "/Users/suhaildhawan/workspaces/LSST/time_delays/core-collapse/simulate_sntd.py", line 43, in
fitCurves=sntd.fit_data(misn,snType=snType,models=template,bands=filt_ls,
File "/Users/suhaildhawan/.local/lib/python3.9/site-packages/sntd/fitting.py", line 568, in fit_data
curves = _fitparallel(args)
File "/Users/suhaildhawan/.local/lib/python3.9/site-packages/sntd/fitting.py", line 2725, in _fitparallel
res, fit = sncosmo.nest_lc(fit_table, tempMod, [x for x in args['params'] if x in tempMod.param_names],
File "/opt/anaconda3/lib/python3.9/site-packages/sncosmo/fitting.py", line 1099, in nest_lc
res = nestle.sample(loglike, prior_transform, ndim, npdim=npdim,
File "/Users/suhaildhawan/.local/lib/python3.9/site-packages/nestle.py", line 985, in sample
raise RuntimeError("Negative h encountered (h={}). Please report "
RuntimeError: Negative h encountered (h=-8.102136181477137e+23). Please report this as a likely bug.

"""

name change for io.py?

PyCharm apparently can in some cases have an issue with a package that contains modules with names that match up to certain core python system builtin modules, such as abc.py and io.py:

https://stackoverflow.com/questions/26569828/pycharm-py-initialize-cant-initialize-sys-standard-streams

I suggest changing io.py to lightcurves.py, which I've just done in my fork. If this isn't a problem for you, then it can wait until I issue a pull request to merge my fork into your dev branch.

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.