-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add reader for hamamatsu .img format #87
Merged
Merged
Changes from 18 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
dd3208d
Add initial version of file_reader for hamamatsu
pietsjoh f6050ec
Add changelog entry
pietsjoh 48b6034
Specify reader in hs.load()
pietsjoh 16e9fad
Implement code scanning suggestions
pietsjoh ac75d11
Add tests
pietsjoh 4a4ff30
Map metadata
pietsjoh 1bb2d48
Naming axes + force contiguous
pietsjoh 1926179
Add documentation
pietsjoh d33ca38
Incorporate feedback
pietsjoh db36184
Update docs
pietsjoh f22fec0
Add tests for photon count mode + shading file
pietsjoh e418834
Remove unused Enums
pietsjoh 05c2e67
Read data from correct start
pietsjoh ff7b427
Add option to load as uniform axes
pietsjoh 6879d2b
Fix: read correct positions in header/data
pietsjoh f3d1fa0
Move test data into data folder + update registry
pietsjoh 79d68ad
Fix codql warnings
pietsjoh ec1884e
Add review suggestions
pietsjoh 73cd7d6
Add use_uniform_signal_axis argument to docstring
pietsjoh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.. _hamamatsu-format: | ||
|
||
Hamamatsu | ||
--------- | ||
|
||
Reader for spectroscopy data saved in ``.img`` (ITEX) files from the HPD-TA | ||
(High Performance Digital Temporal Analyzer) or HiPic (High Performance image control) | ||
softwares from Hamamatsu, e.g. for streak cameras or high performance CCD cameras. | ||
|
||
If `LumiSpy <https://lumispy.org>`_ is installed, ``Luminescence`` will be | ||
used as the ``signal_type``. | ||
|
||
.. Note:: | ||
|
||
Reading files containing multiple channels or multiple images per channel | ||
is not implemented. | ||
|
||
API functions | ||
^^^^^^^^^^^^^ | ||
|
||
.. automodule:: rsciio.hamamatsu | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ big datasets is supported. | |
edax | ||
emd | ||
empad | ||
hamamatsu | ||
hspy | ||
image | ||
jeol | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from ._api import file_reader | ||
|
||
|
||
__all__ = [ | ||
"file_reader", | ||
] | ||
|
||
|
||
def __dir__(): | ||
return sorted(__all__) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add to
index.rst
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is added in
docs/supported_formats/index.rst
.