ibpsa / project1-boptest

Building Optimization Performance Tests
Other
107 stars 69 forks source link

API put /results fails with response 500 #647

Open JanMarcoRuizdeVargas opened 4 months ago

JanMarcoRuizdeVargas commented 4 months ago

Hi, I am trying to reproduce some code from the RLEM2023 workshop, but with my local BOPTEST installation. The issue was on 0.5.0, then I upgraded to 0.6.0 but the error persists.

points = ['reaTZon_y', 'reaTSetHea_y', 'reaTSetCoo_y', 'oveHeaPumY_u', 'weaSta_reaWeaTDryBul_y', 'weaSta_reaWeaHDirNor_y'] start_time=31.0243600 final_time=365243600 args = {'point_names':points, start_time':start_time, final_time':final_time}

res = requests.put(f'{url}/results', json=args) res.content b'{"message":"Failed to query simulation results: Traceback (most recent call last):\n File \"/home/user/testcase.py\", line 712, in get_results\n t1 = np_t[np_t>=start_time][0]\nIndexError: index 0 is out of bounds for axis 0 with size 0\n","payload":null,"status":500}\n'

Did I mess up something in the installation or what is going wrong? Thanks in advance for any help!

dhblum commented 4 months ago

Can you confirm during which time you've simulated the test case by the time you are making the /results call? For instance, what time did you initialize to or what time period scenario did you choose? Did you advance the simulation at all?