quandl_operation 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -14,10 +14,10 @@ class Collapse
|
|
14
14
|
data
|
15
15
|
end
|
16
16
|
|
17
|
-
def collapse_and_log(
|
17
|
+
def collapse_and_log(data, frequency)
|
18
18
|
t1 = Time.now
|
19
|
-
r = collapse(
|
20
|
-
Quandl::Logger.debug "#{self.name}.perform (#{t1.elapsed.microseconds}ms)"
|
19
|
+
r = collapse(data, frequency)
|
20
|
+
Quandl::Logger.debug "#{self.name}.perform(#{data.try(:count)} rows, #{frequency}) (#{t1.elapsed.microseconds}ms)"
|
21
21
|
r
|
22
22
|
end
|
23
23
|
|
@@ -11,10 +11,10 @@ class Transform
|
|
11
11
|
data
|
12
12
|
end
|
13
13
|
|
14
|
-
def transform_and_log(
|
14
|
+
def transform_and_log( data, type)
|
15
15
|
t1 = Time.now
|
16
|
-
r = transform(
|
17
|
-
Quandl::Logger.debug "#{self.name}.perform (#{t1.elapsed.microseconds}ms)"
|
16
|
+
r = transform( data, type)
|
17
|
+
Quandl::Logger.debug "#{self.name}.perform(#{data.try(:count)} rows, #{type}) (#{t1.elapsed.microseconds}ms)"
|
18
18
|
r
|
19
19
|
end
|
20
20
|
|