Sha256: 89e7914b9ddea58dd92a12a1a3b63f9ad79b5aa460cc6c6ddaade3ef0503ba1c

Contents?: true

Size: 621 Bytes

Versions: 13

Compression:

Stored size: 621 Bytes

Contents

require 'mspire/isotope'

module Mspire::Isotope::NIST
  INFO_FILE = 'isotope_info.yml'
  INFO_FILE_FULL_PATH = File.expand_path(File.dirname(__FILE__) + "/nist/#{INFO_FILE}")

  if File.exist?(INFO_FILE_FULL_PATH)

    ISOTOPES = YAML.load_file(INFO_FILE_FULL_PATH).map {|ar| Mspire::Isotope.new *ar }
    BY_ELEMENT = ISOTOPES.group_by(&:element)

  else
    unless __FILE__ == $0
      warn "no file #{INFO_FILE_FULL_PATH} to read isotope information from!"
      warn "Note that directly running the file: lib/mspire/isotope/nist/updater.rb"
      warn "will autogenerate this file from NIST data"
    end
  end
end 

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mspire-0.10.8.0 lib/mspire/isotope/nist.rb
mspire-0.10.7.3 lib/mspire/isotope/nist.rb
mspire-0.10.7.2 lib/mspire/isotope/nist.rb
mspire-0.10.7.1 lib/mspire/isotope/nist.rb
mspire-0.10.7 lib/mspire/isotope/nist.rb
mspire-0.10.6 lib/mspire/isotope/nist.rb
mspire-0.10.5 lib/mspire/isotope/nist.rb
mspire-0.10.4 lib/mspire/isotope/nist.rb
mspire-0.10.3 lib/mspire/isotope/nist.rb
mspire-0.10.2 lib/mspire/isotope/nist.rb
mspire-0.10.1 lib/mspire/isotope/nist.rb
mspire-0.10.0 lib/mspire/isotope/nist.rb
mspire-0.9.2 lib/mspire/isotope/nist.rb