Python version problems.
Python version problems
Different versions of Python have enough differences to be troublesome.
Version 2.7.4 calculations use implicit integer types where version 3.6.0 uses implicit float types.
The following examples illustrate the problem:
V2: 7/5=1; -7/5= -2
V3: 7/5=1.4;-7/5= -1.4
Adding a decimal to numbers in V2 converts them to floats:
V2: 7.0/5=1.4
A manual conversion also works:
V2 float(7)/5=1.4
The problem, for me, is version 2.7.4 has the ephemeris module installed. In the computer’s Raspbian operating system, version 2.4 is installed and installing version 3.6 has to be without modules. Hence, the ephemeris module will be absent with 3.6.0. Again, the problem? Different scripts are written with different versions of Python. One or two large sophisticated programs require simultaneous versions of Python.
I decided to use my translation of an Excel spreadsheet instead of the ephemeris. Only version 3.6.0 is required and is summoned with:
“python3.6 NOAA.py”
My calculations of solar incident and solar module irradiation are compatible with version 3.6.0.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home