genecrmod 0.1.3 → 0.1.4
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 +4 -4
- data/VERSION +1 -1
- data/genecrmod.gemspec +2 -2
- data/lib/genecrmod/gene.rb +20 -33
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc521d54eaad95dd45e39c6b0f85bfc30617491d
|
|
4
|
+
data.tar.gz: 3cc5e327ef26e61efac091af0cbaa9808e0f228a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91056259c1f66717946795b669e09ba0c1cb1d524e036555a3ec14c694ca1a5a94985fdb5f67fd5f3c0eab0ff901d685aadcc2cf39d329852855c0a46dd4a1f5
|
|
7
|
+
data.tar.gz: 168750347667e982e0ee42a84625f11da2f8a1872cd26f7225f37193dcd92c8aac8fc8da5058e09964871051303de777652a01eaeb1a517b556d822639972f6a
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
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.
|
|
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.
|
|
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"]
|
data/lib/genecrmod/gene.rb
CHANGED
|
@@ -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
|
-
|
|
196
|
+
if ctd
|
|
197
197
|
#get_global_results
|
|
198
|
-
|
|
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
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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
|
|