agb32 / dasp

DASP the Durham Adaptive optics Simulation Platform: Modelling and simulation of adaptive optics systems
https://www.dur.ac.uk/cfai/adaptiveoptics/dasp/
GNU Affero General Public License v3.0
16 stars 10 forks source link

Cast float to int to fix Numpy error #8

Closed maximecharriere closed 3 years ago

maximecharriere commented 3 years ago

When you run the daspbuilder.py to build a Solar simulation, the params.py file generated has a cast issue.
The loadPyConfig method from the readConfig.py#205 class throw the error :

TypeError : 'float' object cannot be interpreted as an index

UbuntuDaspInstalld1

This PR correct this error