Skip to content

Commit

Permalink
Update MANIFEST.in (#197)
Browse files Browse the repository at this point in the history
* Update MANIFEST.in

* Update MANIFEST.in

* Update MANIFEST.in

* Update MANIFEST.in

* Update MANIFEST.in

* Pre-execute notebooks

* Add codespell words to ignore

* Edit MANIFEST.in to exclude data_analysis notebooks

Because of problems related to the size of the package we need to exclude the example data. However, there is no currently available data source to download it from. Hence for now we need to exclude these notebooks from the release.

* Cleared outputs in data analysis notebooks

* Update MANIFEST.in

* Cleared cell data in Remove_lightleak and remove line in MANIFEST.in that pruned the example_data directory

* Updated Using_temperature_from_filter_ratio notebook to download data it uses

* Added lxml to requirements/docs.txt

* Added progress=False flag to Fido.fetch commands

* Added lxml to setup.cfg

* Added zeep to setup.cfg

* Added drms to setup.cfg

* Removed drms, lxml and zeep from setup.cfg and added sunpy[net] >= 3.0.0 under docs

---------

Co-authored-by: Jonathan Slavin <[email protected]>
Co-authored-by: Jonathan Slavin <[email protected]>
  • Loading branch information
3 people authored Oct 30, 2023
1 parent 691cf6c commit 56baa26
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 43 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ prune build
prune docs/_build
prune docs/api
prune tests

prune xrtpy/*/tests
global-exclude *.pyc *.o
40 changes: 7 additions & 33 deletions docs/notebooks/data_analysis/Deconvolving_XRT_images.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@
"metadata": {},
"outputs": [],
"source": [
"import pkg_resources\n",
"import sunpy.map\n",
"\n",
"from pathlib import Path"
"from pathlib import Path\n",
"from sunpy.net import attrs as a\n",
"from sunpy.net import Fido"
]
},
{
Expand All @@ -64,11 +65,11 @@
"metadata": {},
"outputs": [],
"source": [
"directory = pkg_resources.resource_filename(\n",
" \"xrtpy\", \"response/tests/data/temperature_from_filter_ratio_testing_files\"\n",
"result = Fido.search(\n",
" a.Time(\"2011-01-28 01:31:55\", \"2011-01-28 01:32:05\"), a.Instrument(\"xrt\")\n",
")\n",
"\n",
"data_files = sorted(Path(directory).glob(\"L1_XRT20110128_*.*.fits\"))"
"data_files = Fido.fetch(result, progress=False)"
]
},
{
Expand All @@ -80,7 +81,7 @@
"source": [
"file1 = data_files[1]\n",
"file2 = data_files[0]\n",
"print(\"Files used:\\n\", file1.name, \"\\n\", file2.name)"
"print(\"Files used:\\n\", file1, \"\\n\", file2)"
]
},
{
Expand Down Expand Up @@ -117,7 +118,7 @@
")\n",
"print(\n",
" \"\\n File 1 used:\\n\",\n",
" file1.name,\n",
" file1,\n",
" \"\\n Observation date:\",\n",
" map1.fits_header[\"DATE_OBS\"],\n",
" map1.fits_header[\"TIMESYS\"],\n",
Expand All @@ -134,7 +135,7 @@
"\n",
"print(\n",
" \"\\nFile 2 used:\\n\",\n",
" file2.name,\n",
" file2,\n",
" \"\\n Observation date:\",\n",
" map2.fits_header[\"DATE_OBS\"],\n",
" map2.fits_header[\"TIMESYS\"],\n",
Expand Down
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,17 @@ lines_between_types = 1
[tool.codespell]
skip = "*.genx,*.geny,*.png,*egg*,.git,.hypothesis,.nox,.tox,.idea,__pycache__,_build"
ignore-words-list = """
4rd,
bu,
circularly,
egde,
fo,
nd,
ons,
sav,
te
te,
tne,
ue
"""

[tool.gilesbot]
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ docs =
sphinx_automodapi
sphinx_rtd_theme >= 1.2
sphinxcontrib-bibtex >= 2.5
sunpy[net] >= 3.0.0
towncrier >= 22.12
developer =
# install everything for developers
Expand Down

0 comments on commit 56baa26

Please sign in to comment.