Skip to content

Commit

Permalink
Merge pull request #438 from GreenBankObservatory/issue_245
Browse files Browse the repository at this point in the history
Issue 245
  • Loading branch information
mpound authored Dec 9, 2024
2 parents 422097a + d1d3eb2 commit 7202974
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"astropy<6.1.0",
"astropy",
"ipython",
"jplephem",
"matplotlib",
Expand Down Expand Up @@ -183,7 +183,7 @@ src = ["src", "benchmark", "notebooks"]

[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests", "src", "docs"]
testpaths = ["tests", "src", "notebooks/examples"]
filterwarnings = [
"ignore::DeprecationWarning"
]
Expand Down
25 changes: 23 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --extra=dev --extra=nb --no-emit-trusted-host --output-file=requirements.txt pyproject.toml
Expand Down Expand Up @@ -47,7 +47,7 @@ asdf-unit-schemas==0.1.0
# asdf-wcs-schemas
asdf-wcs-schemas==0.2.0
# via gwcs
astropy==5.3.4
astropy==6.0.1
# via
# asdf-astropy
# dysh (pyproject.toml)
Expand Down Expand Up @@ -121,6 +121,11 @@ docutils==0.18.1
# myst-parser
# pydata-sphinx-theme
# sphinx
exceptiongroup==1.2.2
# via
# anyio
# ipython
# pytest
executing==2.0.1
# via stack-data
fastjsonschema==2.19.0
Expand Down Expand Up @@ -156,6 +161,7 @@ imagesize==1.4.1
importlib-metadata==6.8.0
# via
# asdf
# build
# jupyter-cache
# myst-nb
iniconfig==2.0.0
Expand Down Expand Up @@ -501,6 +507,8 @@ sphinx==7.2.6
# pydata-sphinx-theme
# sphinx-autobuild
# sphinx-book-theme
# sphinx-copybutton
# sphinx-design
# sphinx-inline-tabs
# sphinxcontrib-applehelp
# sphinxcontrib-devhelp
Expand All @@ -511,7 +519,10 @@ sphinx-autobuild==2021.3.14
# via dysh (pyproject.toml)
sphinx-book-theme==1.1.3
# via dysh (pyproject.toml)
sphinx-copybutton==0.5.2
# via dysh (pyproject.toml)
sphinx-design==0.6.0
# via dysh (pyproject.toml)
sphinx-inline-tabs==2023.4.21
# via dysh (pyproject.toml)
sphinxcontrib-applehelp==1.0.7
Expand Down Expand Up @@ -544,6 +555,15 @@ terminado==0.18.0
# jupyter-server-terminals
tinycss2==1.2.1
# via nbconvert
tomli==2.2.1
# via
# build
# coverage
# ipdb
# jupyterlab
# numpydoc
# pip-tools
# pytest
tornado==6.3.3
# via
# ipykernel
Expand Down Expand Up @@ -574,6 +594,7 @@ types-python-dateutil==2.8.19.14
# via arrow
typing-extensions==4.8.0
# via
# async-lru
# myst-nb
# pydata-sphinx-theme
# sqlalchemy
Expand Down
15 changes: 8 additions & 7 deletions src/dysh/util/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,13 +859,14 @@ def _select_from_mixed_kwargs(self, **kwargs):
self._base_select(**ukwargs, tag=tag)

def __deepcopy__(self, memo):
warnings.simplefilter("ignore", category=UserWarning)
cls = self.__class__
result = cls.__new__(cls)
memo[id(self)] = result
for k, v in self.__dict__.items():
setattr(result, k, deepcopy(v, memo))
warnings.resetwarnings()
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=UserWarning)
cls = self.__class__
result = cls.__new__(cls)
memo[id(self)] = result
for k, v in self.__dict__.items():
setattr(result, k, deepcopy(v, memo))
result._table = self._table.copy()
return result

def get(self, key):
Expand Down

0 comments on commit 7202974

Please sign in to comment.