We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As noted by the APS USAXS, consider this algorithm to access scalar values in HDF5 files:
if dataset.shape == (1, ): # historical representation of scalar value value = dataset[0] elif dataset.shape == (): # scalar representation value = dataset.value else: # array of some sort value = numpy.array(dataset)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As noted by the APS USAXS, consider this algorithm to access scalar values in HDF5 files:
The text was updated successfully, but these errors were encountered: