You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes an image will not appear in an RGB stack. You won't see a thumbnail and the histogram has a range of 0-6. When I had this recently I inspected the returned data for file cpt0m439-sq39-20241108-0111-e91:
The error is :
ValueError at /api/analysis/raw-data/
`bins` must increase monotonically, when an array
And the stack trace is
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/usr/local/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/datalab/datalab/datalab_session/views.py", line 52, in post
output = raw_data(input)
File "/datalab/datalab/datalab_session/analysis/raw_data.py", line 49, in raw_data
histogram, bin_edges = np.histogram(samples, bins=bins)
File "/usr/local/lib/python3.10/site-packages/numpy/lib/histograms.py", line 780, in histogram
bin_edges, uniform_bins = _get_bin_edges(a, bins, range, weights)
File "/usr/local/lib/python3.10/site-packages/numpy/lib/histograms.py", line 431, in _get_bin_edges
raise ValueError(
The text was updated successfully, but these errors were encountered:
Sometimes an image will not appear in an RGB stack. You won't see a thumbnail and the histogram has a range of 0-6. When I had this recently I inspected the returned data for file
cpt0m439-sq39-20241108-0111-e91
:The error is :
And the stack trace is
The text was updated successfully, but these errors were encountered: