Skip to content

Array to object fix#4

Draft
hujambo-dunia wants to merge 2 commits intoahmedhamidawan:devfrom
hujambo-dunia:array-to-object-fix
Draft

Array to object fix#4
hujambo-dunia wants to merge 2 commits intoahmedhamidawan:devfrom
hujambo-dunia:array-to-object-fix

Conversation

@hujambo-dunia
Copy link
Copy Markdown
Collaborator

@hujambo-dunia hujambo-dunia commented Jul 27, 2022

For the front-end, two new methods using new results Array-of-Objects format which labels the id (tool name) and score (weights) elements from Whoosh. Previously, the results was an Array-of-Strings format from Whoosh (only an unlabeled tool name). (Note: This code assumes prior codebase related to Sorting methods was working properly.)

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

ahmedhamidawan pushed a commit that referenced this pull request Aug 7, 2024
Fixes galaxyproject#18633:
```
ValueError: dictionary update sequence element #4 has length 1; 2 is required
  File "galaxy/tools/__init__.py", line 1969, in handle_single_execution
    rval = self.execute(
  File "galaxy/tools/__init__.py", line 2066, in execute
    return self.tool_action.execute(
  File "galaxy/tools/actions/model_operations.py", line 89, in execute
    self._produce_outputs(
  File "galaxy/tools/actions/model_operations.py", line 120, in _produce_outputs
    tool.produce_outputs(
  File "galaxy/tools/__init__.py", line 3816, in produce_outputs
    new_labels_dict = dict(source_new_label)

Exception caught while attempting to execute tool with id '__RELABEL_FROM_FILE__':
```
ahmedhamidawan pushed a commit that referenced this pull request Mar 23, 2026
…aired_or_unpaired

Update collection_semantics.yml test references and add workflow framework
tests for flat list and flat sample_sheet mapped over paired_or_unpaired.
Fix mislabeled test #4 doc string.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant