radiation 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/README.md +4 -1
- data/lib/radiation/spectrum.rb +11 -1
- data/lib/radiation/version.rb +1 -1
- data/radiation.gemspec +2 -1
- data/samples/B0-Ra226.spc +0 -0
- data/samples/B0-Ra226.xml +4721 -0
- data/samples/calibration_from_hdtv_xml.rb +8 -0
- data/spec/radiation_spec.rb +5 -1
- metadata +23 -6
data/spec/radiation_spec.rb
CHANGED
@@ -61,6 +61,10 @@ describe Radiation do
|
|
61
61
|
Radiation::Spectrum.new(peaks: peaks, source: source ).calibrate.calibration[0].should be_a_kind_of(Plusminus::PlusminusFloat)
|
62
62
|
end
|
63
63
|
|
64
|
-
|
64
|
+
it "can read peaks from hdtv xml data" do
|
65
|
+
expect { Radiation::Spectrum.new(source: source ).parse_hdtv("./samples/B0-Ra226.xml") }.to_not raise_error
|
66
|
+
Radiation::Spectrum.new(source: source ).parse_hdtv("./samples/B0-Ra226.xml").calibrate.calibration.should be == [0.311879195357135.pm(0.002317818766849388), 0.10022085942781585.pm(4.767016096075808e-07)]
|
67
|
+
end
|
65
68
|
|
69
|
+
end
|
66
70
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plusminus
|
@@ -56,16 +56,30 @@ dependencies:
|
|
56
56
|
name: linefit
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0
|
61
|
+
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ! '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: xml-simple
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: bundler
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,7 +149,10 @@ files:
|
|
135
149
|
- lib/radiation/spectrum.rb
|
136
150
|
- lib/radiation/version.rb
|
137
151
|
- radiation.gemspec
|
152
|
+
- samples/B0-Ra226.spc
|
153
|
+
- samples/B0-Ra226.xml
|
138
154
|
- samples/calibrate_a_spectrum.rb
|
155
|
+
- samples/calibration_from_hdtv_xml.rb
|
139
156
|
- samples/get_some_data.rb
|
140
157
|
- spec/radiation_spec.rb
|
141
158
|
- spec/spec_helper.rb
|