Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
updated gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Mar 5, 2024
1 parent 8a6af75 commit 8b07048
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
buildImage.yaml
.python-version
__pycache__/
.idea/
*.ipynb_checkpoints/
dist/
.DS_Store
*.egg-info/
refresh-env.sh
smoldyn-2.72-mac/
build/
commit.sh
install.sh
push-image.sh
release.sh
run.sh
ray_job.sh
__pycache__
.pytest_cache
submit-biosimulators-container.sh
.vagrant
._vagrant
.THIS-IS-FOR-CONTAINER-DEV-ONLY
buildDockerImage.yml
.env

4 changes: 3 additions & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions biosimulator_processes/steps/parameter_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class DeterministicTimeCourseParameterScan(Step):
config_schema = {
'process_config': TimeCourseProcessConfigSchema().model_dump(),
'n_iterations': 'int',
'iter_stop': 'float',
'iter_start': 'maybe[float]',
'perturbation_magnitude': 'float',
'parameters': 'list[object]'}
Expand All @@ -72,6 +73,7 @@ def __init__(self):
self.params_to_scan: List[ModelParameter] = self.config.get('parameters', [])
self.n_iterations = self.config['n_iterations']
self.iter_start = self.config.get('iter_start', 0.0)
self.iter_stop = self.config['iter_stop']


def initial_state(self):
Expand All @@ -95,8 +97,8 @@ def update(self, input):
results = {}
scan_range = np.linspace(
start=self.iter_start,
stop=self.n_iterations,
num=self.config['perturbation_magnitude']).tolist()
stop=self.iter_stop,
num=self.n_iterations).tolist()

for index, perturbed in enumerate(scan_range):
interval = input['time']
Expand Down

0 comments on commit 8b07048

Please sign in to comment.