Will Grant
Will Grant
NB: depends on #440. ## Motivation and Context In order to inline cached functions we must store the native and llvm layer intermediates, along with the complexities. This will reduce...
## Test: ```python from typed_python import Entrypoint @Entrypoint def f(x): import os.path return os.path.basename(x) print(f('test/test2/test3.py')) ``` ## Expected behaviour prints 'test3.py' ## Actual behaviour Error thrown by `importlib` - `AttributeError:...
Given three files: ```python #module_1.py from typed_python import Alternative, SerializationContext, Entrypoint def clone(x): return SerializationContext().deserialize(SerializationContext().serialize(x)) @Entrypoint def test_alternative_hashing(): A = Alternative("A", A=dict(a=int)) print('A from module 1', A, 'clones to', clone(A))...
This plugin lets you calculate the Gini coefficient measuring the inequality of pixel intensities, following the [calculatemoments.py](https://github.com/CellProfiler/CellProfiler-plugins/blob/master/active_plugins/calculatemoments.py) code. Whether this is broadly useful is unclear, but it's been very helpful...
Fixes #207 and #206. 1. The function `get_object_moment` was not correct, since it failed to use the labels. What it was instead doing was getting a mask of all pixels...