radiation 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4777bfcdb25af513bc85c5a8a87a9402d2c7116
4
- data.tar.gz: 8e38aeb601be484f3d3b9642d873ce7f95247881
3
+ metadata.gz: 62cc9266bcb80fa5110f836bb4e8d39b1e61eee7
4
+ data.tar.gz: 961ee354fb91a0df8f3b778192ef9bbb0dccd27b
5
5
  SHA512:
6
- metadata.gz: 3c36ef60bbad784228d316ba6a7253b8db45cb4c442ae3613d722cabdfe67ab8f13b119f23e56120ae1348b5a46ab53efc58f1e0c30df51f9cac44ebed237fca
7
- data.tar.gz: ba9770278d22456442c173032169457978bab3f12fd6f38088afc36ae6c8cb445699963d0e3ccf30fa7f5e65046c214d5cf8ea8623706fca68794bc8e626009e
6
+ metadata.gz: 7bdee29d2ca3221cd8161cbea6be4f7216442431381750605ed71e2c0e01078a9122c983e4eafec6ff3966cc8cb1ad269eb03326b18d0dc1f44edfee12b525dc
7
+ data.tar.gz: 1f90111d8f47ddb0a657cc666d893b55d63567a5e19bbef02df5ca45b4c240041e4ad09aee5cf5601b835406560364eef0587b6b66cfe03c0b9619c369b2e6be
data/.gitignore CHANGED
@@ -1,17 +1,17 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec CHANGED
@@ -1 +1 @@
1
- #--color
1
+ #--color
data/CHANGELOG.md CHANGED
@@ -1,12 +1,12 @@
1
- ## v0.0.3
2
-
3
- * Added basic parsing for hdtv xml files
4
- * Changed dependency for linefit
5
-
6
- ## v0.0.2
7
-
8
- * Added spectrum class with energy calibration options
9
-
10
- ## v0.0.1
11
-
12
- * initial release
1
+ ## v0.0.3
2
+
3
+ * Added basic parsing for hdtv xml files
4
+ * Changed dependency for linefit
5
+
6
+ ## v0.0.2
7
+
8
+ * Added spectrum class with energy calibration options
9
+
10
+ ## v0.0.1
11
+
12
+ * initial release
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
- source 'https://rubygems.org'
2
-
3
- #gem "linefit", git: "https://github.com/janmayer/linefit.git"
4
- # Specify your gem's dependencies in radiation.gemspec
5
- gemspec
1
+ source 'https://rubygems.org'
2
+
3
+ #gem "linefit", git: "https://github.com/janmayer/linefit.git"
4
+ # Specify your gem's dependencies in radiation.gemspec
5
+ gemspec
data/LICENSE.txt CHANGED
@@ -1,22 +1,22 @@
1
- Copyright (c) 2013 Jan Mayer
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright (c) 2013 Jan Mayer
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,45 +1,45 @@
1
- # Radiation
2
- [![Gem Version](https://badge.fury.io/rb/radiation.png)](http://badge.fury.io/rb/radiation)
3
- [![Build Status](https://travis-ci.org/janmayer/radiation.png?branch=master)](https://travis-ci.org/janmayer/radiation)
4
- [![Code Climate](https://codeclimate.com/github/janmayer/radiation.png)](https://codeclimate.com/github/janmayer/radiation)
5
-
6
- This gem provides easy access to energies and intensities from the decay of radioactive nuclei.
7
- Currently two data sources are accessible: Internal (see bib files in `./data/`) and recommended values
8
- by [Laboratoire National Henri Becquerel](http://www.nucleide.org/DDEP_WG/DDEPdata.htm).
9
-
10
- ## Example Usage
11
-
12
- ### Command line interface
13
-
14
- $> radiation
15
-
16
- ### In your ruby files:
17
-
18
- require "radiation"
19
- Radiation::Source.new(nuclide: "Ra-226").energies.collect{|e| e.value}
20
-
21
- See also files in `./samples/`.
22
-
23
- ## Planned features
24
-
25
- * Efficiency calibration for given peaks or spectra
26
- * Better access to resources
27
-
28
-
29
- ## Installation
30
-
31
- Requirement is a (local) ruby with rubygems. Using rvm is recommended
32
-
33
- $ \curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
34
-
35
- Add this line to your application's Gemfile:
36
-
37
- gem 'radiation'
38
-
39
- And then execute:
40
-
41
- $ bundle
42
-
43
- Or install it yourself as:
44
-
45
- $ gem install radiation
1
+ # Radiation
2
+ [![Gem Version](https://badge.fury.io/rb/radiation.png)](http://badge.fury.io/rb/radiation)
3
+ [![Build Status](https://travis-ci.org/janmayer/radiation.png?branch=master)](https://travis-ci.org/janmayer/radiation)
4
+ [![Code Climate](https://codeclimate.com/github/janmayer/radiation.png)](https://codeclimate.com/github/janmayer/radiation)
5
+
6
+ This gem provides easy access to energies and intensities from the decay of radioactive nuclei.
7
+ Currently two data sources are accessible: Internal (see bib files in `./data/`) and recommended values
8
+ by [Laboratoire National Henri Becquerel](http://www.nucleide.org/DDEP_WG/DDEPdata.htm).
9
+
10
+ ## Example Usage
11
+
12
+ ### Command line interface
13
+
14
+ $> radiation
15
+
16
+ ### In your ruby files:
17
+
18
+ require "radiation"
19
+ Radiation::Source.new(nuclide: "Ra-226").energies.collect{|e| e.value}
20
+
21
+ See also files in `./samples/`.
22
+
23
+ ## Planned features
24
+
25
+ * Efficiency calibration for given peaks or spectra
26
+ * Better access to resources
27
+
28
+
29
+ ## Installation
30
+
31
+ Requirement is a (local) ruby with rubygems. Using rvm is recommended
32
+
33
+ $ \curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
34
+
35
+ Add this line to your application's Gemfile:
36
+
37
+ gem 'radiation'
38
+
39
+ And then execute:
40
+
41
+ $ bundle
42
+
43
+ Or install it yourself as:
44
+
45
+ $ gem install radiation
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
- require "bundler/gem_tasks"
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec
1
+ require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec