mergechannels 0.1.1__cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl → 0.1.2__cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mergechannels might be problematic. Click here for more details.
- mergechannels/__init__.py +4 -4
- mergechannels/__init__.pyi +1 -1
- mergechannels/_internal.py +4 -15
- mergechannels/mergechannels.cpython-310-i386-linux-gnu.so +0 -0
- {mergechannels-0.1.1.dist-info → mergechannels-0.1.2.dist-info}/METADATA +10 -7
- mergechannels-0.1.2.dist-info/RECORD +11 -0
- {mergechannels-0.1.1.dist-info → mergechannels-0.1.2.dist-info}/licenses/LICENSE +1 -1
- mergechannels-0.1.1.dist-info/RECORD +0 -11
- {mergechannels-0.1.1.dist-info → mergechannels-0.1.2.dist-info}/WHEEL +0 -0
mergechannels/__init__.py
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
from .mergechannels import ( # type: ignore
|
|
3
3
|
apply_color_map,
|
|
4
4
|
apply_colors_and_merge_nc,
|
|
5
|
-
)
|
|
5
|
+
)
|
|
6
6
|
|
|
7
7
|
from ._internal import merge
|
|
8
8
|
|
|
9
9
|
__all__ = [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
'apply_color_map',
|
|
11
|
+
'apply_colors_and_merge_nc',
|
|
12
|
+
'merge',
|
|
13
13
|
]
|
mergechannels/__init__.pyi
CHANGED
mergechannels/_internal.py
CHANGED
|
@@ -40,19 +40,8 @@ def merge(
|
|
|
40
40
|
f'Expected every array to have the same dtype, got {arr_dtypes}'
|
|
41
41
|
)
|
|
42
42
|
# endregion
|
|
43
|
-
|
|
44
|
-
match n_arrs:
|
|
45
|
-
case 1:
|
|
46
|
-
return apply_color_map(arr=arrs[0], cmap_name=colors[0])
|
|
47
|
-
case _:
|
|
48
|
-
return apply_colors_and_merge_nc(arrs, colors, blending)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
43
|
|
|
44
|
+
if n_arrs == 1:
|
|
45
|
+
return apply_color_map(arr=arrs[0], cmap_name=colors[0])
|
|
46
|
+
else:
|
|
47
|
+
return apply_colors_and_merge_nc(arrs, colors, blending)
|
|
Binary file
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mergechannels
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
7
|
Classifier: License :: OSI Approved :: MIT License
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
10
9
|
Classifier: Programming Language :: Python :: 3.9
|
|
11
10
|
Classifier: Programming Language :: Python :: 3.10
|
|
12
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
-
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Requires-Dist: numpy>1.25.0
|
|
15
15
|
License-File: LICENSE
|
|
16
16
|
License: MIT
|
|
17
|
-
Requires-Python: >=3.
|
|
17
|
+
Requires-Python: >=3.9, <=3.13
|
|
18
18
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
19
19
|
|
|
20
20
|
[](https://github.com/zacswider/mergechannels/actions/workflows/CI.yml)
|
|
21
|
-

|
|
22
|
+

|
|
22
23
|

|
|
23
24
|
|
|
24
25
|
# mergechannels
|
|
@@ -59,7 +60,8 @@ plt.show()
|
|
|
59
60
|
print(colorized.shape, colorized.dtype)
|
|
60
61
|
>> (512, 512, 3) uint8
|
|
61
62
|
```
|
|
62
|
-

|
|
63
65
|
|
|
64
66
|
|
|
65
67
|
### apply a different colormap to each channel
|
|
@@ -93,7 +95,7 @@ d.imshow(
|
|
|
93
95
|
fig.tight_layout()
|
|
94
96
|
plt.show()
|
|
95
97
|
```
|
|
96
|
-

|
|
97
99
|
|
|
98
100
|
|
|
99
101
|
## Roadmap
|
|
@@ -110,3 +112,4 @@ mergechannels is currently incredibly simple. It can apply one or more colormaps
|
|
|
110
112
|
There are other great colormapping libraries available (e.g., [microfilm](https://github.com/guiwitz/microfilm), [cmap](https://github.com/pyapp-kit/cmap)) that are more feature-rich than this one, but which don't address my goals. My hope is that this project can fill an un-met niche and otherwise maintain full compatibility with these and similar libraries.
|
|
111
113
|
|
|
112
114
|
This project incorporates a number of colormaps that were hand-crafted by Christophe Leterrier and were originally distributed here under the MIT license: https://github.com/cleterrier/ChrisLUTs
|
|
115
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
mergechannels-0.1.2.dist-info/METADATA,sha256=fdx3XuAlrCeScx655leoDJJEMtrZQ2-K2tX--JalIAI,4676
|
|
2
|
+
mergechannels-0.1.2.dist-info/WHEEL,sha256=tlrP2H0xLcVZqBsMAXbRjhguppDrsj2PGWejyC7NYIs,121
|
|
3
|
+
mergechannels-0.1.2.dist-info/licenses/LICENSE,sha256=csvD60rgtSorbYEM3f8867qNyPCzmIXyFNj8h01Bd6c,1071
|
|
4
|
+
mergechannels/_luts.py,sha256=DxwCMBnAAJc1ZX-D4cq8HabW-sLuBQpUqOWMWXqt_84,1035
|
|
5
|
+
mergechannels/_internal.py,sha256=Abzeacre5CQOcWn9WDIVuxFdEjTLIudEWQn8EsiH3oE,1243
|
|
6
|
+
mergechannels/__init__.pyi,sha256=lSMX8eip_zkzoJPJKvxvAhOsewwagoAhS9H5gXJ2Da8,711
|
|
7
|
+
mergechannels/__init__.py,sha256=jy8Qd3TOQ0mm-K64snjOqjdDQiSJ3gWjOjGZrliYy6k,222
|
|
8
|
+
mergechannels/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
mergechannels/_blending.py,sha256=mE5Cr9wvVJRcwfymg_UUZUjdIKx2mldfLU8QJT95bVM,84
|
|
10
|
+
mergechannels/mergechannels.cpython-310-i386-linux-gnu.so,sha256=m5bSYkE0KkOw3N8iTKxGt-4hWj3KTOqE5adZtUnD_YA,815576
|
|
11
|
+
mergechannels-0.1.2.dist-info/RECORD,,
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
mergechannels-0.1.1.dist-info/METADATA,sha256=SBF12qNSkvavAvXpnM0ej--oF_wZFwGaKqJo7aC5d8U,4520
|
|
2
|
-
mergechannels-0.1.1.dist-info/WHEEL,sha256=tlrP2H0xLcVZqBsMAXbRjhguppDrsj2PGWejyC7NYIs,121
|
|
3
|
-
mergechannels-0.1.1.dist-info/licenses/LICENSE,sha256=R5es2fadg5bQoUJCJlcU36nDOAG6Te2XtsfysfTT_xY,1070
|
|
4
|
-
mergechannels/_luts.py,sha256=DxwCMBnAAJc1ZX-D4cq8HabW-sLuBQpUqOWMWXqt_84,1035
|
|
5
|
-
mergechannels/_internal.py,sha256=61RV6adhxkdqevanP06lpmONweppc6z5j8HTNkZq3uo,1267
|
|
6
|
-
mergechannels/__init__.pyi,sha256=yKPkFwpgY2pMlEXj6LvwLr7f9t0bcGnu5i9eMSeSlWo,710
|
|
7
|
-
mergechannels/__init__.py,sha256=Tj-1QoMYkvDi-Bew6N2kbKrOhtgo4kq61_vmnHacp3o,224
|
|
8
|
-
mergechannels/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
mergechannels/_blending.py,sha256=mE5Cr9wvVJRcwfymg_UUZUjdIKx2mldfLU8QJT95bVM,84
|
|
10
|
-
mergechannels/mergechannels.cpython-310-i386-linux-gnu.so,sha256=Dg-6RD_WKM2Ek-wpA0EjxkzsXNZ9hEcq9pPdTSGrYzs,815596
|
|
11
|
-
mergechannels-0.1.1.dist-info/RECORD,,
|
|
File without changes
|