Sha256: b001cb443c50b38ce055d653566f8c530e67a00f06217234f5c097f67098934b
Contents?: true
Size: 304 Bytes
Versions: 4
Compression:
Stored size: 304 Bytes
Contents
# # Class for dealing with POTCAR. # module Potcar def self.load_file(file) results = {} results[:name] = file elements = Array.new File.open( file, "r" ).each do |line| if line =~ /VRHFIN\s*=\s*([A-Za-z]*)/ elements << $1 end end results[:elements] = elements results end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vasputils-0.0.3 | lib/vasputils/potcar.rb |
vasputils-0.0.2 | lib/vasputils/potcar.rb |
vasputils-0.0.1 | lib/vasputils/potcar.rb |
vasputils-0.0.0 | lib/vasputils/potcar.rb |