genecrmod 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a57561208f99d5af7ac3945efba844997881d26
4
- data.tar.gz: 05c300f40bdb7008a8a033b05125e3c35a363c79
3
+ metadata.gz: fc521d54eaad95dd45e39c6b0f85bfc30617491d
4
+ data.tar.gz: 3cc5e327ef26e61efac091af0cbaa9808e0f228a
5
5
  SHA512:
6
- metadata.gz: d25d91e6a55de3dbb0d4e7270468558e92f515b6f6d49116e0d68c417838cc13007e7e24f81c9b5770ea9c51d0cbe5a42d838a0b1db35d098a34f02763443acc
7
- data.tar.gz: 89df6463d0ead7bfc5c1fd1dbafc139024cadfa74f157511c3c7e858bd51523b6781b6bf73fc003180075387f68185c2a0e60b1a5a9350e6ded017044c4092fa
6
+ metadata.gz: 91056259c1f66717946795b669e09ba0c1cb1d524e036555a3ec14c694ca1a5a94985fdb5f67fd5f3c0eab0ff901d685aadcc2cf39d329852855c0a46dd4a1f5
7
+ data.tar.gz: 168750347667e982e0ee42a84625f11da2f8a1872cd26f7225f37193dcd92c8aac8fc8da5058e09964871051303de777652a01eaeb1a517b556d822639972f6a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/genecrmod.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: genecrmod 0.1.3 ruby lib
5
+ # stub: genecrmod 0.1.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "genecrmod"
9
- s.version = "0.1.3"
9
+ s.version = "0.1.4"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -193,9 +193,12 @@ class CodeRunner
193
193
  def process_directory_code_specific
194
194
  get_status
195
195
  #p ['id is', id, 'ctd is ', ctd]
196
- #if ctd
196
+ if ctd
197
197
  #get_global_results
198
- #end
198
+ if !nonlinear or nonlinear.fortran_false?
199
+ get_growth_rates
200
+ end
201
+ end
199
202
  #p ['fusionQ is ', fusionQ]
200
203
  @percent_complete = completed_timesteps.to_f / ntimesteps.to_f * 100.0
201
204
  end
@@ -275,38 +278,22 @@ EOF1
275
278
  ''
276
279
  end
277
280
 
278
- @msdatching_regex = Regexp.new('(^|\A)(?<everything>[^!
279
- ]*?\b #a word boundary
280
-
281
- (?<name>[A-Za-z_]\w*) # the name, which must be a single word (not beginning
282
- # with a digit) followed by
283
-
284
- \s*=\s* # an equals sign (possibly with whitespace either side), then
285
-
286
- (?<default>(?> # the default answer, which can be either:
287
-
288
- (?<string>' + Regexp.quoted_string.to_s + ') # a quoted string
289
-
290
- | # or
291
-
292
-
293
- (?<float>\-?(?:(?>\d+\.\d*)|(?>\d*\.\d+))(?:[eEdD][+-]?\d+)?)(?:_RKIND)? # a floating point number
294
-
295
- | #or
296
-
297
- (?<int>\-?\d++) # an integer
298
-
299
- | #or
300
-
301
- (?<complex>\((?:\-?(?:(?>\d+\.\d*)|(?>\d*\.\d+))(?:[eEdD][+-]?\d+)?),\s*(?:\-?(?:(?>\d+\.\d*)|(?>\d*\.\d+))(?:[eEdD][+-]?\d+)?)\)) #a complex number
302
-
303
- | #or
304
-
305
-
306
- (?:(?<word>\S+)(?=\s|\)|\]|[\n\r]+|\Z)) # a single word containing no spaces
307
- # which must be followed by a space or ) or ] or \n or \Z
281
+ def get_growth_rates
282
+ Dir.chdir(@directory) do
283
+ if FileTest.exist?('omega.dat')
284
+ @kyvals, @growth_rates, @frequencies = GSL::Vector.filescan('omega.dat')
285
+ else
286
+ @kyvals, @growth_rates, @frequencies = [[]] * 3
287
+ end
288
+ end
289
+ end
290
+ def graphkit(name, options={})
291
+ case name
292
+ when /growth_rates_vs_ky/
293
+ return GraphKit.quick_create([@kyvals, @growth_rates])
294
+ end
295
+ end
308
296
 
309
- )))', Regexp::EXTENDED)
310
297
  end
311
298
  end
312
299
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genecrmod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edmund Highcock