forked from sunspec/pysunspec2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sunspec#71 - Populate repeating block groups from file
Even though the group_class is being passed the index, it is not being used at the point level, and any update that I tried to use it at the point level resulted in the output changing, and lots of tests failing. Using the index as part of the _init_repeating_group instead, without passing it to the group_class, provides the expected results. Note that this follows the same logic as if the count is available (line 530).
- Loading branch information
Showing
3 changed files
with
223 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
{ | ||
"name": null, | ||
"did": "fa0a9f2d-d503-470e-8ce8-ec9c51428829", | ||
"models": [ | ||
{ | ||
"ID": 1, | ||
"L": 66, | ||
"Mn": "Device Manufacturer", | ||
"Md": "Inverter 123", | ||
"Opt": null, | ||
"Vr": "v0.0.1", | ||
"SN": "9999abcd", | ||
"DA": null, | ||
"Pad": 32768 | ||
}, | ||
{ | ||
"ID": 129, | ||
"L": 210, | ||
"ActCrv": 1, | ||
"ModEna": 0, | ||
"WinTms": null, | ||
"RvrtTms": null, | ||
"RmpTms": null, | ||
"NCrv": 4, | ||
"NPt": 10, | ||
"Tms_SF": -2, | ||
"V_SF": -1, | ||
"Pad": 32768, | ||
"curve": [ | ||
{ | ||
"ActPt": 4, | ||
"Tms1": 200, | ||
"V1": 880, | ||
"Tms2": 71, | ||
"V2": 650, | ||
"Tms3": 20, | ||
"V3": 450, | ||
"Tms4": 0, | ||
"V4": 300, | ||
"Tms5": 0, | ||
"V5": 0, | ||
"Tms6": 0, | ||
"V6": 0, | ||
"Tms7": 0, | ||
"V7": 0, | ||
"Tms8": 0, | ||
"V8": 0, | ||
"Tms9": 0, | ||
"V9": 0, | ||
"Tms10": 0, | ||
"V10": 0, | ||
"Tms11": null, | ||
"V11": null, | ||
"Tms12": null, | ||
"V12": null, | ||
"Tms13": null, | ||
"V13": null, | ||
"Tms14": null, | ||
"V14": null, | ||
"Tms15": null, | ||
"V15": null, | ||
"Tms16": null, | ||
"V16": null, | ||
"Tms17": null, | ||
"V17": null, | ||
"Tms18": null, | ||
"V18": null, | ||
"Tms19": null, | ||
"V19": null, | ||
"Tms20": null, | ||
"V20": null, | ||
"CrvNam": null, | ||
"ReadOnly": 1 | ||
}, | ||
{ | ||
"ActPt": 0, | ||
"Tms1": 0, | ||
"V1": 0, | ||
"Tms2": 0, | ||
"V2": 0, | ||
"Tms3": 0, | ||
"V3": 0, | ||
"Tms4": 0, | ||
"V4": 0, | ||
"Tms5": 0, | ||
"V5": 0, | ||
"Tms6": 0, | ||
"V6": 0, | ||
"Tms7": 0, | ||
"V7": 0, | ||
"Tms8": 0, | ||
"V8": 0, | ||
"Tms9": 0, | ||
"V9": 0, | ||
"Tms10": 0, | ||
"V10": 0, | ||
"Tms11": null, | ||
"V11": null, | ||
"Tms12": null, | ||
"V12": null, | ||
"Tms13": null, | ||
"V13": null, | ||
"Tms14": null, | ||
"V14": null, | ||
"Tms15": null, | ||
"V15": null, | ||
"Tms16": null, | ||
"V16": null, | ||
"Tms17": null, | ||
"V17": null, | ||
"Tms18": null, | ||
"V18": null, | ||
"Tms19": null, | ||
"V19": null, | ||
"Tms20": null, | ||
"V20": null, | ||
"CrvNam": null, | ||
"ReadOnly": 0 | ||
}, | ||
{ | ||
"ActPt": 0, | ||
"Tms1": 0, | ||
"V1": 0, | ||
"Tms2": 0, | ||
"V2": 0, | ||
"Tms3": 0, | ||
"V3": 0, | ||
"Tms4": 0, | ||
"V4": 0, | ||
"Tms5": 0, | ||
"V5": 0, | ||
"Tms6": 0, | ||
"V6": 0, | ||
"Tms7": 0, | ||
"V7": 0, | ||
"Tms8": 0, | ||
"V8": 0, | ||
"Tms9": 0, | ||
"V9": 0, | ||
"Tms10": 0, | ||
"V10": 0, | ||
"Tms11": null, | ||
"V11": null, | ||
"Tms12": null, | ||
"V12": null, | ||
"Tms13": null, | ||
"V13": null, | ||
"Tms14": null, | ||
"V14": null, | ||
"Tms15": null, | ||
"V15": null, | ||
"Tms16": null, | ||
"V16": null, | ||
"Tms17": null, | ||
"V17": null, | ||
"Tms18": null, | ||
"V18": null, | ||
"Tms19": null, | ||
"V19": null, | ||
"Tms20": null, | ||
"V20": null, | ||
"CrvNam": null, | ||
"ReadOnly": 0 | ||
}, | ||
{ | ||
"ActPt": 0, | ||
"Tms1": 0, | ||
"V1": 0, | ||
"Tms2": 0, | ||
"V2": 0, | ||
"Tms3": 0, | ||
"V3": 0, | ||
"Tms4": 0, | ||
"V4": 0, | ||
"Tms5": 0, | ||
"V5": 0, | ||
"Tms6": 0, | ||
"V6": 0, | ||
"Tms7": 0, | ||
"V7": 0, | ||
"Tms8": 0, | ||
"V8": 0, | ||
"Tms9": 0, | ||
"V9": 0, | ||
"Tms10": 0, | ||
"V10": 0, | ||
"Tms11": null, | ||
"V11": null, | ||
"Tms12": null, | ||
"V12": null, | ||
"Tms13": null, | ||
"V13": null, | ||
"Tms14": null, | ||
"V14": null, | ||
"Tms15": null, | ||
"V15": null, | ||
"Tms16": null, | ||
"V16": null, | ||
"Tms17": null, | ||
"V17": null, | ||
"Tms18": null, | ||
"V18": null, | ||
"Tms19": null, | ||
"V19": null, | ||
"Tms20": null, | ||
"V20": null, | ||
"CrvNam": null, | ||
"ReadOnly": 0 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters