Skip to content
#

astronomy

Here are 1,870 public repositories matching this topic...

olebole
olebole commented Jun 9, 2021

Expected behavior

An bad unit argument in u.format.fits.Fits.to_string() should raise a TypeError (or a ValueError if the type is correct).

Actual behavior

It raises an UnboundLocalError

Steps to Reproduce

import astropy.units as u

u.format.Fits.to_string(None)

gives

Traceback (most recent call last):
  File "<stdin>", line 1, in <modul
hayesla
hayesla commented Jun 4, 2021

Description

As suggested from workshop, it would be nice to have the data units (e.g. cts, etc) printed on the .peek() histogram (pixel value plot) and maybe added to the colorbar of a map when plotted

or:

The units of a map are accessible via .unit. This is included in the peek colorbar, but not in the fancy html repr. It would be nice to include this too, maybe just as an additional

lightkurve
barentsen
barentsen commented Jan 22, 2021

We could look into using the diskcache package to cache MAST search operations:

https://pypi.org/project/diskcache/

The package is a disk-based key-value store which makes it easy to specify an expiration time for each entry. This would allow us to e.g. cache search queries for 24 hours, which would significantly speed up searches across different Python processes, whilst largely avoiding

Core package to analyze gravitational-wave data, find signals, and study their parameters. This package was used in the first direct detection of gravitational waves (GW150914), and is used in the ongoing analysis of LIGO/Virgo data.

  • Updated Jun 4, 2021
  • Python

Improve this page

Add a description, image, and links to the astronomy topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the astronomy topic, visit your repo's landing page and select "manage topics."

Learn more