This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
forked from vivarium-collective/biosimulator-processes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: updated data model for class methods and error fix
- Loading branch information
1 parent
a905e54
commit 56e248a
Showing
3 changed files
with
176 additions
and
112 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
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,120 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"id": "initial_id", | ||
"metadata": { | ||
"collapsed": true, | ||
"ExecuteTime": { | ||
"end_time": "2024-03-01T16:47:21.583961Z", | ||
"start_time": "2024-03-01T16:47:21.581681Z" | ||
} | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"import sys \n", | ||
"\n", | ||
"sys.path.insert(0, '..')" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"CobraProcess registered successfully.\n", | ||
"CopasiProcess not available. Error: No module named 'biosimulator_processes.process_types'\n", | ||
"SmoldynProcess registered successfully.\n", | ||
"TelluriumProcess registered successfully.\n" | ||
] | ||
}, | ||
{ | ||
"name": "stderr", | ||
"output_type": "stream", | ||
"text": [ | ||
"/Users/alex/Library/Caches/pypoetry/virtualenvs/biosimulator-processes-KVuYbFzt-py3.10/lib/python3.10/site-packages/pydantic/_internal/_fields.py:151: UserWarning:\n", | ||
"\n", | ||
"Field \"model_id\" has conflict with protected namespace \"model_\".\n", | ||
"\n", | ||
"You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.\n", | ||
"\n", | ||
"/Users/alex/Library/Caches/pypoetry/virtualenvs/biosimulator-processes-KVuYbFzt-py3.10/lib/python3.10/site-packages/pydantic/_internal/_fields.py:151: UserWarning:\n", | ||
"\n", | ||
"Field \"model_source\" has conflict with protected namespace \"model_\".\n", | ||
"\n", | ||
"You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.\n", | ||
"\n", | ||
"/Users/alex/Library/Caches/pypoetry/virtualenvs/biosimulator-processes-KVuYbFzt-py3.10/lib/python3.10/site-packages/pydantic/_internal/_fields.py:151: UserWarning:\n", | ||
"\n", | ||
"Field \"model_language\" has conflict with protected namespace \"model_\".\n", | ||
"\n", | ||
"You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.\n", | ||
"\n", | ||
"/Users/alex/Library/Caches/pypoetry/virtualenvs/biosimulator-processes-KVuYbFzt-py3.10/lib/python3.10/site-packages/pydantic/_internal/_fields.py:151: UserWarning:\n", | ||
"\n", | ||
"Field \"model_name\" has conflict with protected namespace \"model_\".\n", | ||
"\n", | ||
"You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.\n", | ||
"\n", | ||
"/Users/alex/Library/Caches/pypoetry/virtualenvs/biosimulator-processes-KVuYbFzt-py3.10/lib/python3.10/site-packages/pydantic/_internal/_fields.py:151: UserWarning:\n", | ||
"\n", | ||
"Field \"model_changes\" has conflict with protected namespace \"model_\".\n", | ||
"\n", | ||
"You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.\n", | ||
"\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"from biosimulator_processes.data_model import *" | ||
], | ||
"metadata": { | ||
"collapsed": false, | ||
"ExecuteTime": { | ||
"end_time": "2024-03-01T16:47:23.232487Z", | ||
"start_time": "2024-03-01T16:47:21.584280Z" | ||
} | ||
}, | ||
"id": "3cd5053431aed7e1", | ||
"execution_count": 2 | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"outputs": [], | ||
"source": [], | ||
"metadata": { | ||
"collapsed": false, | ||
"ExecuteTime": { | ||
"end_time": "2024-03-01T16:47:23.234568Z", | ||
"start_time": "2024-03-01T16:47:23.232709Z" | ||
} | ||
}, | ||
"id": "6bf18cbc74f1f95f", | ||
"execution_count": 2 | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 2 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython2", | ||
"version": "2.7.6" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |