-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,39 @@ | ||
repos: | ||
# The warnings/errors we check for here are: | ||
# E901 - SyntaxError or IndentationError | ||
# E902 - IOError | ||
# F822 - undefined name in __all__ | ||
# F823 - local variable name referenced before assignment | ||
# Others are taken care of by autopep8 | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 5.0.2 | ||
- repo: https://github.com/myint/docformatter | ||
rev: v1.4 | ||
hooks: | ||
- id: flake8 | ||
args: | ||
[ | ||
"--count", | ||
"--select", | ||
"E901,E902,F822,F823", | ||
] | ||
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*|.rst|.md|cm/__init__.py|sunpy/extern|sunpy/visualization/colormaps/color_tables.py)$" | ||
- id: docformatter | ||
args: [--in-place, --pre-summary-newline, --make-summary-multi] | ||
- repo: https://github.com/myint/autoflake | ||
rev: v1.4 | ||
hooks: | ||
- id: autoflake | ||
args: | ||
[ | ||
"--in-place", | ||
"--remove-all-unused-imports", | ||
"--remove-unused-variable", | ||
] | ||
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*|.rst|.md|__init__.py|sunpy/extern|docs/conf.py)$" | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.10.1 | ||
hooks: | ||
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable'] | ||
exclude: ".*(.fits|.fts|.fit|.txt|tca.*|extern.*|.rst|.md|__init__.py|docs/conf.py)$" | ||
- repo: https://github.com/psf/black | ||
rev: 22.6.0 | ||
hooks: | ||
- id: black | ||
exclude: ".*(.fits|.fts|.fit|.txt|.csv)$" | ||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
args: ["--sp", "setup.cfg"] | ||
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*|.rst|.md|cm/__init__.py|sunpy/extern|docs/conf.py)$" | ||
- repo: https://github.com/pre-commit/mirrors-autopep8 | ||
rev: v1.6.0 | ||
hooks: | ||
- id: autopep8 | ||
args: ["--in-place","--max-line-length", "200"] | ||
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*|.rst|.md|cm/__init__.py|sunpy/extern|sunpy/visualization/colormaps/color_tables.py)$" | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
exclude: ".*(.fits|.fts|.fit|.txt|.csv)$" | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-ast | ||
- id: check-case-conflict | ||
- id: trailing-whitespace | ||
exclude: ".*(.fits|.fts|.fit|.header|.txt)$" | ||
exclude: ".*(.fits|.fts|.fit|.txt|.csv)$" | ||
- id: mixed-line-ending | ||
exclude: ".*(.fits|.fts|.fit|.txt|.csv)$" | ||
- id: end-of-file-fixer | ||
exclude: ".*(.fits|.fts|.fit|.txt|.csv)$" | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: check-added-large-files | ||
args: ['--enforce-all','--maxkb=1054'] | ||
- id: end-of-file-fixer | ||
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*)$" | ||
- id: mixed-line-ending | ||
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*)$" | ||
|
||
ci: | ||
autofix_prs: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
0.1.0 (2022-08-04) | ||
================== | ||
|
||
Features | ||
-------- | ||
|
||
- Creation of :class:`~sunkit_pyvista.plotter.SunpyPlotter` class which allows for plotting of a :class:`~sunpy.map.GenericMap` through pyvista. (`#4 <https://github.com/sunpy/sunkit-pyvista/pull/4>`__) | ||
- Adds :meth:`~sunkit_pyvista.plotter.SunpyPlotter.set_camera_coordinate` which allows for specifying the initial camera coordinates. (`#10 <https://github.com/sunpy/sunkit-pyvista/pull/10>`__) | ||
- Added :meth:`~sunkit_pyvista.plotter.SunpyPlotter.plot_field_lines` method which allows for plotting of magnetic field lines from `pfsspy` through pyvista. (`#12 <https://github.com/sunpy/sunkit-pyvista/pull/12>`__) | ||
- Adds :meth:`~sunkit_pyvista.plotter.SunpyPlotter.set_view_angle` which allows for setting of the camera's width/view angle. (`#16 <https://github.com/sunpy/sunkit-pyvista/pull/16>`__) | ||
- Adds :meth:`~sunkit_pyvista.plotter.SunpyPlotter.plot_quadrangle` which allows for drawing a quadrangle defined | ||
by coordinates passed to it. (`#17 <https://github.com/sunpy/sunkit-pyvista/pull/17>`__) | ||
- Adds :meth:`~sunkit_pyvista.plotter.SunpyPlotter._add_mesh_to_dict` stores each mesh in a dictionary for later access. (`#24 <https://github.com/sunpy/sunkit-pyvista/pull/24>`__) | ||
- :meth:`~sunkit_pyvista.plotter.SunpyPlotter.plot_map` accepts the keyword ``clip_interval`` as argument, which clips the data | ||
according to the percentile interval bounded by the two numbers. (`#26 <https://github.com/sunpy/sunkit-pyvista/pull/26>`__) | ||
- ``plot_line()`` is renamed to :meth:`~sunkit_pyvista.plotter.SunpyPlotter.plot_coordinates` | ||
which also allows for a sphere with given ``radius`` to be plotted if a single coordinate is passed to it. (`#29 <https://github.com/sunpy/sunkit-pyvista/pull/29>`__) | ||
- Added :meth:`~sunkit_pyvista.plotter.SunpyPlotter.save` method which allows for saving of plots to a vtm file. (`#37 <https://github.com/sunpy/sunkit-pyvista/pull/37>`__) | ||
- Allows for figure tests to be performed with `pytest`. (`#38 <https://github.com/sunpy/sunkit-pyvista/pull/38>`__) | ||
- Adds :meth:`~sunkit_pyvista.plotter.SunpyPlotter.plot_limb` which allows for drawing a limb as seen by the map's observer. (`#59 <https://github.com/sunpy/sunkit-pyvista/pull/59>`__) | ||
- Allows user to specify color via a color function to :meth:`~sunkit_pyvista.plotter.SunpyPlotter.plot_field_lines`. (`#70 <https://github.com/sunpy/sunkit-pyvista/pull/70>`__) | ||
- Added narrative documentation for sunkit-pyvista. (`#84 <https://github.com/sunpy/sunkit-pyvista/pull/84>`__) | ||
|
||
|
||
Bug Fixes | ||
--------- | ||
|
||
- Adds parenthesis to fix check in :meth:`~sunkit_pyvista.plotter.SunpyPlotter.set_view_angle`. (`#34 <https://github.com/sunpy/sunkit-pyvista/pull/34>`__) | ||
- Fixes error while loading color map in :meth:`~sunkit_pyvista.plotter.SunpyPlotter.load`. (`#55 <https://github.com/sunpy/sunkit-pyvista/pull/55>`__) | ||
|
||
|
||
Internal Changes | ||
---------------- | ||
|
||
- Increases test converage for :class:`~sunkit_pyvista.plotter.SunpyPlotter`. (`#23 <https://github.com/sunpy/sunkit-pyvista/pull/23>`__) | ||
- Rearranged existing examples and added an example brightest pixel with :meth:`~sunkit_pyvista.plotter.SunpyPlotter.plot_coordinates`. (`#30 <https://github.com/sunpy/sunkit-pyvista/pull/30>`__) | ||
- :meth:`~sunkit_pyvista.plotter.SunpyPlotter.plot_quadrangle` uses a :meth`~pyvista.utilities.Spline` for combining the individual points. (`#52 <https://github.com/sunpy/sunkit-pyvista/pull/52>`__) | ||
- Adds an example using :meth:`~sunpy.coordinates.frames.Helioprojective.assume_spherical_screen`. (`#69 <https://github.com/sunpy/sunkit-pyvista/pull/69>`__) | ||
- Changed the manner that colors or colormaps are saved. | ||
Changed default of meshes to be white. (`#73 <https://github.com/sunpy/sunkit-pyvista/pull/73>`__) | ||
- Removes colorbars when displaying plots. (`#79 <https://github.com/sunpy/sunkit-pyvista/pull/79>`__) |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import pyvista | ||
|
||
pyvista.global_theme.background = 'white' | ||
pyvista.global_theme.background = "white" | ||
pyvista.global_theme.window_size = [600, 600] | ||
pyvista.global_theme.antialiasing = True | ||
pyvista.global_theme.jupyter_backend = 'pythreejs' | ||
pyvista.global_theme.jupyter_backend = "pythreejs" |