trinitycrmod 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/trinitycrmod/output_files.rb +10 -2
- data/lib/trinitycrmod/trinity.rb +1 -0
- data/trinitycrmod.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
@@ -13,15 +13,23 @@ class CodeRunner
|
|
13
13
|
end
|
14
14
|
# File ending in '.fluxes': contains heat flux, momentum flux etc.
|
15
15
|
def fluxes_outfile
|
16
|
-
TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.fluxes', true, /\S+/, /(?:\#\s+)?\d:.*?(?=\d
|
16
|
+
TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.fluxes', true, /\S+/, /(?:\#\s+)?\d:.*?(?=\d:|\Z)/)
|
17
17
|
end
|
18
18
|
# File ending in '.nt': contains profiles: Ti, Te etc.
|
19
19
|
def nt_outfile
|
20
|
-
TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.nt', true, /\S+/, /(?:\#\s+)?\d:.*?(?=\d
|
20
|
+
TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.nt', true, /\S+/, /(?:\#\s+)?\d:.*?(?=\d:|\Z)/)
|
21
21
|
end
|
22
22
|
def time_outfile
|
23
23
|
TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.time', true, /\S+/, /\w+/)
|
24
24
|
end
|
25
|
+
def view_outfiles
|
26
|
+
case ENV['EDITOR']
|
27
|
+
when /vim/i
|
28
|
+
"#{ENV['EDITOR']} -Rp #{info_outfile} #{nt_outfile} #{fluxes_outfile}"
|
29
|
+
else
|
30
|
+
"#{ENV['EDITOR']} #{info_outfile} #{nt_outfile} #{fluxes_outfile}"
|
31
|
+
end
|
32
|
+
end
|
25
33
|
end
|
26
34
|
include OutputFiles
|
27
35
|
|
data/lib/trinitycrmod/trinity.rb
CHANGED
data/trinitycrmod.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trinitycrmod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
segments:
|
153
153
|
- 0
|
154
|
-
hash:
|
154
|
+
hash: 4601330261692563943
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
none: false
|
157
157
|
requirements:
|