Skip to content

Commit 509e557

Browse files
committed
added vcml to fvsolver input API endpoint with manual patch
1 parent 70b6ba4 commit 509e557

File tree

15 files changed

+1148
-80
lines changed

15 files changed

+1148
-80
lines changed

python-restclient/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ Class | Method | HTTP request | Description
107107
*SimulationResourceApi* | [**get_simulation_status**](docs/SimulationResourceApi.md#get_simulation_status) | **GET** /api/v1/Simulation/{simID}/simulationStatus | Get the status of simulation running
108108
*SimulationResourceApi* | [**start_simulation**](docs/SimulationResourceApi.md#start_simulation) | **POST** /api/v1/Simulation/{simID}/startSimulation | Start a simulation.
109109
*SimulationResourceApi* | [**stop_simulation**](docs/SimulationResourceApi.md#stop_simulation) | **POST** /api/v1/Simulation/{simID}/stopSimulation | Stop a simulation.
110-
*SolverResourceApi* | [**get_fv_solver_input**](docs/SolverResourceApi.md#get_fv_solver_input) | **POST** /api/v1/solver/getFVSolverInput | Retrieve finite volume input from SBML spatial model.
110+
*SolverResourceApi* | [**get_fv_solver_input_from_sbml**](docs/SolverResourceApi.md#get_fv_solver_input_from_sbml) | **POST** /api/v1/solver/getFVSolverInput | Retrieve finite volume input from SBML spatial model.
111+
*SolverResourceApi* | [**get_fv_solver_input_from_vcml**](docs/SolverResourceApi.md#get_fv_solver_input_from_vcml) | **POST** /api/v1/solver/getFVSolverInputFromVCML | Retrieve finite volume input from SBML spatial model.
111112
*UsersResourceApi* | [**forgot_legacy_password**](docs/UsersResourceApi.md#forgot_legacy_password) | **POST** /api/v1/users/forgotLegacyPassword | The end user has forgotten the legacy password they used for VCell, so they will be emailed it.
112113
*UsersResourceApi* | [**get_guest_legacy_api_token**](docs/UsersResourceApi.md#get_guest_legacy_api_token) | **POST** /api/v1/users/guestBearerToken | Method to get legacy tokens for guest users
113114
*UsersResourceApi* | [**get_legacy_api_token**](docs/UsersResourceApi.md#get_legacy_api_token) | **POST** /api/v1/users/bearerToken | Get token for legacy API

python-restclient/docs/SolverResourceApi.md

Lines changed: 77 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ All URIs are relative to *https://vcell-dev.cam.uchc.edu*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**get_fv_solver_input**](SolverResourceApi.md#get_fv_solver_input) | **POST** /api/v1/solver/getFVSolverInput | Retrieve finite volume input from SBML spatial model.
7+
[**get_fv_solver_input_from_sbml**](SolverResourceApi.md#get_fv_solver_input_from_sbml) | **POST** /api/v1/solver/getFVSolverInput | Retrieve finite volume input from SBML spatial model.
8+
[**get_fv_solver_input_from_vcml**](SolverResourceApi.md#get_fv_solver_input_from_vcml) | **POST** /api/v1/solver/getFVSolverInputFromVCML | Retrieve finite volume input from SBML spatial model.
89

910

10-
# **get_fv_solver_input**
11-
> bytearray get_fv_solver_input(sbml_file=sbml_file)
11+
# **get_fv_solver_input_from_sbml**
12+
> bytearray get_fv_solver_input_from_sbml(sbml_file=sbml_file, duration=duration, output_time_step=output_time_step)
1213
1314
Retrieve finite volume input from SBML spatial model.
1415

@@ -33,14 +34,16 @@ with vcell_client.ApiClient(configuration) as api_client:
3334
# Create an instance of the API class
3435
api_instance = vcell_client.SolverResourceApi(api_client)
3536
sbml_file = None # bytearray | (optional)
37+
duration = 5.0 # float | (optional) (default to 5.0)
38+
output_time_step = 0.1 # float | (optional) (default to 0.1)
3639

3740
try:
3841
# Retrieve finite volume input from SBML spatial model.
39-
api_response = api_instance.get_fv_solver_input(sbml_file=sbml_file)
40-
print("The response of SolverResourceApi->get_fv_solver_input:\n")
42+
api_response = api_instance.get_fv_solver_input_from_sbml(sbml_file=sbml_file, duration=duration, output_time_step=output_time_step)
43+
print("The response of SolverResourceApi->get_fv_solver_input_from_sbml:\n")
4144
pprint(api_response)
4245
except Exception as e:
43-
print("Exception when calling SolverResourceApi->get_fv_solver_input: %s\n" % e)
46+
print("Exception when calling SolverResourceApi->get_fv_solver_input_from_sbml: %s\n" % e)
4447
```
4548

4649

@@ -50,6 +53,74 @@ with vcell_client.ApiClient(configuration) as api_client:
5053
Name | Type | Description | Notes
5154
------------- | ------------- | ------------- | -------------
5255
**sbml_file** | **bytearray**| | [optional]
56+
**duration** | **float**| | [optional] [default to 5.0]
57+
**output_time_step** | **float**| | [optional] [default to 0.1]
58+
59+
### Return type
60+
61+
**bytearray**
62+
63+
### Authorization
64+
65+
No authorization required
66+
67+
### HTTP request headers
68+
69+
- **Content-Type**: multipart/form-data
70+
- **Accept**: application/octet-stream
71+
72+
### HTTP response details
73+
| Status code | Description | Response headers |
74+
|-------------|-------------|------------------|
75+
**200** | OK | - |
76+
77+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
78+
79+
# **get_fv_solver_input_from_vcml**
80+
> bytearray get_fv_solver_input_from_vcml(vcml_file=vcml_file, simulation_name=simulation_name)
81+
82+
Retrieve finite volume input from SBML spatial model.
83+
84+
### Example
85+
86+
```python
87+
import time
88+
import os
89+
import vcell_client
90+
from vcell_client.rest import ApiException
91+
from pprint import pprint
92+
93+
# Defining the host is optional and defaults to https://vcell-dev.cam.uchc.edu
94+
# See configuration.py for a list of all supported configuration parameters.
95+
configuration = vcell_client.Configuration(
96+
host = "https://vcell-dev.cam.uchc.edu"
97+
)
98+
99+
100+
# Enter a context with an instance of the API client
101+
with vcell_client.ApiClient(configuration) as api_client:
102+
# Create an instance of the API class
103+
api_instance = vcell_client.SolverResourceApi(api_client)
104+
vcml_file = None # bytearray | (optional)
105+
simulation_name = 'simulation_name_example' # str | (optional)
106+
107+
try:
108+
# Retrieve finite volume input from SBML spatial model.
109+
api_response = api_instance.get_fv_solver_input_from_vcml(vcml_file=vcml_file, simulation_name=simulation_name)
110+
print("The response of SolverResourceApi->get_fv_solver_input_from_vcml:\n")
111+
pprint(api_response)
112+
except Exception as e:
113+
print("Exception when calling SolverResourceApi->get_fv_solver_input_from_vcml: %s\n" % e)
114+
```
115+
116+
117+
118+
### Parameters
119+
120+
Name | Type | Description | Notes
121+
------------- | ------------- | ------------- | -------------
122+
**vcml_file** | **bytearray**| | [optional]
123+
**simulation_name** | **str**| | [optional]
53124

54125
### Return type
55126

0 commit comments

Comments
 (0)