Skip to content

Imagebrowser gives runtime warning after trying to do reduction #168

@rohanrajpal

Description

@rohanrajpal

I was trying out the example notebook using the default sample data, sequentially running all the commands.I get a runtime warning with this command

fits_browser = ImageBrowser(images, keys=['imagetyp', 'exposure'])
fits_browser.display()

The warning is

/home/rohan/anaconda3/lib/python3.6/site-packages/astropy/visualization/mpl_normalize.py:117: RuntimeWarning: divide by zero encountered in true_divide
  np.true_divide(values, self.vmax - self.vmin, out=values)
/home/rohan/anaconda3/lib/python3.6/site-packages/astropy/visualization/mpl_normalize.py:117: RuntimeWarning: invalid value encountered in true_divide
  np.true_divide(values, self.vmax - self.vmin, out=values)

This only happens for imagetyp: BIAS .Other imagetyp fit files are shown correctly.
issuebias

This is probably related to Issue #162. The error there is different than I'm getting here but it's on the same command(probably).
Python version:3.6.4
Reducer version:0.4.1
IPython 6.2.1
Jupyter 4.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions