-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a61656a
commit faff5f0
Showing
5 changed files
with
41 additions
and
4 deletions.
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
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 |
---|---|---|
|
@@ -5,4 +5,3 @@ Code reference | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
userapi |
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ Getting started | |
:maxdepth: 2 | ||
|
||
installation | ||
userapi | ||
examples |
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 |
---|---|---|
@@ -1,5 +1,42 @@ | ||
======== | ||
User API | ||
======== | ||
Qpformat supports several file formats | ||
(:py:class:`qpformat.file_formats.formats`), which are | ||
divided into :py:class:`qpformat.file_formats.SingleData` | ||
(the experimental data file format contains only one phase image) | ||
and :py:class:`qpformat.file_formats.SeriesData` (the experimental | ||
data file format supports multiple phase images). | ||
From these base classes, all data file formats are derived. The idea | ||
is that experimental data is not loaded into memory until the | ||
`get_qpimage` method is called which returns a | ||
:py:class:`qpimage.QPImage` object. | ||
|
||
Basic Usage | ||
----------- | ||
The file format type is determined automatically by qpformat. | ||
If the file format is implemented in qpformat, experimental | ||
data can be loaded with the :py:func:`qpformat.load_data` method. | ||
|
||
.. code-block:: python | ||
# Obtain a qpformat.file_formats.SingleData object | ||
# (the data is not loaded into memory, only the meta data is read) | ||
ds = qpformat.load_data(path="/path/to/SID PHA_xxx.tif") | ||
# Get the quantitative phase data (a qpimage.QPImage is returned) | ||
qpi = ds.get_qpimage() | ||
SingleData | ||
---------- | ||
.. autoclass:: qpformat.file_formats.SeriesData | ||
:inherited-members: | ||
|
||
SeriesData | ||
---------- | ||
.. autoclass:: qpformat.file_formats.SeriesData | ||
:members: | ||
|
||
Constants | ||
--------- | ||
.. autodata:: qpformat.file_formats.formats |
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