Skip to content

Allow different filetypes for timelapse#523

Merged
wtgee merged 1 commit intopanoptes:developfrom
wtgee:timelapse-update
Jul 8, 2018
Merged

Allow different filetypes for timelapse#523
wtgee merged 1 commit intopanoptes:developfrom
wtgee:timelapse-update

Conversation

@wtgee
Copy link
Copy Markdown
Member

@wtgee wtgee commented Jun 1, 2018

Small update to allow the timelapse to be created from different file types, e.g. png.

astropy installs a command line utility called fits2bitmap that outputs png files
by default.

One can:

fits2bitmap --percent 99.5 *.fits

to a directory of FITS files. Then, in a python console:

from pocs.utils.images import create_timelapse

dir_path = '/var/panoptes/images/fields/foo/bar'

create_timelapse(dir_path, file_type='png')

to get a simple timelapse.

…types, e.g. png.

astropy installs a command line utility called `fits2bitmap` that outputs png files
by default.

One can:

```
fits2bitmap --percent 99.5 *.fits
```

to a directory of FITS files. Then, in a python console:

```
from pocs.utils.images import create_timelapse

dir_path = '/var/panoptes/images/fields/foo/bar'

create_timelapse(dir_path, file_type='png')
```

to get a simple timelapse.
@wtgee wtgee requested a review from jamessynge June 1, 2018 11:23
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 1, 2018

Codecov Report

Merging #523 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #523   +/-   ##
========================================
  Coverage    70.33%   70.33%           
========================================
  Files           62       62           
  Lines         5418     5418           
  Branches       752      752           
========================================
  Hits          3811     3811           
  Misses        1398     1398           
  Partials       209      209
Impacted Files Coverage Δ
pocs/utils/images/__init__.py 77.07% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aef07d5...4608451. Read the comment docs.

@wtgee wtgee changed the title Update timelapse creation util Allow different filetypes for timelapse Jun 19, 2018
Copy link
Copy Markdown
Contributor

@jamessynge jamessynge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wtgee wtgee merged commit ff3e347 into panoptes:develop Jul 8, 2018
@wtgee wtgee deleted the timelapse-update branch July 8, 2018 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants