-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation and CLI for backend selection #112
Conversation
I quickly skimmed through everything. Great clean-ups and changes! |
Thank you so much for having a look @Jnelen, much appreciated!
Yes, 100%. I wanted to add |
Always glad to be of help! Don't hesitate to reach out to me for any future PRs where you think I could lend a hand! |
Thanks for the review/help @Jnelen! |
Glad to be of help! |
* add details on NotImplementedError exceptions * changelog * remove versioneer * changelog * fix warning * fix tests with pytest 8 * update changelog * update ci * add setuptools for python 12 * setuptools in ci * use miniconda, conda is missing from macos-14 * miniforge * fixes * mamba * bump min python version * update changelog * Update build system to flit_core * Add entry to changelog * Update CHANGELOG.md * Delete .gitattributes * Delete .lgtm.yml * Update CHANGELOG.md * Add functionality to select backend (#107) * Documentation and CLI for backend selection (#112) * Add rustworkx backend (#111) * Update graph.py to support set_backend function I also made a fuction to see the available backends and get the current backend * Apply private _available_backends suggestions from code review This commit contains the suggested changes regarding making the available_backends variable private, and refactoring the get_available_backends method to available_backends Co-authored-by: Rocco Meli <r.meli@bluemail.ch> * Print warning when backend is already set + make sure we use _available_backends everywhere where possible * remove reliance on environment variables * make _validate_backend function print warning when a certain backend isn't installed * Use precommit hooks add __all__ back refactor _alias_backendDict to _alias_to_backend * Update ValueError message Co-authored-by: Rocco Meli <r.meli@bluemail.ch> * Don't return the backend when setting it Co-authored-by: Rocco Meli <r.meli@bluemail.ch> * Add dummy function to make mypy happy remove __all__ assignment * fist play with rustworkx backend * add documentation for backend selection * add cli backend selection * cleanup * changelog * apply @Jnelen suggestion and add warning filter * make molecule test also more robust * add rx to ci * add rustworkx to all backends tests * add back graphtool * add rx to test all backends and add verbose mode * Update test_molecule.py --------- Co-authored-by: jnelen <jnelen@ucam.edu> Co-authored-by: Jochem Nelen <78348388+Jnelen@users.noreply.github.com> * Update .readthedocs.yml (#114) * Update .readthedocs.yml * rm duplicate key * prepare release 0.7.0 --------- Co-authored-by: Thomas Kluyver <takowl@gmail.com> Co-authored-by: Jochem Nelen <78348388+Jnelen@users.noreply.github.com> Co-authored-by: jnelen <jnelen@ucam.edu>
Description
Close #108 and close #109.
This PR adds documentation related to #107:
README
This PR adds the
-g/--graph-backend
to manually select a backend from CLI.Additionally, the following cleanup is done:
importlib.utils
to check if a package is available, without importing itChecklist