Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into undo
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Jun 6, 2023
2 parents 9b9ccff + c4ffb80 commit 5c327d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 8 additions & 5 deletions irispy/utils/wobble.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@


def wobble_movie(
filelist: list,
files: Union[list, str, Path],
*,
outdir: Union[str, Path] = "./",
trim: bool = False,
timestamp: bool = False,
timestamp: bool = True,
wobble_cadence: int = 180,
ffmpeg_path: Optional[Union[str, Path]] = None,
**kwargs,
Expand All @@ -38,16 +38,17 @@ def wobble_movie(
Parameters
----------
filelist : `list`
files : Union[list, str, Path]
Files to create a wobble movie from.
If a string or Path is passed, it will encapsulated in a list.
outdir : Union[str,Path], optional
Location to save the movie(s).
Defaults to the current working directory.
trim : `bool`, optional
Movie is trimmed to include only area that has data in all frames, by default False
timestamp : `bool`, optional
If `True`, will add a timestamp to the wobble movie.
Optional, defaults to `False`.
Optional, defaults to `True`.
wobble_cadence : `int`, optional
Sets the cadence of the wobble movie in seconds.
Optional, defaults to 180 seconds.
Expand Down Expand Up @@ -76,8 +77,10 @@ def wobble_movie(

mpl.rcParams["animation.ffmpeg_path"] = ffmpeg_path

if isinstance(files, (str, Path)):
files = [files]
filenames = []
for afile in filelist:
for afile in files:
data, header = fits.getdata(afile, header=True)
wcs = WCS(header)
numframes = header["NAXIS3"]
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ build-backend = 'setuptools.build_meta'

[project]
name = "irispy-lmsal"
provides = "irispy"
dynamic = ["version"]
description = "Provides tools to read and analyze data from the IRIS solar-observing satellite."
readme = "README.rst"
Expand Down

0 comments on commit 5c327d5

Please sign in to comment.