mddb 0.0.24 → 0.0.25

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.
data/lib/mddb.rb CHANGED
@@ -27,7 +27,7 @@ module Mddb
27
27
  if opts[:all]
28
28
  frames = Frame.all
29
29
  else
30
- frames = Frame.where(:fid.gte => opts[:from], :fid.lte => opts[:to]).all
30
+ frames = Frame.where(:fid.gte => opts[:from], :fid.lte => opts[:to], :pid => opts[:pid]).all
31
31
  end
32
32
  if frames.empty?
33
33
  puts "There were no frames in in this range"
data/lib/mddb/parser.rb CHANGED
@@ -3,7 +3,7 @@ module Mddb
3
3
 
4
4
  class Parser
5
5
  def initialize(file)
6
- @file = File.open(file).readlines
6
+ @file = File.open(file)
7
7
  @objects = Mddb::Config.simulation['count']
8
8
  end
9
9
 
data/lib/mddb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mddb
2
- VERSION = "0.0.24"
2
+ VERSION = "0.0.25"
3
3
  end
data/mddb.gemspec CHANGED
@@ -25,5 +25,6 @@ Gem::Specification.new do |s|
25
25
  s.add_runtime_dependency "thor"
26
26
  s.add_runtime_dependency "micro-optparse"
27
27
  s.add_runtime_dependency "resque"
28
+ s.add_runtime_dependency "bson_ext"
28
29
  s.add_runtime_dependency "require_all"
29
30
  end
metadata CHANGED
@@ -1,100 +1,104 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mddb
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.24
4
+ version: 0.0.25
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thomas Mulvaney
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-13 00:00:00.000000000 Z
12
+ date: 2012-03-22 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- version_requirements: &2056 !ruby/object:Gem::Requirement
16
+ requirement: &70265779694900 !ruby/object:Gem::Requirement
17
+ none: false
17
18
  requirements:
18
19
  - - ! '>='
19
20
  - !ruby/object:Gem::Version
20
- version: !binary |-
21
- MA==
22
- none: false
23
- requirement: *2056
24
- prerelease: false
21
+ version: '0'
25
22
  type: :development
23
+ prerelease: false
24
+ version_requirements: *70265779694900
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: mongo_mapper
28
- version_requirements: &2074 !ruby/object:Gem::Requirement
27
+ requirement: &70265779694480 !ruby/object:Gem::Requirement
28
+ none: false
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
- version: !binary |-
33
- MA==
34
- none: false
35
- requirement: *2074
36
- prerelease: false
32
+ version: '0'
37
33
  type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70265779694480
38
36
  - !ruby/object:Gem::Dependency
39
37
  name: hirb
40
- version_requirements: &2092 !ruby/object:Gem::Requirement
38
+ requirement: &70265779694060 !ruby/object:Gem::Requirement
39
+ none: false
41
40
  requirements:
42
41
  - - ! '>='
43
42
  - !ruby/object:Gem::Version
44
- version: !binary |-
45
- MA==
46
- none: false
47
- requirement: *2092
48
- prerelease: false
43
+ version: '0'
49
44
  type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70265779694060
50
47
  - !ruby/object:Gem::Dependency
51
48
  name: thor
52
- version_requirements: &2108 !ruby/object:Gem::Requirement
49
+ requirement: &70265779693640 !ruby/object:Gem::Requirement
50
+ none: false
53
51
  requirements:
54
52
  - - ! '>='
55
53
  - !ruby/object:Gem::Version
56
- version: !binary |-
57
- MA==
58
- none: false
59
- requirement: *2108
60
- prerelease: false
54
+ version: '0'
61
55
  type: :runtime
56
+ prerelease: false
57
+ version_requirements: *70265779693640
62
58
  - !ruby/object:Gem::Dependency
63
59
  name: micro-optparse
64
- version_requirements: &2124 !ruby/object:Gem::Requirement
60
+ requirement: &70265779724180 !ruby/object:Gem::Requirement
61
+ none: false
65
62
  requirements:
66
63
  - - ! '>='
67
64
  - !ruby/object:Gem::Version
68
- version: !binary |-
69
- MA==
70
- none: false
71
- requirement: *2124
72
- prerelease: false
65
+ version: '0'
73
66
  type: :runtime
67
+ prerelease: false
68
+ version_requirements: *70265779724180
74
69
  - !ruby/object:Gem::Dependency
75
70
  name: resque
76
- version_requirements: &2140 !ruby/object:Gem::Requirement
71
+ requirement: &70265779723760 !ruby/object:Gem::Requirement
72
+ none: false
77
73
  requirements:
78
74
  - - ! '>='
79
75
  - !ruby/object:Gem::Version
80
- version: !binary |-
81
- MA==
82
- none: false
83
- requirement: *2140
76
+ version: '0'
77
+ type: :runtime
84
78
  prerelease: false
79
+ version_requirements: *70265779723760
80
+ - !ruby/object:Gem::Dependency
81
+ name: bson_ext
82
+ requirement: &70265779723340 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
85
88
  type: :runtime
89
+ prerelease: false
90
+ version_requirements: *70265779723340
86
91
  - !ruby/object:Gem::Dependency
87
92
  name: require_all
88
- version_requirements: &2156 !ruby/object:Gem::Requirement
93
+ requirement: &70265779722920 !ruby/object:Gem::Requirement
94
+ none: false
89
95
  requirements:
90
96
  - - ! '>='
91
97
  - !ruby/object:Gem::Version
92
- version: !binary |-
93
- MA==
94
- none: false
95
- requirement: *2156
96
- prerelease: false
98
+ version: '0'
97
99
  type: :runtime
100
+ prerelease: false
101
+ version_requirements: *70265779722920
98
102
  description: MDDB makes analysing molecular dynamics simulations easy
99
103
  email:
100
104
  - thom.mulvaney@gmail.com
@@ -107,119 +111,71 @@ executables:
107
111
  extensions: []
108
112
  extra_rdoc_files: []
109
113
  files:
110
- - !binary |-
111
- LmdpdGlnbm9yZQ==
112
- - !binary |-
113
- R2VtZmlsZQ==
114
- - !binary |-
115
- UmFrZWZpbGU=
116
- - !binary |-
117
- YmluL2FnZ3JlZ2F0ZXI=
118
- - !binary |-
119
- YmluL2F2ZXJhZ2U=
120
- - !binary |-
121
- YmluL2Jpbm5lcg==
122
- - !binary |-
123
- YmluL21kZGI=
124
- - !binary |-
125
- YmluL3N0YXQucmI=
126
- - !binary |-
127
- Y29uZmlnLnltbC5iYWs=
128
- - !binary |-
129
- bGliL21kZGIucmI=
130
- - !binary |-
131
- bGliL21kZGIvYXRvbS5yYg==
132
- - !binary |-
133
- bGliL21kZGIvY2FsY3VsYXRpb25zLnJi
134
- - !binary |-
135
- bGliL21kZGIvY2xpLnJi
136
- - !binary |-
137
- bGliL21kZGIvY29tbWFuZHMvY29uc29sZS5yYg==
138
- - !binary |-
139
- bGliL21kZGIvY29tbWFuZHMvbG9hZC5yYg==
140
- - !binary |-
141
- bGliL21kZGIvY29tbWFuZHMvbmV3LnJi
142
- - !binary |-
143
- bGliL21kZGIvY29tbWFuZHMvcnVuLnJi
144
- - !binary |-
145
- bGliL21kZGIvY29uZmlnLnJi
146
- - !binary |-
147
- bGliL21kZGIvZnJhbWUucmI=
148
- - !binary |-
149
- bGliL21kZGIvZ2VuZXJhdG9ycy5yYg==
150
- - !binary |-
151
- bGliL21kZGIvZ2VuZXJhdG9ycy9hdG9tLnJi
152
- - !binary |-
153
- bGliL21kZGIvZ2VuZXJhdG9ycy9tb2xlY3VsZS5yYg==
154
- - !binary |-
155
- bGliL21kZGIvbW9sZWN1bGUucmI=
156
- - !binary |-
157
- bGliL21kZGIvcGFyc2VyLnJi
158
- - !binary |-
159
- bGliL21kZGIvcG9pbnQucmI=
160
- - !binary |-
161
- bGliL21kZGIvcnVubmVyLnJi
162
- - !binary |-
163
- bGliL21kZGIvc3BoZXJlLnJi
164
- - !binary |-
165
- bGliL21kZGIvdGVtcGxhdGVzL1JFQURNRS50dA==
166
- - !binary |-
167
- bGliL21kZGIvdGVtcGxhdGVzL2F0b20ucmIudHQ=
168
- - !binary |-
169
- bGliL21kZGIvdGVtcGxhdGVzL2NvbmZpZy55bWwudHQ=
170
- - !binary |-
171
- bGliL21kZGIvdGVtcGxhdGVzL2ZyYW1lLnJiLnR0
172
- - !binary |-
173
- bGliL21kZGIvdGVtcGxhdGVzL21vbGVjdWxlLnJiLnR0
174
- - !binary |-
175
- bGliL21kZGIvdGVtcGxhdGVzL3NwZWMvYXRvbV9zcGVjLnJiLnR0
176
- - !binary |-
177
- bGliL21kZGIvdGVtcGxhdGVzL3NwZWMvbW9sZWN1bGVfc3BlYy5yYi50dA==
178
- - !binary |-
179
- bGliL21kZGIvdmVjdG9yLnJi
180
- - !binary |-
181
- bGliL21kZGIvdmVyc2lvbi5yYg==
182
- - !binary |-
183
- bWRkYi5nZW1zcGVj
184
- - !binary |-
185
- cXVpY2sueHl6
186
- - !binary |-
187
- c3BlYy9hdG9tX3NwZWMucmI=
188
- - !binary |-
189
- c3BlYy9veHlnZW5fc3BlYy5yYg==
190
- - !binary |-
191
- c3BlYy9zcGVjX2hlbHBlci5yYg==
114
+ - .gitignore
115
+ - Gemfile
116
+ - Rakefile
117
+ - bin/aggregater
118
+ - bin/average
119
+ - bin/binner
120
+ - bin/mddb
121
+ - bin/stat.rb
122
+ - lib/mddb.rb
123
+ - lib/mddb/atom.rb
124
+ - lib/mddb/calculations.rb
125
+ - lib/mddb/cli.rb
126
+ - lib/mddb/commands/console.rb
127
+ - lib/mddb/commands/load.rb
128
+ - lib/mddb/commands/new.rb
129
+ - lib/mddb/commands/run.rb
130
+ - lib/mddb/config.rb
131
+ - lib/mddb/frame.rb
132
+ - lib/mddb/generators.rb
133
+ - lib/mddb/generators/atom.rb
134
+ - lib/mddb/generators/molecule.rb
135
+ - lib/mddb/molecule.rb
136
+ - lib/mddb/parser.rb
137
+ - lib/mddb/point.rb
138
+ - lib/mddb/runner.rb
139
+ - lib/mddb/sphere.rb
140
+ - lib/mddb/templates/README.tt
141
+ - lib/mddb/templates/atom.rb.tt
142
+ - lib/mddb/templates/config.yml.tt
143
+ - lib/mddb/templates/frame.rb.tt
144
+ - lib/mddb/templates/molecule.rb.tt
145
+ - lib/mddb/templates/spec/atom_spec.rb.tt
146
+ - lib/mddb/templates/spec/molecule_spec.rb.tt
147
+ - lib/mddb/vector.rb
148
+ - lib/mddb/version.rb
149
+ - mddb.gemspec
150
+ - quick.xyz
151
+ - spec/atom_spec.rb
152
+ - spec/oxygen_spec.rb
153
+ - spec/spec_helper.rb
192
154
  homepage: ''
193
155
  licenses: []
194
- post_install_message:
156
+ post_install_message:
195
157
  rdoc_options: []
196
158
  require_paths:
197
159
  - lib
198
160
  required_ruby_version: !ruby/object:Gem::Requirement
161
+ none: false
199
162
  requirements:
200
163
  - - ! '>='
201
164
  - !ruby/object:Gem::Version
202
- version: !binary |-
203
- MA==
204
- none: false
165
+ version: '0'
205
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
+ none: false
206
168
  requirements:
207
169
  - - ! '>='
208
170
  - !ruby/object:Gem::Version
209
- version: !binary |-
210
- MA==
211
- none: false
171
+ version: '0'
212
172
  requirements: []
213
173
  rubyforge_project: mddb
214
174
  rubygems_version: 1.8.15
215
- signing_key:
175
+ signing_key:
216
176
  specification_version: 3
217
177
  summary: MDDB molecular database and framework
218
178
  test_files:
219
- - !binary |-
220
- c3BlYy9hdG9tX3NwZWMucmI=
221
- - !binary |-
222
- c3BlYy9veHlnZW5fc3BlYy5yYg==
223
- - !binary |-
224
- c3BlYy9zcGVjX2hlbHBlci5yYg==
225
- ...
179
+ - spec/atom_spec.rb
180
+ - spec/oxygen_spec.rb
181
+ - spec/spec_helper.rb
data/config.yml.bak DELETED
@@ -1,23 +0,0 @@
1
- database:
2
- host:
3
- port:
4
- name: tom_test
5
-
6
- simulation:
7
- file: 'quick.xyz'
8
- dimensions: 24.669, 24.669, 24.669
9
- count: 1538
10
- objects:
11
- water:
12
- count: 512
13
- start: 1
14
- atom:
15
- - oxygen
16
- - hydrogen
17
- - hydrogen
18
- blob:
19
- count: 1
20
- start: 1537
21
- atom:
22
- - phobe
23
- - phobe