Skip to content

Docs for installing optional dependencies and better handling of pygraphviz optional deps#141

Merged
IAlibay merged 7 commits into
mainfrom
pygraphviz-optional
Jun 1, 2026
Merged

Docs for installing optional dependencies and better handling of pygraphviz optional deps#141
IAlibay merged 7 commits into
mainfrom
pygraphviz-optional

Conversation

@IAlibay
Copy link
Copy Markdown
Member

@IAlibay IAlibay commented Jun 1, 2026

No description provided.

Comment thread src/lomap/graphgen.py
else:
return False

@requires_package("pygraphviz")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

None of the GraphGen code is directly tested (especially all the viz outputs) - I tested executing dbmol locally and all these worked as expected with and without pygraphviz.

I'm not sure it's really worth adding the extra tests, but can be convinced.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this is fine as-is for now.

@IAlibay
Copy link
Copy Markdown
Member Author

IAlibay commented Jun 1, 2026

pre-commit.ci autofix

@IAlibay IAlibay requested a review from atravitz June 1, 2026 17:45
Copy link
Copy Markdown
Contributor

@atravitz atravitz left a comment

Choose a reason for hiding this comment

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

Just a couple suggestions, not blocking though.

Comment thread docs/api.rst Outdated
Comment thread docs/installation.rst Outdated
Optional Dependencies
---------------------

``lomap2`` has optional software dependencies which can be installed to extend
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there consistency as to when we say Lomap vs lomap2?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Absolutely none - I've raised an issue: #144

Comment thread src/lomap/graphgen.py
else:
return False

@requires_package("pygraphviz")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this is fine as-is for now.

IAlibay and others added 2 commits June 1, 2026 21:36
Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com>
@IAlibay IAlibay merged commit 4d3d9ff into main Jun 1, 2026
13 checks passed
@IAlibay IAlibay deleted the pygraphviz-optional branch June 1, 2026 21:00
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