Hi,
I have written a script to try to combine five images into a three channels
RGB images<http://dip4fish.blogspot.com/2011/05/trying-to-combine-mfish-images-into-rg…>
.
The resulting RGB image looks like a grey scale image instead of a color
one.
I have three np.array Rnorm, Gnorm, Bnorm which are copied into a rgb array:
*rgb = np.zeros((shape[0],shape[1],3),dtype=float)
mxr=np.max(R)
mxg=np.max(G)
mxb=np.max(B)
Rnorm=np.uint8((255*(R/mxr)))Gnorm=np.uint8((255*(R/mxg)))Bnorm=np.…
[View More]uint8((255*(R/mxb)))#copy each RGB component in an RGB array
rgb[:,:,0]=Rnorm
rgb[:,:,1]=Gnorm
rgb[:,:,2]=Bnorm*
*pylab.subplot(224, aspect='equal',frameon=False, xticks=[], yticks=[])
pylab.imshow(rgb)
pylab.show()*
Any advice?
Thank you
Jean-Patrick
[View Less]
Hi All,
On behalf of the NumPy team, I am pleased to announce the release of
NumPy 1.23.2. NumPy 1.23.2 is a maintenance release that fixes bugs
discovered after the 1.23.1 release. Notable features are:
- Typing changes needed for Python 3.11
- Wheels for Python 3.11.0rc1
The Python versions supported for this release are 3.8-3.11. Wheels can be
downloaded from PyPI <https://pypi.org/project/numpy/1.23.2>; source
archives, release notes, and wheel hashes are available on Github
…
[View More]<https://github.com/numpy/numpy/releases/tag/v1.23.2>.
*Contributors*
A total of 9 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
- Alexander Grund +
- Bas van Beek
- Charles Harris
- Jon Cusick +
- Matti Picus
- Michael Osthege +
- Pal Barta +
- Ross Barnowski
- Sebastian Berg
*Pull requests merged*
A total of 15 pull requests were merged for this release.
- #22030: ENH: Add ``__array_ufunc__`` typing support to the ``nin=1``
ufuncs
- #22031: MAINT, TYP: Fix ``np.angle`` dtype-overloads
- #22032: MAINT: Do not let ``_GenericAlias`` wrap the underlying
classes'...
- #22033: TYP,MAINT: Allow ``einsum`` subscripts to be passed via
integer...
- #22034: MAINT,TYP: Add object-overloads for the ``np.generic`` rich
comparisons
- #22035: MAINT,TYP: Allow the ``squeeze`` and ``transpose`` method to...
- #22036: BUG: Fix subarray to object cast ownership details
- #22037: BUG: Use ``Popen`` to silently invoke f77 -v
- #22038: BUG: Avoid errors on NULL during deepcopy
- #22039: DOC: Add versionchanged for converter callable behavior.
- #22057: MAINT: Quiet the anaconda uploads.
- #22078: ENH: reorder includes for testing on top of system
installations...
- #22106: TST: fix test_linear_interpolation_formula_symmetric
- #22107: BUG: Fix skip condition for test_loss_of_precision[complex256]
- #22115: BLD: Build python3.11.0rc1 wheels.
Cheers,
Charles Harris
[View Less]
I wrote a dplyr-like wrapper for Polars
<https://github.com/drhagen/tabeline/> that some of you might find
interesting.
Tabeline is in the early stages, but it already has a documentation website
<https://tabeline.drhagen.com/> and decent test coverage. It uses Polars
underneath to get the speed, but does a lot of work to smooth out Polars's
edge cases.
It can convert to/from Pandas and to/from Polars, so it is easy to slot
into an existing workflow.
Obviously, bug reports and …
[View More]other ideas are welcome!
[View Less]
Dear Pythonistas and solar power enthusiasts,
The maintainers are happy to announce a new release of pvlib python:
software for simulating performance of photovoltaic solar energy systems.
*See what's new for v0.9.2:*
** *https://pvlib-python.readthedocs.io/en/stable/whatsnew.html
*Releases are available from PyPI and the conda-forge channel:*
* https://pypi.org/project/pvlib/
* https://anaconda.org/conda-forge/pvlib
* https://anaconda.org/conda-forge/pvlib-python
*Note: you can now …
[View More]install from conda-forge using either "pvlib" or
"pvlib-python"*
*Read the Documentation:*
* https://pvlib-python.readthedocs.io/en/stable/index.html
*Report issues & contribute:*
* https://github.com/pvlib/pvlib-python
*Highlights:*
* Albedo can be entered as a column in weather DataFrame when running a
model chain. This can be used to enter a time series instead of just
monthly values.
* A new function calc_surface_orientation() returns tracker surface tilt
and azimuth when given tracker rotation and axis tilt.
* There's a new example in the gallery to calculate backside irradiance
using pvfactors.
* Dropped support for Python-3.6 and increased required pandas to v0.25.0
* A new build system that conforms to PEP 517 & PEP518
* There were several new contributors.
*Thank you for using pvlib python!*
--
Mark Mikofski, PhD (2005)
*Fiat Lux*
[View Less]
Hi All,
On behalf of the NumPy team, I am pleased to announce the release of
NumPy 1.23.3. NumPy 1.23.3 is a maintenance release that fixes bugs
discovered after the 1.23.2 release. There is no major theme for this
release, the main improvements are for some downstream builds and some
annotation corner cases. The Python versions supported for this release are
3.8-3.11. Wheels can be downloaded from PyPI
<https://pypi.org/project/numpy/1.23.3>; source archives, release notes,
and wheel …
[View More]hashes are available on Github
<https://github.com/numpy/numpy/releases/tag/v1.23.3>.
Note that we will move to MacOS 11 for the NumPy 1.23.4 release, the 10.15
version currently used will no longer be supported by our build
infrastructure at that point.
*Contributors*
A total of 16 people contributed to this release. People with a "+" by
their
names contributed a patch for the first time.
- Aaron Meurer
- Bas van Beek
- Charles Harris
- Ganesh Kathiresan
- Gavin Zhang +
- Iantra Solari+
- Jyn Spring 琴春 +
- Matti Picus
- Rafael Cardoso Fernandes Sousa
- Rafael Sousa +
- Ralf Gommers
- Rin Cat (鈴猫) +
- Saransh Chopra +
- Sayed Adel
- Sebastian Berg
- Serge Guelton
*Pull requests merged*
A total of 14 pull requests were merged for this release.
- #22136: BLD: Add Python 3.11 wheels to aarch64 build
- #22148: MAINT: Update setup.py for Python 3.11.
- #22155: CI: Test NumPy build against old versions of GCC(6, 7, 8)
- #22156: MAINT: support IBM i system
- #22195: BUG: Fix circleci build
- #22214: BUG: Expose heapsort algorithms in a shared header
- #22215: BUG: Support using libunwind for backtrack
- #22216: MAINT: fix an incorrect pointer type usage in f2py
- #22220: BUG: change overloads to play nice with pyright.
- #22221: TST,BUG: Use fork context to fix MacOS savez test
- #22222: TYP,BUG: Reduce argument validation in C-based
``__class_getitem__``
- #22223: TST: ensure ``np.equal.reduce`` raises a ``TypeError``
- #22224: BUG: Fix the implementation of numpy.array_api.vecdot
- #22230: BUG: Better report integer division overflow (backport)
Cheers,
Charles Harris
[View Less]