frc-motors 1.0.1 → 1.1.0

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/data/cim.csv +1 -1
  3. data/lib/frc-motors.rb +1 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6596a89efe6fdfa74e9745c7f1b60238fc38d64995bc9a4c02469fb25f41a86
4
- data.tar.gz: 253595838d59f490ded143e1a60cc2272cb3855ca6e58be0f9c7cabc5d920ac4
3
+ metadata.gz: cac43392721e3e3671674c703ceccd126d892a3c83408cbeda65fc591bef739c
4
+ data.tar.gz: 2697f649300197ddf3f30e66296f03a332abfbb418348fc3841888a02e389e72
5
5
  SHA512:
6
- metadata.gz: 5216a6459314504b537ab7fb047edb33b95ae2a5b4a861fc79203a2bbd4b4f30301a9a67d7aca749445830e5681f7cf1bcd9b74df40cbc6f88af7533d88aa9d2
7
- data.tar.gz: 70e8d917475e9a72d25078ee42e80e49a6c1c5943142b1ec809f4d2beacc9c9ac39d9410f4ff59b36c2d915ed58e190ae95ca3256648757f07f5d50e61fa390b
6
+ metadata.gz: 39cde3b7ebf994d68372032b83e5e9e54efe94e99bf8abd2d6d124ca499e71127e31185bdbfb5f12c78ee69f18ff0e4ff8aca36657dd5e5f62264e8f3dd7417d
7
+ data.tar.gz: 38630ce5b513c23ea3a5bdfe27052b3d78d1dc6fbfd45a81da33ddaccdda56a43a4e9a8b4162a5f8e06a37dd7f4ffae49f426e7506c14f1aeb63fd435b77be24
@@ -1,4 +1,4 @@
1
- speed,torque,current,input_power,output_power,efficiency,lost_power
1
+ Speed,Torque,Current,Input Power,Output Power,Efficiency,Lost Power
2
2
  0,2.413,131.055,1572.66,0,0,1572.66
3
3
  53.3,2.38887,129.771,1557.252,13.334,0.856,1543.918
4
4
  106.6,2.36474,128.488,1541.856,26.398,1.712,1515.458
@@ -6,13 +6,10 @@ module Motors
6
6
  attr_reader :data
7
7
 
8
8
  def initialize(filename)
9
- @data = CSV.read(get_path(filename), { headers: true, converters: :float })
9
+ @data = CSV.read(get_path(filename), { headers: true, converters: :float , header_converters: :symbol})
10
10
  end
11
11
 
12
12
  def find(colname, value)
13
- value = value.to_f
14
- colname = colname.to_s
15
-
16
13
  best_row = @data[0]
17
14
 
18
15
  @data.each do |row|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frc-motors
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Smith