Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API put /results fails with response 500 #647

Open
JanMarcoRuizdeVargas opened this issue May 14, 2024 · 1 comment
Open

API put /results fails with response 500 #647

JanMarcoRuizdeVargas opened this issue May 14, 2024 · 1 comment

Comments

@JanMarcoRuizdeVargas
Copy link

JanMarcoRuizdeVargas commented May 14, 2024

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
Copy link
Collaborator

dhblum commented May 14, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants