find_beads 0.9.6-java → 0.9.7-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/find_beads.rb CHANGED
@@ -372,7 +372,11 @@ module FindBeads
372
372
  normalization = if do_normalization then
373
373
  auto_00 = compute_single_bead_correlation(mask, im, ch0, ch0, cen, id, bead_radius, false)[:norm_corr]
374
374
  auto_11 = compute_single_bead_correlation(mask, im, ch1, ch1, cen, id, bead_radius, false)[:norm_corr]
375
- Math.sqrt(auto_00 * auto_11)*(auto_00.abs/auto_00)
375
+ begin
376
+ Math.sqrt(auto_00 * auto_11)*(auto_00.abs/auto_00)
377
+ rescue Math::DomainError
378
+ Float::NAN
379
+ end
376
380
  else
377
381
  1
378
382
  end
@@ -515,7 +519,7 @@ module FindBeads
515
519
  else
516
520
  met = IntensityPerPixelMetric.new
517
521
  q = met.quantify(mask, is)
518
- Java::edu.stanford.cfuller.imageanalysistools.frontend.LocalAnalysis.generateDataOutputString(q, nil)
522
+ Java::edu.stanford.cfuller.imageanalysistools.frontend.LocalAnalysis.generateDataOutputString(q, nil).strip.gsub(" ", ",")
519
523
  end
520
524
 
521
525
  write_output(fn, outdat, mask)
@@ -26,7 +26,7 @@
26
26
 
27
27
  module FindBeads
28
28
 
29
- VERSION = '0.9.6'
29
+ VERSION = '0.9.7'
30
30
 
31
31
  end
32
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: find_beads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  prerelease:
6
6
  platform: java
7
7
  authors: