Skip to content

Fix _Namespace dict-style assignment in main.py; refresh README#39

Merged
cokelaer merged 1 commit intomainfrom
copilot/fix-test-dict-assignment
Apr 5, 2026
Merged

Fix _Namespace dict-style assignment in main.py; refresh README#39
cokelaer merged 1 commit intomainfrom
copilot/fix-test-dict-assignment

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 5, 2026

manager.config.config returns a _Namespace object that supports attribute access but not item assignment, causing TypeError: '_Namespace' object does not support item assignment when the CLI invokes the pipeline.

Changes

  • main.py — replace all cfg["section"]["key"] = value with cfg.section.key = value in the four fill_* helpers, consistent with how other sequana pipelines (e.g. lora) write config values:
# before
cfg["sequana_taxonomy"]["databases"] = [os.path.abspath(x) for x in options["databases"]]
cfg["blast"]["do"] = True

# after
cfg.sequana_taxonomy.databases = [os.path.abspath(x) for x in options["databases"]]
cfg.blast.do = True
  • README.rst — restructured to match lora repo conventions: proper title with ==== underline, --- section headings, Quick Start step flow, dedicated sections for multi-DB usage, Apptainer, SLURM, and BLAST on unclassified reads.

Copy link
Copy Markdown
Contributor

@cokelaer cokelaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay for the readme. the main should not be changed. look at the test/test*py instead to make sure it follows same dict-style access as int he main.py and multitax.rules files

@cokelaer cokelaer marked this pull request as ready for review April 5, 2026 19:07
@cokelaer cokelaer merged commit 1be4c63 into main Apr 5, 2026
3 of 4 checks passed
@cokelaer cokelaer deleted the copilot/fix-test-dict-assignment branch April 5, 2026 19:09
Copilot AI requested a review from cokelaer April 5, 2026 19:09
Copilot stopped work on behalf of cokelaer due to an error April 5, 2026 19:09
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.

2 participants