Skip to content

Commit

Permalink
Update mem and clean modules
Browse files Browse the repository at this point in the history
  • Loading branch information
samaloney committed May 24, 2024
1 parent 3f5e31e commit 79558cf
Show file tree
Hide file tree
Showing 12 changed files with 576 additions and 501 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ repos:
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|.json)$|^CITATION.rst$"
- id: mixed-line-ending
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*)$"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.10.0"
hooks:
- id: mypy
additional_dependencies: [ "types-setuptools" ]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
Expand Down
2 changes: 1 addition & 1 deletion examples/rhessi.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
###############################################################################
# MEM

mem_map = mem(vis, shape=[129, 129] * apu.pixel, pixel=[2, 2] * apu.arcsec / apu.pix)
mem_map = mem(vis, shape=[129, 129] * apu.pixel, pixel_size=[2, 2] * apu.arcsec / apu.pix)
mem_map.plot()


Expand Down
2 changes: 1 addition & 1 deletion examples/stix.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
###############################################################################
# MEM

mem_map = mem(stix_vis, shape=[129, 129] * apu.pixel, pixel=[2, 2] * apu.arcsec / apu.pix)
mem_map = mem(stix_vis, shape=[129, 129] * apu.pixel, pixel_size=[2, 2] * apu.arcsec / apu.pix)
mem_map.plot()

###############################################################################
Expand Down
6 changes: 1 addition & 5 deletions xrayvision/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@
from xrayvision.version import __version__ # type: ignore
except ImportError:
__version__ = "unknown"
__all__ = []

from pkg_resources import resource_filename

SAMPLE_RHESSI_VISIBILITIES = resource_filename("xrayvision", "data/hsi_visibili_20131028_0156_20131028_0200_6_12.fits")
__all__: list[str] = []
Loading

0 comments on commit 79558cf

Please sign in to comment.