Skip to content

[BUG] error in manual experiment specification #242

@qai222

Description

@qai222

Describe the bug
cannot parse manual experiment specifications for workflow3

To Reproduce

  1. create experiment at https://escalate.cs.haverford.edu/experiment-instance/, using Workflow 3 template with a dummy experiment name, then click next step
  2. use default values for all steps from 2 to 5
  3. at step 6, download the xlsx sheet, then upload
  4. error out
Traceback (most recent call last):
  File "/home/student/escalate/env/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/home/student/escalate/env/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/student/escalate/env/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/student/escalate/env/lib/python3.9/site-packages/django/contrib/auth/mixins.py", line 71, in dispatch
    return super().dispatch(request, *args, **kwargs)
  File "/home/student/escalate/env/lib/python3.9/site-packages/formtools/wizard/views.py", line 244, in dispatch
    response = super().dispatch(request, *args, **kwargs)
  File "/home/student/escalate/env/lib/python3.9/site-packages/django/views/generic/base.py", line 98, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/student/escalate/env/lib/python3.9/site-packages/formtools/wizard/views.py", line 296, in post
    self.storage.set_step_data(self.steps.current, self.process_step(form))
  File "/home/student/escalate/ESCALATE/escalate/core/views/experiment/wizard.py", line 288, in process_step
    experiment_data.parse_manual_file(df_dict)
  File "/home/student/escalate/ESCALATE/escalate/core/dataclass.py", line 181, in parse_manual_file
    action_data = self.action_parameters[action_template]

Exception Type: KeyError at /experiment-instance/
Exception Value: <ActionTemplate: Dispense Reagent 9 - Antisolvent>

Additional context
works fine for a dummy experiment template without defined action sequence

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions