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 CHANGED
@@ -1 +1 @@
1
- 0.2.3
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
 
@@ -128,6 +128,7 @@ class CodeRunner
128
128
  0
129
129
  end
130
130
  end
131
+
131
132
 
132
133
  def get_global_results
133
134
  @fusionQ = info_outfile.get_variable_value('Q').to_f
data/trinitycrmod.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "trinitycrmod"
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Edmund Highcock"]
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.3
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: 38043125482508098
154
+ hash: 4601330261692563943
155
155
  required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  none: false
157
157
  requirements: