args = {'point_names':['reaTZon_y'],'start_time':-np.inf, 'final_time':np.inf}
res = requests.put('{0}/results'.format(url), data=args).json()['payload']
Note that we need to use -np.inf and np.inf to specify the whole range of the timestamp. Since np (aka numpy) is not native library of python, it introduces extra dependency.
In addition, arguably, it is easier for a user to get a full timestamp of the simulation result and filter it afterward rather than specifying it beforehand. Plus, it is not clear what would be the available start_time and final_time when using PUT/scenario.
Expected/proposal behavior
When leaving start_time, final_time empty, the RestAPI returns the full timestamp of the simulation result (i.e., set start_time==-np.inf, final_time==np.inf as default)
Tag
Feature Required/ User Experience Improvement
Description
As mentioned in https://github.com/ibpsa/project1-boptest/blob/fef02e961dc8ebaaa199ad1580a9cf50c8723e51/docs/workshops/BS21Workshop_20210831/Introduction_to_the_BOPTEST_framework.ipynb?short_path=0c1a91e#L748-L749, to achieve simulation results, we can use the following code snippet.
Note that we need to use
-np.inf
andnp.inf
to specify the whole range of the timestamp. Since np (aka numpy) is not native library of python, it introduces extra dependency. In addition, arguably, it is easier for a user to get a full timestamp of the simulation result and filter it afterward rather than specifying it beforehand. Plus, it is not clear what would be the available start_time and final_time when using PUT/scenario.Expected/proposal behavior
When leaving start_time, final_time empty, the RestAPI returns the full timestamp of the simulation result (i.e., set start_time==-np.inf, final_time==np.inf as default)