Skip to content

Add list_verbs() function to Hyrax#852

Merged
SamSandwich07 merged 11 commits into
mainfrom
issue-820-listing-available-verbs
Apr 13, 2026
Merged

Add list_verbs() function to Hyrax#852
SamSandwich07 merged 11 commits into
mainfrom
issue-820-listing-available-verbs

Conversation

@SamSandwich07

Copy link
Copy Markdown
Collaborator

Closes #820

Adds a list_verbs() function to hyrax.py and an information() function to the Verb class in verb_registry.py which allows each verb to return a string containing information about itself; users can call h.list_verbs() to get a list of the information strings for each Verb in hyrax.

@SamSandwich07 SamSandwich07 changed the title initial commit list_verbs() function Mar 31, 2026
@SamSandwich07 SamSandwich07 changed the title list_verbs() function Add list_verbs() function to Hyrax Mar 31, 2026
@codecov

codecov Bot commented Mar 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 68.00000% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.54%. Comparing base (3482d5b) to head (329e396).
⚠️ Report is 155 commits behind head on main.

Files with missing lines Patch % Lines
src/hyrax/verbs/verb_registry.py 44.44% 5 Missing ⚠️
src/hyrax/hyrax.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #852   +/-   ##
=======================================
  Coverage   66.53%   66.54%           
=======================================
  Files          63       62    -1     
  Lines        6506     6513    +7     
=======================================
+ Hits         4329     4334    +5     
- Misses       2177     2179    +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Mar 31, 2026

Copy link
Copy Markdown
Before [3482d5b] After [d2e4aaf] Ratio Benchmark (Parameter)
271±3ms 7.25±0.1s ~26.75 benchmarks.time_import
1.61G failed n/a vector_db_benchmarks.VectorDBInsertBenchmarks.peakmem_load_vector_db(16384, 'chromadb')
4.15G failed n/a vector_db_benchmarks.VectorDBInsertBenchmarks.peakmem_load_vector_db(16384, 'qdrant')
1.17G failed n/a vector_db_benchmarks.VectorDBInsertBenchmarks.peakmem_load_vector_db(2048, 'chromadb')
1.47G failed n/a vector_db_benchmarks.VectorDBInsertBenchmarks.peakmem_load_vector_db(2048, 'qdrant')
1.04G failed n/a vector_db_benchmarks.VectorDBInsertBenchmarks.peakmem_load_vector_db(256, 'chromadb')
1.08G failed n/a vector_db_benchmarks.VectorDBInsertBenchmarks.peakmem_load_vector_db(256, 'qdrant')
1.02G failed n/a vector_db_benchmarks.VectorDBInsertBenchmarks.peakmem_load_vector_db(64, 'chromadb')
1.03G failed n/a vector_db_benchmarks.VectorDBInsertBenchmarks.peakmem_load_vector_db(64, 'qdrant')
25.0±0.3s failed n/a vector_db_benchmarks.VectorDBInsertBenchmarks.time_load_vector_db(16384, 'chromadb')

Click here to view all benchmarks.

Comment thread src/hyrax/verbs/search.py Outdated
Comment thread src/hyrax/verbs/train.py Outdated
Comment thread src/hyrax/verbs/model.py Outdated
Comment thread src/hyrax/verbs/infer.py
Comment thread src/hyrax/verbs/database_connection.py
Comment thread src/hyrax/hyrax.py Outdated
Comment thread src/hyrax/verbs/verb_registry.py Outdated
SamSandwich07 and others added 4 commits March 31, 2026 19:40
Co-authored-by: Drew Oldag <47493171+drewoldag@users.noreply.github.com>
Co-authored-by: Drew Oldag <47493171+drewoldag@users.noreply.github.com>

@drewoldag drewoldag left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would recommend that you make the change to the way that you're gathering the verbs to use the subclasses approach instead of searching for files in the directory.

Comment thread src/hyrax/hyrax.py Outdated
@SamSandwich07
SamSandwich07 requested review from aritraghsh09 and removed request for gitosaurus April 2, 2026 02:56

@drewoldag drewoldag left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looking good. Thanks for being patient!

@SamSandwich07
SamSandwich07 enabled auto-merge April 13, 2026 22:49
@SamSandwich07
SamSandwich07 merged commit 9cb5c42 into main Apr 13, 2026
6 of 7 checks passed
@SamSandwich07
SamSandwich07 deleted the issue-820-listing-available-verbs branch April 13, 2026 22:52
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.

A way to list the available verbs

3 participants