aemo 0.6.0 → 0.7.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 +4 -4
- data/lib/aemo/market.rb +1 -1
- data/lib/aemo/nem12/quality_method.rb +14 -6
- data/lib/aemo/nmi.rb +3 -4
- data/lib/aemo/version.rb +1 -1
- metadata +11 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7aa903b03da21b8850f3edf73e22e95365c5cca0d586dd26be1af6572edf08c4
|
4
|
+
data.tar.gz: '0628f6ad1e3fededf28d5c09e838654836a5e2b0d6860106e0fcd536cbcab114'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4ed45a247e81eb2c1c9c5f094267104eeaf8eab63d746efb72ffeb1e2c052f406d5df6109d23e3cf9b4c4f4730799e253dce59fc6178058872e314422b782f9
|
7
|
+
data.tar.gz: ed624dc27652b135c2c7bdfabab86d25c231857542ddd16b12947d976ab10a3ef86f0155341c664c00fe8ef9714cd4f15b4c42c0730ffa68b8f7d0d3af692e9c
|
data/lib/aemo/market.rb
CHANGED
@@ -17,16 +17,24 @@ module AEMO
|
|
17
17
|
11 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Check', description: '' },
|
18
18
|
12 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Calculated', description: '' },
|
19
19
|
13 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'SCADA', description: '' },
|
20
|
-
14 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Like Day', description: '' },
|
21
|
-
15 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Average Like Day', description: '' },
|
22
|
-
16 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Agreed', description: '' },
|
20
|
+
14 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Retrospective Like Day', description: 'Updated v7.8' },
|
21
|
+
15 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Retrospective Average Like Day', description: 'Updated v7.8' },
|
22
|
+
16 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Agreed', description: '[OBSOLETE] v7.8' },
|
23
23
|
17 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Linear', description: '' },
|
24
24
|
18 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Alternate', description: '' },
|
25
25
|
19 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Zero', description: '' },
|
26
|
-
20 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: '
|
27
|
-
description: '' },
|
26
|
+
20 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Prospective Like Day',
|
27
|
+
description: 'Updated v7.8' },
|
28
28
|
21 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Five-minute No Historical Data',
|
29
|
-
description: '' },
|
29
|
+
description: 'Added v7.8' },
|
30
|
+
22 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Prospective Ave Like Day',
|
31
|
+
description: 'Added v7.8' },
|
32
|
+
23 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Previous Year',
|
33
|
+
description: 'Added v7.8' },
|
34
|
+
24 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'Data Scaling',
|
35
|
+
description: 'Added v7.8' },
|
36
|
+
25 => { type: %w[SUB], installation_type: [1, 2, 3, 4], short_descriptor: 'ADL',
|
37
|
+
description: 'Added v7.8' },
|
30
38
|
51 => { type: %w[EST SUB], installation_type: 5, short_descriptor: 'Previous Year', description: '' },
|
31
39
|
52 => { type: %w[EST SUB], installation_type: 5, short_descriptor: 'Previous Read', description: '' },
|
32
40
|
53 => { type: %w[SUB], installation_type: 5, short_descriptor: 'Revision', description: '' },
|
data/lib/aemo/nmi.rb
CHANGED
@@ -309,8 +309,7 @@ module AEMO
|
|
309
309
|
raise 'Invalid date' unless [DateTime, ::Time].include?(datetime.class)
|
310
310
|
|
311
311
|
possible_values = DLF_CODES[@dlf].select do |x|
|
312
|
-
::Time.parse(x['FromDate'])
|
313
|
-
::Time.parse(x['ToDate']) >= datetime
|
312
|
+
datetime.between?(::Time.parse(x['FromDate']), ::Time.parse(x['ToDate']))
|
314
313
|
end
|
315
314
|
if possible_values.empty?
|
316
315
|
nil
|
@@ -351,12 +350,12 @@ module AEMO
|
|
351
350
|
raise 'Invalid date' unless [DateTime, ::Time].include?(datetime.class)
|
352
351
|
|
353
352
|
possible_values = TNI_CODES[@tni].select do |x|
|
354
|
-
::Time.parse(x['FromDate'])
|
353
|
+
datetime.between?(::Time.parse(x['FromDate']), ::Time.parse(x['ToDate']))
|
355
354
|
end
|
356
355
|
return nil if possible_values.empty?
|
357
356
|
|
358
357
|
possible_values = possible_values.first['mlf_data']['loss_factors'].select do |x|
|
359
|
-
::Time.parse(x['start'])
|
358
|
+
datetime.between?(::Time.parse(x['start']), ::Time.parse(x['finish']))
|
360
359
|
end
|
361
360
|
return nil if possible_values.empty?
|
362
361
|
|
data/lib/aemo/version.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aemo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Courtney
|
8
8
|
- Stuart Auld
|
9
9
|
- Neil Parikh
|
10
10
|
- Olivier Nsabimana
|
11
|
-
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date:
|
13
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: activesupport
|
@@ -117,16 +116,22 @@ dependencies:
|
|
117
116
|
name: rexml
|
118
117
|
requirement: !ruby/object:Gem::Requirement
|
119
118
|
requirements:
|
119
|
+
- - "~>"
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '3.3'
|
120
122
|
- - ">="
|
121
123
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
124
|
+
version: 3.3.3
|
123
125
|
type: :runtime
|
124
126
|
prerelease: false
|
125
127
|
version_requirements: !ruby/object:Gem::Requirement
|
126
128
|
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '3.3'
|
127
132
|
- - ">="
|
128
133
|
- !ruby/object:Gem::Version
|
129
|
-
version:
|
134
|
+
version: 3.3.3
|
130
135
|
description: Gem providing functionality for the Australian Energy Market Operator
|
131
136
|
data.Supports NMIs, NEM12, MSATS Web Services and more
|
132
137
|
email:
|
@@ -300,7 +305,6 @@ licenses:
|
|
300
305
|
- MIT
|
301
306
|
metadata:
|
302
307
|
rubygems_mfa_required: 'true'
|
303
|
-
post_install_message:
|
304
308
|
rdoc_options: []
|
305
309
|
require_paths:
|
306
310
|
- lib
|
@@ -315,8 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
315
319
|
- !ruby/object:Gem::Version
|
316
320
|
version: '0'
|
317
321
|
requirements: []
|
318
|
-
rubygems_version: 3.
|
319
|
-
signing_key:
|
322
|
+
rubygems_version: 3.6.7
|
320
323
|
specification_version: 4
|
321
324
|
summary: Gem providing functionality for the Australian Energy Market Operator data
|
322
325
|
test_files: []
|