Skip to content

Commit

Permalink
Merge pull request #22 from pkgw/parallel-fix
Browse files Browse the repository at this point in the history
pwkit/parallel.py: a fix for Python 3
  • Loading branch information
pkgw authored Sep 13, 2024
2 parents da54c93 + d455cfb commit 04fc5f6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 6 additions & 2 deletions .readthedocs_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ dependencies:
- numpydoc
- pandas
- pip
- python =3.10
- python =3.12
- scipy
- setuptools
- sphinx
- sphinx_rtd_theme
- sphinx-automodapi
# Work around an issue with v0.17 as seen in:
# https://github.com/WorldWideTelescope/pywwt/pull/375
# https://github.com/WorldWideTelescope/pywwt/commit/66480282c578353ea04d6716ca6015fec9370c44
# 0.18 is now available and may fix this.
- sphinx-automodapi=0.16
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ This is a collection of Peter Williams’ miscellaneous Python tools.
The online documentation contains [installation instructions]. The
documentation is very much a work in progress but [may be found here].

[installation instructions]: http://pwkit.readthedocs.org/en/latest/about/#installation
[may be found here]: http://pwkit.readthedocs.org/en/latest/
[installation instructions]: https://pwkit.readthedocs.io/en/latest/about.html#installation
[may be found here]: https://pwkit.readthedocs.io/en/latest/


## Citation
Expand Down Expand Up @@ -47,7 +47,7 @@ include after your Acknowledgments section would be:

See the [online documentation].

[online documentation]: http://pwkit.readthedocs.org/en/latest/about/#authors
[online documentation]: https://pwkit.readthedocs.io/en/latest/about.html#authors


## License
Expand Down
4 changes: 2 additions & 2 deletions ci/azure-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ parameters:
default:

- name: linux_310
vmImage: ubuntu-20.04
vmImage: ubuntu-latest
vars:
PYTHON_SERIES: "3.10"

- name: macos_310
vmImage: macos-11
vmImage: macos-latest
vars:
PYTHON_SERIES: "3.10"

Expand Down
2 changes: 1 addition & 1 deletion pwkit/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def __init__(self, chunksize=None):
pass

def get_map(self):
return VacuousContextManager(map)
return VacuousContextManager(lambda f, v: [f(x) for x in v])

def get_ppmap(self):
return VacuousContextManager(serial_ppmap)
Expand Down

0 comments on commit 04fc5f6

Please sign in to comment.