pvblocks 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl
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.
Potentially problematic release.
This version of pvblocks might be problematic. Click here for more details.
- pvblocks/__init__.py +1 -1
- pvblocks/pvblocks_system.py +2 -4
- {pvblocks-0.1.1.dist-info → pvblocks-0.1.2.dist-info}/METADATA +1 -1
- pvblocks-0.1.2.dist-info/RECORD +10 -0
- {pvblocks-0.1.1.dist-info → pvblocks-0.1.2.dist-info}/WHEEL +1 -1
- pvblocks-0.1.1.dist-info/RECORD +0 -10
- {pvblocks-0.1.1.dist-info → pvblocks-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {pvblocks-0.1.1.dist-info → pvblocks-0.1.2.dist-info}/top_level.txt +0 -0
pvblocks/__init__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
VERSION = '0.1.
|
|
1
|
+
VERSION = '0.1.2'
|
|
2
2
|
__version__ = VERSION
|
pvblocks/pvblocks_system.py
CHANGED
|
@@ -183,7 +183,7 @@ class IvMpp(PvBlock):
|
|
|
183
183
|
voltage = 0.0;
|
|
184
184
|
self.open()
|
|
185
185
|
bytes = list(((int)(1000 * voltage)).to_bytes(4, "little"))
|
|
186
|
-
self.uart.write(serial.to_bytes([2, constants.
|
|
186
|
+
self.uart.write(serial.to_bytes([2, constants.VOLTAGE_COMMAND, bytes[0], bytes[1], bytes[2], bytes[3]]))
|
|
187
187
|
sleep(0.5)
|
|
188
188
|
self.close()
|
|
189
189
|
|
|
@@ -191,7 +191,7 @@ class IvMpp(PvBlock):
|
|
|
191
191
|
self.open()
|
|
192
192
|
bytes = list(((int)(1000 * voltage)).to_bytes(4, "little"))
|
|
193
193
|
self.uart.write(
|
|
194
|
-
serial.to_bytes([2, constants.
|
|
194
|
+
serial.to_bytes([2, constants.VOLTAGE_COMMAND, bytes[0], bytes[1], bytes[2], bytes[3]]))
|
|
195
195
|
sleep(0.5)
|
|
196
196
|
self.close()
|
|
197
197
|
|
|
@@ -217,7 +217,6 @@ class IvMpp(PvBlock):
|
|
|
217
217
|
status = self.read_statusbyte()
|
|
218
218
|
|
|
219
219
|
self.close()
|
|
220
|
-
|
|
221
220
|
points_measured = status.statusbytes[0]
|
|
222
221
|
curve = self.transfer_curve(points_measured)
|
|
223
222
|
|
|
@@ -239,7 +238,6 @@ class IvMpp(PvBlock):
|
|
|
239
238
|
voltages = []
|
|
240
239
|
currents = []
|
|
241
240
|
|
|
242
|
-
print(availablebytes)
|
|
243
241
|
for i in range(1, int((availablebytes - 1)/8)):
|
|
244
242
|
index = (i * 8) + 1
|
|
245
243
|
voltages.append(int.from_bytes(bts[index:(index+4)], "little") / 10000.0)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
pvblocks/__init__.py,sha256=YtH44tlJ8Htst82J4tX1NygWj2MPa2pwXBzp6X-40Ow,42
|
|
2
|
+
pvblocks/__main__.py,sha256=fhvwtf6NzUeUsjP_ARtvxcmYjAvfwqz9_K1bHFwEjUg,84
|
|
3
|
+
pvblocks/constants.py,sha256=MzQ_7Kgmks8F7KqRwEsGIdkFzP5pubjJzfxgbtwFvGk,889
|
|
4
|
+
pvblocks/exceptions.py,sha256=we35JF-svaCDAFYqKFlDCp7ZwbCU0FQe7nksKpUfPnQ,850
|
|
5
|
+
pvblocks/pvblocks_system.py,sha256=bcztbqg8SMSpRbXJu1wQl-s8qIlZWTUktJmcuoZp0n4,9997
|
|
6
|
+
pvblocks-0.1.2.dist-info/licenses/LICENSE,sha256=8xnw0w04bL1ekO1BTZPbMkUbonvCNWVu6G6k4QIFRns,1091
|
|
7
|
+
pvblocks-0.1.2.dist-info/METADATA,sha256=mFqj5WfF_vuEJ3uNFmHcfgtDK8C4B-RlOXiGhMmv7Ew,593
|
|
8
|
+
pvblocks-0.1.2.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
|
9
|
+
pvblocks-0.1.2.dist-info/top_level.txt,sha256=3jm7rpxZDuLfYKWbVj6i1IZJib2hTFVYxbsR68po7O8,9
|
|
10
|
+
pvblocks-0.1.2.dist-info/RECORD,,
|
pvblocks-0.1.1.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
pvblocks/__init__.py,sha256=IIowXUr-xAaZCUhjyVsp1GPDlYaCN8kOX_OZ0i2mWnA,42
|
|
2
|
-
pvblocks/__main__.py,sha256=fhvwtf6NzUeUsjP_ARtvxcmYjAvfwqz9_K1bHFwEjUg,84
|
|
3
|
-
pvblocks/constants.py,sha256=MzQ_7Kgmks8F7KqRwEsGIdkFzP5pubjJzfxgbtwFvGk,889
|
|
4
|
-
pvblocks/exceptions.py,sha256=we35JF-svaCDAFYqKFlDCp7ZwbCU0FQe7nksKpUfPnQ,850
|
|
5
|
-
pvblocks/pvblocks_system.py,sha256=zrxS6_3v2OiQMuSqSGBTNBQhk61ZfxDcnHdpgj-6fZE,10056
|
|
6
|
-
pvblocks-0.1.1.dist-info/licenses/LICENSE,sha256=8xnw0w04bL1ekO1BTZPbMkUbonvCNWVu6G6k4QIFRns,1091
|
|
7
|
-
pvblocks-0.1.1.dist-info/METADATA,sha256=HLzD4VMcfEa5p6s0ZN5W6NLo4PxEKbIwuz7Bk8BDXmU,593
|
|
8
|
-
pvblocks-0.1.1.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
9
|
-
pvblocks-0.1.1.dist-info/top_level.txt,sha256=3jm7rpxZDuLfYKWbVj6i1IZJib2hTFVYxbsR68po7O8,9
|
|
10
|
-
pvblocks-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|