Skip to content

Commit

Permalink
fix: do not allow intensity values less than zero for SingleTifPhasics
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Oct 12, 2018
1 parent 5982bae commit e6a7be7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.4.1
- fix: do not allow intensity values less than zero for SingleTifPhasics
0.4.0
- feat: extract meta data from QPSeries/QPImage data files
0.3.5
Expand Down
1 change: 1 addition & 0 deletions qpformat/file_formats/single_tif_phasics.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def get_qpimage_raw(self, idx=0):
isamp = inttags["max_sample_value"].value
blc = INTENSITY_BASELINE_CLAMP
inten = tf.pages[0].asarray() * (imax - imin) / isamp + imin - blc
inten[inten < 0] = 0
# Phase
# The SID4Bio records two phase images, one in wavelengths and
# one in nanometers. Surprisingly, these two phase images are
Expand Down

0 comments on commit e6a7be7

Please sign in to comment.