Skip to content

Commit

Permalink
added to docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
paskino committed Jul 31, 2023
1 parent 99c2c50 commit 5302f23
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Wrappers/Python/ccpi/viewer/ui/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ class RawInputDialog(FormDialog):
- data type
- endianness
- fortran ordering
The dialog can let the user preview the data and verify that it is correct.
Example:
--------
One can instantiate this dialog and reduce the supported types by overriding the
default supported_types with SetSupportedTypes:
>>> dialog = RawInputDialog(parent, fname)
>>> dialog.setSupportedTypes(['float32', 'float64'])
'''

supported_types = [ np.dtype(f) for f in ['int8', 'uint8', 'int16', 'uint16', \
Expand Down

0 comments on commit 5302f23

Please sign in to comment.