Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy.histogram ArrayMemoryError #124

Open
will-moore opened this issue May 17, 2023 · 0 comments
Open

numpy.histogram ArrayMemoryError #124

will-moore opened this issue May 17, 2023 · 0 comments

Comments

@will-moore
Copy link
Member

https://www.openmicroscopy.org/qa2/qa/feedback/32955/

Traceback (most recent call last):

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/omeroweb/decorators.py", line 538, in wrapped
retval = f(request, *args, **kwargs)

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/omero_parade/views.py", line 128, in filter_script
return module.get_script(request, filter_name, conn)

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/omero_parade/table_filters/omero_filters.py", line 84, in get_script
histogram, bin_edges = numpy.histogram(values, bins=bins)

File "<__array_function__ internals>", line 6, in histogram

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/numpy/lib/histograms.py", line 792, in histogram
bin_edges, uniform_bins = _get_bin_edges(a, bins, range, weights)

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/numpy/lib/histograms.py", line 448, in _get_bin_edges
endpoint=True, dtype=bin_type)

File "<__array_function__ internals>", line 6, in linspace

File "/opt/omero/web/venv3/lib64/python3.6/site-packages/numpy/core/function_base.py", line 128, in linspace
y = _nx.arange(0, num, dtype=dt).reshape((-1,) + (1,) * ndim(delta))

numpy.core._exceptions._ArrayMemoryError: Unable to allocate 2.19 TiB for an array with shape (300822149856,) and data type float64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant