-
Notifications
You must be signed in to change notification settings - Fork 1
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 #5 from biosimulators/main
updated poetry lock and configs for version
- Loading branch information
Showing
42 changed files
with
2,765 additions
and
11,424 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 |
---|---|---|
|
@@ -21,3 +21,4 @@ submit-biosimulators-container.sh | |
._vagrant | ||
.THIS-IS-FOR-CONTAINER-DEV-ONLY | ||
buildDockerImage.yml | ||
.env |
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 |
---|---|---|
@@ -1,30 +1,27 @@ | ||
from process_bigraph import process_registry | ||
from builder import ProcessTypes | ||
|
||
|
||
# Define a list of processes to attempt to import and register | ||
processes_to_register = [ | ||
PROCESSES_TO_REGISTER = [ | ||
('cobra', 'cobra_process.CobraProcess'), | ||
('copasi', 'copasi_process.CopasiProcess'), | ||
('smoldyn', 'smoldyn_process.SmoldynProcess'), | ||
('tellurium', 'tellurium_process.TelluriumProcess'), | ||
] | ||
|
||
for process_name, process_path in processes_to_register: | ||
CORE = ProcessTypes() | ||
|
||
for process_name, process_path in PROCESSES_TO_REGISTER: | ||
module_name, class_name = process_path.rsplit('.', 1) | ||
try: | ||
# Dynamically import the module | ||
process_module = __import__(f'biosimulator_processes.{module_name}', fromlist=[class_name]) | ||
process_module = __import__( | ||
f'biosimulator_processes.processes.{module_name}', fromlist=[class_name]) | ||
# Get the class from the module | ||
process_class = getattr(process_module, class_name) | ||
|
||
# Register the process | ||
process_registry.register(process_name, process_class) | ||
CORE.process_registry.register(class_name, process_class) | ||
print(f"{class_name} registered successfully.") | ||
except ImportError as e: | ||
print(f"{class_name} not available. Error: {e}") | ||
|
||
|
||
from biosimulator_processes.copasi_process import CopasiProcess | ||
from biosimulator_processes.smoldyn_process import SmoldynProcess | ||
from biosimulator_processes.cobra_process import CobraProcess | ||
from biosimulator_processes.tellurium_process import TelluriumProcess |
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,9 @@ | ||
from typing import * | ||
from builder import Builder | ||
from biosimulator_processes import CORE | ||
|
||
|
||
class BiosimulatorBuilder(Builder): | ||
def __init__(self, schema: Dict, tree: Dict, filepath: str): | ||
super().__init__(schema=schema, tree=tree, file_path=filepath, core=CORE) | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.