Skip to main content

README

Hey.

Thanks for using FitTeD.

The paper describing this package is here: https://ui.adsabs.harvard.edu/abs/2025MNRAS.544.2225M/abstract Please cite if you make use of this code in your research.

Setup

To get this all up and running, you will need to run the following:

  • Pull into its own folder
  • Within the folder, run "python3 -m pip install -e ."

That is the whole installation. FitTeD is pure Python: there is no compiler, no build step, and the same install works on Linux, macOS and Windows.

  • The -e flag is optional. It makes the package editable in place; a plain "python3 -m pip install ." works identically.

To run the below examples you will need to also have manyTDE installed (Andy and Sjoert's database of optical/UV TDE light curves).

  • This is only necessary if you want to get TDE data sets by IAU name, rather than loading your own data.
  • manyTDE can be found here: https://github.com/sjoertvv/manyTDE
  • Again just run “ python3 -m pip install -e . ” in the manyTDE directory to set up.

Running the code

There are 3 example scripts in the fitted/examples directory which run through how this all works.

Running

data_loading.py

Will set up a FitTeD Data_Set class for the tidal disruption event AT2019dsg and do some processing (see code/paper for details).

Running

fitting_models.py

will show you how to generate FitTeD models, and fit them to data in various ways.

Switch the variables yes_i_want_to_run_a_chain and yes_i_want_to_find_a_best_fit to True if you want to do a proper analysis, although running the chain will take ~ 5 hours with current settings (on my laptop).

If you do run the chain, then

analysis.py

shows you some science results you can get from the fit.

Happy TDE-ing.

Cheers, Andy*, Ed, and Adam

P.S., any comments/questions, drop me a line.

Metadata

Release files for astro-fitted 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for astro-fitted 2.0.0
File Size Uploaded Provenance
astro_fitted-2.0.0.tar.gz 152.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for astro-fitted 2.0.0
File Interpreter ABI Platform
astro_fitted-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 320.0 kB

Release files / astro_fitted-2.0.0.tar.gz

Download URL astro_fitted-2.0.0.tar.gz
Size 152.1 kB
Tags Source
SHA-256 checksum
How to use checksums
65a79f5365c1f7a563c1dc91e8f10f314eecefe73840a0dadd84d4b8bcbf3011
BLAKE2b-256 checksum
How to use checksums
0c339bc305ee8d79c87aaaf7037e61f4ef173cd03169b4c3c5ac1579ef1df02e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.

Transparency log

Release files / astro_fitted-2.0.0-py3-none-any.whl

Download URL astro_fitted-2.0.0-py3-none-any.whl
Size 167.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d30929fb172ac8004e476e8cf89d11584add9bff4f7d9026493a0d80d808d321
BLAKE2b-256 checksum
How to use checksums
f173d49fc3739d0877fd3d7922bd3b649bb7597c673f1bb786fa34632eb33419
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.

Transparency log

Security for astro-fitted 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for astro_fitted-2.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page