trinitycrmod 0.8.8 → 0.8.9
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/lib/trinitycrmod/graphs.rb +38 -11
- data/lib/trinitycrmod/read_netcdf.rb +1 -0
- data/trinitycrmod.gemspec +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7919944687c2fa43e8d3b38cf2b5717467fa134
|
4
|
+
data.tar.gz: d3faffc05009a3eebce02705c45879bff7dfc773
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b625be1b551fb5288ac56ea7b9007f55392938050d74a7a667284eebb4d4d00ca9545713dcac980515423b9690d27df5f3dfb5774afca9a1d35e797ef011b3f
|
7
|
+
data.tar.gz: 4b677fad6c7d7afde623f5d61a0420417de1167028964a3cf0d7d8c63b268395ddf0e6c483e803940819ada85ec28bc0537f4f77485fc83ee6e289147a7d0776
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.9
|
data/lib/trinitycrmod/graphs.rb
CHANGED
@@ -153,24 +153,51 @@ class CodeRunner::Trinity
|
|
153
153
|
def profiles_graphkit(options)
|
154
154
|
kit = GraphKit::MultiKit.new(
|
155
155
|
[
|
156
|
-
ion_temp_prof_graphkit(options),
|
157
|
-
eln_temp_prof_graphkit(options),
|
158
|
-
dens_prof_graphkit(options),
|
159
|
-
ang_mom_prof_graphkit(options)
|
156
|
+
#ion_temp_prof_graphkit(options),
|
157
|
+
#eln_temp_prof_graphkit(options),
|
158
|
+
#dens_prof_graphkit(options),
|
159
|
+
#ang_mom_prof_graphkit(options)
|
160
|
+
smart_graphkit(options.absorb graphkit_name: 'nc_temp_grid', tspec_index: 2),
|
161
|
+
smart_graphkit(options.absorb graphkit_name: 'nc_temp_grid', tspec_index: 1),
|
162
|
+
smart_graphkit(options.absorb graphkit_name: 'nc_dens_grid', tspec_index: 1),
|
163
|
+
smart_graphkit(options.absorb graphkit_name: 'nc_omega_grid'),
|
160
164
|
]
|
161
165
|
)
|
166
|
+
kit.each{|k| k.title = "nil"; k.gp.key = "off"}
|
167
|
+
kit[0].ylabel = "Ion Temp (keV)"
|
168
|
+
kit[1].ylabel = "Electron Temp (keV)"
|
169
|
+
kit[2].ylabel = "Electron Dens (10^20 m^-3)"
|
170
|
+
kit[3].ylabel = "Toroidal Rotation (rad s^-1)"
|
162
171
|
kit.each{|k| k.title = nil}
|
163
|
-
if options[:horizontal]
|
164
|
-
kit.slice(0..2).each{|k| k.xlabel = nil; k.gp.xtics = "format ''"}
|
165
|
-
kit[3].gp.xtics = 'format "%2.1f"'
|
166
|
-
else
|
167
|
-
kit.values_at(0,2).each{|k| k.xlabel = nil; k.gp.xtics = "format ''"}
|
172
|
+
#if options[:horizontal]
|
173
|
+
#kit.slice(0..2).each{|k| k.xlabel = nil; k.gp.xtics = "format ''"}
|
174
|
+
#kit[3].gp.xtics = 'format "%2.1f"'
|
175
|
+
#else
|
176
|
+
#kit.values_at(0,2).each{|k| k.xlabel = nil; k.gp.xtics = "format ''"}
|
168
177
|
kit.gp.multiplot = "layout 2,2"
|
169
|
-
kit.gp.key = "
|
170
|
-
|
178
|
+
#kit[1].gp.key = "top"
|
179
|
+
kit[0].xlabel = nil
|
180
|
+
kit[1].xlabel = nil
|
181
|
+
#end
|
171
182
|
kit
|
172
183
|
|
173
184
|
end
|
185
|
+
def geometry_graphkit(options)
|
186
|
+
kit = GraphKit::MultiKit.new(
|
187
|
+
[
|
188
|
+
smart_graphkit(options.absorb graphkit_name: 'nc_area_grid'),
|
189
|
+
smart_graphkit(options.absorb graphkit_name: 'nc_qval_grid'),
|
190
|
+
smart_graphkit(options.absorb graphkit_name: 'nc_shat_grid'),
|
191
|
+
smart_graphkit(options.absorb graphkit_name: 'nc_kappa_grid'),
|
192
|
+
smart_graphkit(options.absorb graphkit_name: 'nc_kapprim_grid'),
|
193
|
+
smart_graphkit(options.absorb graphkit_name: 'nc_delta_grid'),
|
194
|
+
smart_graphkit(options.absorb graphkit_name: 'nc_deltprim_grid'),
|
195
|
+
]
|
196
|
+
)
|
197
|
+
kit.each{|k| k.ylabel.sub!(/\(inout.*/, ''); k.gp.key="off"; k.title=nil}
|
198
|
+
kit.gp.multiplot = "layout 2,4"
|
199
|
+
kit
|
200
|
+
end
|
174
201
|
def calibration_graphkit(options)
|
175
202
|
kit = GraphKit::MultiKit.new(
|
176
203
|
[
|
@@ -133,6 +133,7 @@ class NetcdfSmartReader
|
|
133
133
|
opts.delete(:graphkit_name)
|
134
134
|
#kit.data[0].title += " with options: " + opts.to_s
|
135
135
|
kit.data[0].title += " " + opts.to_s.gsub(/_(index|element)/, '')
|
136
|
+
kit.data[0].gp.with = "lp"
|
136
137
|
if kit.zlabel
|
137
138
|
kit.zlabel = "'#{kit.zlabel}' rotate by 90"
|
138
139
|
#kit.zlabel = nil
|
data/trinitycrmod.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
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: trinitycrmod 0.8.
|
5
|
+
# stub: trinitycrmod 0.8.9 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "trinitycrmod"
|
9
|
-
s.version = "0.8.
|
9
|
+
s.version = "0.8.9"
|
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"]
|
13
13
|
s.authors = ["Edmund Highcock"]
|
14
|
-
s.date = "2016-
|
14
|
+
s.date = "2016-03-19"
|
15
15
|
s.description = "This module allows Trinity, the Multiscale Gyrokinetic Turbulent Transport solver for Fusion Reactors, to harness the power of CodeRunner, a framework for the automated running and analysis of simulations."
|
16
16
|
s.email = "edmundhighcock@sourceforge.net"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -45,7 +45,7 @@ Gem::Specification.new do |s|
|
|
45
45
|
]
|
46
46
|
s.homepage = "http://github.com/edmundhighcock/trinitycrmod"
|
47
47
|
s.licenses = ["GPLv3"]
|
48
|
-
s.rubygems_version = "2.
|
48
|
+
s.rubygems_version = "2.4.8"
|
49
49
|
s.summary = "CodeRunner module for the Trinity simulation software."
|
50
50
|
|
51
51
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trinitycrmod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edmund Highcock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coderunner
|
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
203
|
version: '0'
|
204
204
|
requirements: []
|
205
205
|
rubyforge_project:
|
206
|
-
rubygems_version: 2.
|
206
|
+
rubygems_version: 2.4.8
|
207
207
|
signing_key:
|
208
208
|
specification_version: 4
|
209
209
|
summary: CodeRunner module for the Trinity simulation software.
|