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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 263fcbf368214eefd153d51f25a2b534648cc9c1
4
- data.tar.gz: 2531ce2ed0f1e4ad4f93ded2682d61c448d0c598
3
+ metadata.gz: e1f8bb5bb77415cd24949e7ead7cee9b046c9f22
4
+ data.tar.gz: 6ff6703f90671c31b657fae590bb04d76ca08df8
5
5
  SHA512:
6
- metadata.gz: ce88cd7e55086c24cb644bb32c3db7aff890c67c3a46206ac206b9bb95872633136f390aae4b00521691ae43ddc6f0267f804503511ea8221549f100692a321d
7
- data.tar.gz: 96aa87aa1029a7e6ebe488fcf9dae8a6aaccfee712fa0293e53a8e025ba846c00421a2ce76e9f2da4181938e15706c90a9a7187fce7d59f1faec347cfabbeb8d
6
+ metadata.gz: 60514fa5ee4ff49b33d512ff0caada673c76700e4f21369b63946923ee4a1eba7a94a9a697b50daf39411279bd001adedc554a8c5cfe739e97397dbae037b943
7
+ data.tar.gz: 6da206d6b1203763ab20d04658defb5550ecc3000d0a673dfca6798a831a4c521dd5786a2017a0513474baea6116070b3d770290bba0d96d935d1d20cb6dd96a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -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.0 ruby lib
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.0"
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"]
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edmund Highcock