-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.rb
57 lines (48 loc) · 1.15 KB
/
test.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
$LOAD_PATH << "./lib"
require 'pp'
require 'new_excel'
require 'byebug'
include NewExcel
extend NewExcel::Console
ProcessState.debug = false
# file = NewExcel::File.new("./spec/fixtures/file.ne")
#
# # sheet = file.get_sheet('simple_text')
# # puts sheet.for_printing
#
# # s = sheet "spec/fixtures/file.ne/map.map";
# # print s.for_printing
#
# # puts ""
# #
# # sheet = file.get_sheet('rows_for_printing')
# # puts sheet.for_printing
# #
# # puts ""
# #
# # sheet = file.get_sheet('one_column_map')
# # puts sheet.for_printing
# #
# # puts ""
# #
# # sheet = file.get_sheet('two_column_map')
# # puts sheet.for_printing
# #
# sheet = file.get_sheet("relative_references")
# puts sheet.for_printing
#
###################################################
file = NewExcel::File.new("./file.ne")
ProcessState.max_rows_to_load = 1000
# sheet = file.get_sheet('zf_mapped_dates')
# sheet = file.get_sheet('zf_mapped_data')
# sheet = file.get_sheet('adx')
sheet = file.get_sheet('stochastic')
# pp sheet.read
puts sheet.for_printing
# # sheet = file.get_sheet("ZCTest2")
# #
# # puts sheet.for_printing
#
# sheet = file.get_sheet("moving_average")
# print sheet.for_printing