Skip to content

Commit

Permalink
TEST S21 without energies
Browse files Browse the repository at this point in the history
  • Loading branch information
tinogis committed Dec 24, 2024
1 parent eb261c7 commit a531b25
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/Report_S21_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'spec/data/S21.xml',
'spec/data/S21_with_error.xml',
'spec/data/S21_empty.xml',
'spec/data/S21_no_energy.xml',
]

self.report = []
Expand Down
7 changes: 7 additions & 0 deletions spec/data/S21_no_energy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Report IdRpt="S21" IdPet="55568" Version="3.2">
<Cnc Id="ZIV0004366654">
<Cnt Id="ORB0000631939">
<S21 Fh="20241221160004647W" Ca="4" I3="2.6" L1v="220" L1i="2.6" Pimp1="" Pexp1="" Qimp1="" Qexp1="" PF1="" Ca1="" L2v="0" L2i="0.0" Pimp2="" Pexp2="" Qimp2="" Qexp2="" PF2="" Ca2="" L3v="" L3i="" Pimp3="" Pexp3="" Qimp3="" Qexp3="" PF3="" Ca3="" PP="" Fc="5" Eacti="" Eanti="" AIa="" AEa="" R1a="" R2a="" R3a="" R4a=""/>
</Cnt>
</Cnc>
</Report>
49 changes: 49 additions & 0 deletions spec/data/S21_no_energy.xml_result.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[
{
'timestamp': '2024-12-21 16:00:04',
'season': 'W',
'active_quadrant': 4,
'current_sum_3_phases': 2.6,

'voltage1': 220,
'current1': 2.6,
'active_power_import1': 0,
'active_power_export1': 0,
'reactive_power_import1': 0,
'reactive_power_export1': 0,
'power_factor1': 0.0,
'active_quadrant_phase1': 0,

'voltage2': 0,
'current2': 0.0,
'active_power_import2': 0,
'active_power_export2': 0,
'reactive_power_import2': 0,
'reactive_power_export2': 0,
'power_factor2': 0.0,
'active_quadrant_phase2': 0,

'voltage3': 0,
'current3': 0.0,
'active_power_import3': 0,
'active_power_export3': 0,
'reactive_power_import3': 0,
'reactive_power_export3': 0,
'power_factor3': 0.0,
'active_quadrant_phase3': 0,

'phase_presence': [],
'meter_phase': 5,
'current_switch_state': 0,
'previous_switch_state': 0,

'ai': 0,
'ae': 0,
'r1': 0,
'r2': 0,
'r3': 0,
'r4': 0,
'cnc_name': 'ZIV0004366654',
'name': 'ORB0000631939',
}
]

0 comments on commit a531b25

Please sign in to comment.