Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@SimonHeybrock
Copy link
Member

Not intended for merging, as this represents a loader for a file that is subject to change.

@celinedurniak Is this useful? I reverse-engineered what I think is the correct voxel order, and reordered voxels to something more sensible. I presume (hope?) that the order in the file will be fixed?

dg = f['entry'][()]
if 'mantel' in dg['instrument']:
dg['instrument']['mantle'] = dg['instrument'].pop('mantel')
# The file has (counter:2, hemisphere:2, module:5, segment:6, wire:32, strip:128)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • What is "hemisphere"?
  • Comment: The number of strips, modules, wires depends on the detectors (endcap backward, forward, high resolution) and on the configuration (Full scope or Day 1)

Copy link
Member Author

@SimonHeybrock SimonHeybrock Aug 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Hemisphere is negative or positive Z. The file you shared seems to split wires into two parts, so there are only 128 strips per wire.
  • Yes, this is processing only the mantle. I hope we can fix the order in the file such that the actual shape will be easier to guess (guessing is all we can do as it was decided that we cannot get this information from the NeXus file).

@SimonHeybrock
Copy link
Member Author

I will update this for the latest file, but move it into essdiffraction.

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

Successfully merging this pull request may close these issues.

3 participants