-
Notifications
You must be signed in to change notification settings - Fork 855
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start creating test for _MolsMatrixToLinear * Progress on _MolsMatrixToLinear * Passing _MolsMatrixToLinear tests: items in 2D list are in correct position in 1D list, 1D list items (for highlight parameters, the subitems) are not lists * Raise exception if legends_matrix not same dimensions as mols_matrix * Raise exception if highlight matrices not same dimensions as mols_matrix * Fix comment * Rename to _MolsNestedToLinear * Check that each item in nested lists is a list * Moved _MolsNestedToLinear to __init__.py * Attempt to revert to master to undo black autoformatting * Revert to master; tests pass * Restored _MolsNestedToLinear and testMolsMatrixToLinear while undoing black autoformatting of existing code * Removed obvious black formatting from my code * Removed black formatting from my __init__ code * Add some exception testing * Add exception testing: other matrices aren't same length, or same row length, as mols_matrix * Parametrize _nestedOrder test * Create one test for MolsMatrixToGridImage * Test that all combinations of MolsMatrixToGridImage do not give an error * Replace list[list] type hint with just list to avoid error * Add comment: Only test three matrices if supplied * Remove commented-out line * MolsMatrixToGridImage produces correct drawings * Complete the docstrings * Improved MolsMatrixToGridImage docstring * Make column spacings consistent in text version of molgrid * Undo Black autoformatting * Remove some spacing. Clarify and move a comment. * Change variable names from first_second to firstSecond * Remove extended docstring for _MolsNestedToLinear. Remove longestRow(). * Correct drawing output types. Generalize check: instead of nested list, nested iterable. * Fix import formatting. Remove remaining underscores in middle of variable names. * Removed CheckElementsAreLists and calls to * Move helper fns to global namespace and prefix with _. Change expected error type if molsMatrix not actually nested. * Fix docstring example having returnPNG=True to note it returns a binary string
- Loading branch information
1 parent
8d95e1b
commit de602c8
Showing
2 changed files
with
361 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.