trinitycrmod 0.6.0 → 0.6.1
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 +28 -1
- data/trinitycrmod.gemspec +2 -2
- 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: e1f8bb5bb77415cd24949e7ead7cee9b046c9f22
|
4
|
+
data.tar.gz: 6ff6703f90671c31b657fae590bb04d76ca08df8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60514fa5ee4ff49b33d512ff0caada673c76700e4f21369b63946923ee4a1eba7a94a9a697b50daf39411279bd001adedc554a8c5cfe739e97397dbae037b943
|
7
|
+
data.tar.gz: 6da206d6b1203763ab20d04658defb5550ecc3000d0a673dfca6798a831a4c521dd5786a2017a0513474baea6116070b3d770290bba0d96d935d1d20cb6dd96a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
data/lib/trinitycrmod/graphs.rb
CHANGED
@@ -96,6 +96,32 @@ class CodeRunner::Trinity
|
|
96
96
|
|
97
97
|
include TrinityGraphKits
|
98
98
|
|
99
|
+
module TrinityMultiKits
|
100
|
+
def profiles_graphkit(options)
|
101
|
+
kit = GraphKit::MultiKit.new(
|
102
|
+
[
|
103
|
+
ion_temp_prof_graphkit(options),
|
104
|
+
eln_temp_prof_graphkit(options),
|
105
|
+
dens_prof_graphkit(options),
|
106
|
+
ang_mom_prof_graphkit(options)
|
107
|
+
]
|
108
|
+
)
|
109
|
+
kit.each{|k| k.title = nil}
|
110
|
+
if options[:horizontal]
|
111
|
+
kit.slice(0..2).each{|k| k.xlabel = nil; k.gp.xtics = "format ''"}
|
112
|
+
kit[3].gp.xtics = 'format "%2.1f"'
|
113
|
+
else
|
114
|
+
kit.values_at(0,2).each{|k| k.xlabel = nil; k.gp.xtics = "format ''"}
|
115
|
+
kit.gp.multiplot = "layout 2,2"
|
116
|
+
kit.gp.key = "tmargin"
|
117
|
+
end
|
118
|
+
kit
|
119
|
+
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
include TrinityMultiKits
|
124
|
+
|
99
125
|
# This is the hook that is called by CodeRunner, providing the
|
100
126
|
# graphkit with the given name and functions to the CodeRunner framework
|
101
127
|
def graphkit(name, options)
|
@@ -120,7 +146,8 @@ class CodeRunner::Trinity
|
|
120
146
|
options[var+:_index] = list(var).keys.max
|
121
147
|
end
|
122
148
|
end
|
123
|
-
if meth = TrinityGraphKits.instance_methods.find{|m| m.to_s == name + '_graphkit'}
|
149
|
+
if (meth = TrinityGraphKits.instance_methods.find{|m| m.to_s == name + '_graphkit'} or
|
150
|
+
meth = TrinityMultiKits.instance_methods.find{|m| m.to_s == name + '_graphkit'})
|
124
151
|
return send(meth, options)
|
125
152
|
else
|
126
153
|
raise "GraphKit not found: #{name}"
|
data/trinitycrmod.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: trinitycrmod 0.6.
|
5
|
+
# stub: trinitycrmod 0.6.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "trinitycrmod"
|
9
|
-
s.version = "0.6.
|
9
|
+
s.version = "0.6.1"
|
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"]
|