-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1431 from virtualcell/sbml-to-finite-volume-input
Sbml to finite volume input
- Loading branch information
Showing
36 changed files
with
3,008 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ setup.cfg | |
setup.py | ||
test-requirements.txt | ||
.gitlab-ci.yml | ||
.travis.yml | ||
.travis.yml | ||
pyproject.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# vcell_client.SolverResourceApi | ||
|
||
All URIs are relative to *https://vcell-dev.cam.uchc.edu* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**get_fv_solver_input**](SolverResourceApi.md#get_fv_solver_input) | **GET** /api/v1/solver/getFVSolverInput | Retrieve finite volume input from SBML spatial model. | ||
|
||
|
||
# **get_fv_solver_input** | ||
> bytearray get_fv_solver_input(sbml_file=sbml_file) | ||
Retrieve finite volume input from SBML spatial model. | ||
|
||
### Example | ||
|
||
```python | ||
import time | ||
import os | ||
import vcell_client | ||
from vcell_client.rest import ApiException | ||
from pprint import pprint | ||
|
||
# Defining the host is optional and defaults to https://vcell-dev.cam.uchc.edu | ||
# See configuration.py for a list of all supported configuration parameters. | ||
configuration = vcell_client.Configuration( | ||
host = "https://vcell-dev.cam.uchc.edu" | ||
) | ||
|
||
|
||
# Enter a context with an instance of the API client | ||
with vcell_client.ApiClient(configuration) as api_client: | ||
# Create an instance of the API class | ||
api_instance = vcell_client.SolverResourceApi(api_client) | ||
sbml_file = None # bytearray | (optional) | ||
|
||
try: | ||
# Retrieve finite volume input from SBML spatial model. | ||
api_response = api_instance.get_fv_solver_input(sbml_file=sbml_file) | ||
print("The response of SolverResourceApi->get_fv_solver_input:\n") | ||
pprint(api_response) | ||
except Exception as e: | ||
print("Exception when calling SolverResourceApi->get_fv_solver_input: %s\n" % e) | ||
``` | ||
|
||
|
||
|
||
### Parameters | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**sbml_file** | **bytearray**| | [optional] | ||
|
||
### Return type | ||
|
||
**bytearray** | ||
|
||
### Authorization | ||
|
||
No authorization required | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: multipart/form-data | ||
- **Accept**: application/octet-stream | ||
|
||
### HTTP response details | ||
| Status code | Description | Response headers | | ||
|-------------|-------------|------------------| | ||
**200** | OK | - | | ||
|
||
[[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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# vcell_client.SpatialResourceApi | ||
|
||
All URIs are relative to *https://vcell-dev.cam.uchc.edu* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**retrieve_finite_volume_input_from_spatial_model**](SpatialResourceApi.md#retrieve_finite_volume_input_from_spatial_model) | **GET** /api/v1/spatial/retrieveFiniteVolumeInputFromSpatialModel | Retrieve finite volume input from spatial model | ||
|
||
|
||
# **retrieve_finite_volume_input_from_spatial_model** | ||
> bytearray retrieve_finite_volume_input_from_spatial_model(sbml_file=sbml_file) | ||
Retrieve finite volume input from spatial model | ||
|
||
### Example | ||
|
||
```python | ||
import time | ||
import os | ||
import vcell_client | ||
from vcell_client.rest import ApiException | ||
from pprint import pprint | ||
|
||
# Defining the host is optional and defaults to https://vcell-dev.cam.uchc.edu | ||
# See configuration.py for a list of all supported configuration parameters. | ||
configuration = vcell_client.Configuration( | ||
host = "https://vcell-dev.cam.uchc.edu" | ||
) | ||
|
||
|
||
# Enter a context with an instance of the API client | ||
with vcell_client.ApiClient(configuration) as api_client: | ||
# Create an instance of the API class | ||
api_instance = vcell_client.SpatialResourceApi(api_client) | ||
sbml_file = None # bytearray | (optional) | ||
|
||
try: | ||
# Retrieve finite volume input from spatial model | ||
api_response = api_instance.retrieve_finite_volume_input_from_spatial_model(sbml_file=sbml_file) | ||
print("The response of SpatialResourceApi->retrieve_finite_volume_input_from_spatial_model:\n") | ||
pprint(api_response) | ||
except Exception as e: | ||
print("Exception when calling SpatialResourceApi->retrieve_finite_volume_input_from_spatial_model: %s\n" % e) | ||
``` | ||
|
||
|
||
|
||
### Parameters | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**sbml_file** | **bytearray**| | [optional] | ||
|
||
### Return type | ||
|
||
**bytearray** | ||
|
||
### Authorization | ||
|
||
No authorization required | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: multipart/form-data | ||
- **Accept**: application/octet-stream | ||
|
||
### HTTP response details | ||
| Status code | Description | Response headers | | ||
|-------------|-------------|------------------| | ||
**200** | OK | - | | ||
|
||
[[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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
VCell API | ||
VCell API | ||
The version of the OpenAPI document: 1.0.1 | ||
Contact: [email protected] | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
|
||
import unittest | ||
|
||
from vcell_client.api.solver_resource_api import SolverResourceApi | ||
|
||
|
||
class TestSolverResourceApi(unittest.TestCase): | ||
"""SolverResourceApi unit test stubs""" | ||
|
||
def setUp(self) -> None: | ||
self.api = SolverResourceApi() | ||
|
||
def tearDown(self) -> None: | ||
pass | ||
|
||
def test_get_fv_solver_input(self) -> None: | ||
"""Test case for get_fv_solver_input | ||
Retrieve finite volume input from SBML spatial model. | ||
""" | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
VCell API | ||
VCell API | ||
The version of the OpenAPI document: 1.0.1 | ||
Contact: [email protected] | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
|
||
import unittest | ||
|
||
from vcell_client.api.spatial_resource_api import SpatialResourceApi | ||
|
||
|
||
class TestSpatialResourceApi(unittest.TestCase): | ||
"""SpatialResourceApi unit test stubs""" | ||
|
||
def setUp(self) -> None: | ||
self.api = SpatialResourceApi() | ||
|
||
def tearDown(self) -> None: | ||
pass | ||
|
||
def test_retrieve_finite_volume_input_from_spatial_model(self) -> None: | ||
"""Test case for retrieve_finite_volume_input_from_spatial_model | ||
Retrieve finite volume input from spatial model | ||
""" | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.