Master h5 fails in dials.find_spots while nxs works as expected

Đang mở
#3,092 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
22/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

The traceback ends in get_raw_data in dxtbx/nexus/__init__.py at sliced_outer = data[index], reached through FormatNXmx.py. Compare how the .nxs and master.h5 paths index the same frame range, and check the frame count against the index being requested. Done means dials.find_spots runs on the imported master.h5 without the out-of-range error.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

A user reported an issue while trying to reprocess some data collected at Diamond (I03) in 2020. They reported that dials.find_spots would crash out with an error with versions of dials after 3.10.

I was able to recreate the error with the following dials commands with version 3.26:
dials.import data_master.h5
dials.find_spots imported.expt
^ This gives errors

However, all worked as intended (with no issues) when using the available .nxs file.
dials.import data.nxs
dials.find_spots imported.expt
^This is happy dials

The error given when using the master.h5 file is copied below.

easy_mp crash detected; subprocess trace: ----
Traceback (most recent call last):
  File "/dls_sw/apps/dials/dials-v3-26-0-2/modules/cctbx_project/libtbx/scheduling/job_scheduler.py", line 74, in job_cycle
    value = target( *args, **kwargs )
  File "/dls_sw/apps/dials/dials-v3-26-0-2/modules/dials/src/dials/util/mp.py", line 56, in __call__
    return [self.__function(item) for item in iterable]
            ~~~~~~~~~~~~~~~^^^^^^
  File "/dls_sw/apps/dials/dials-v3-26-0-2/modules/dials/src/dials/algorithms/spot_finding/finder.py", line 264, in __call__
    result = self.function(task)
  File "/dls_sw/apps/dials/dials-v3-26-0-2/modules/dials/src/dials/algorithms/spot_finding/finder.py", line 87, in __call__
    image = self.imageset.get_corrected_data(index)
  File "/dls_sw/apps/dials/dials-v3-26-0-2/modules/dxtbx/src/dxtbx/format/FormatMultiImage.py", line 47, in read
    return format_instance.get_raw_data(index)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "/dls_sw/apps/dials/dials-v3-26-0-2/modules/dxtbx/src/dxtbx/format/FormatNXmx.py", line 164, in get_raw_data
    raw_data = dxtbx.nexus.get_raw_data(
        nxdata, nxdetector, index, bit_depth=self._bit_depth_readout
    )
  File "/dls_sw/apps/dials/dials-v3-26-0-2/modules/dxtbx/src/dxtbx/nexus/__init__.py", line 585, in get_raw_data
    sliced_outer = data[index]
                   ~~~~^^^^^^^
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "/dls_sw/apps/dials/dials-v3-26-0-2/conda_base/lib/python3.13/site-packages/h5py/_hl/dataset.py", line 840, in __getitem__
    return self._fast_reader.read(args)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "h5py/_selector.pyx", line 360, in h5py._selector.Reader.read
  File "h5py/_selector.pyx", line 150, in h5py._selector.Selector.apply_args
Index (1000) out of range for (0-999)
----------------------------------------------
Ngôn ngữ chính
Python
Star
107
Fork
61
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dials/dials

Tất cả issue của dials/dials

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.