Skip to content
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

Readxyz #266

Merged
merged 10 commits into from
Oct 10, 2024
Merged

Readxyz #266

merged 10 commits into from
Oct 10, 2024

Conversation

jwtoney
Copy link
Contributor

@jwtoney jwtoney commented Sep 13, 2024

update readfromxyz to allow xyz files as strings

Copy link
Contributor

@gianmarco-terrones gianmarco-terrones left a comment

Choose a reason for hiding this comment

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

As long as you only changed the test cases that were absolutely necessary to change due to the change in oct default value in getBondedAtomsOct, this should be good

Copy link
Contributor

@aarongarrison aarongarrison left a comment

Choose a reason for hiding this comment

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

It looks like the test case changes are the same as in commit 0ed95c5. The changes to the readfromxyz function look good to me.

s = filename.split('\n')
try:
s.remove('')
except ValueError:

Check notice

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.
Copy link

codecov bot commented Sep 14, 2024

Codecov Report

Attention: Patch coverage is 13.51351% with 128 lines in your changes missing coverage. Please review.

Project coverage is 37.23%. Comparing base (e9b1d7b) to head (d34b770).
Report is 15 commits behind head on main.

Files with missing lines Patch % Lines
molSimplify/Classes/mol3D.py 13.51% 128 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #266      +/-   ##
==========================================
- Coverage   37.40%   37.23%   -0.18%     
==========================================
  Files          89       89              
  Lines       29827    29978     +151     
==========================================
+ Hits        11158    11162       +4     
- Misses      18669    18816     +147     
Flag Coverage Δ
unittests 37.23% <13.51%> (-0.18%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -6055,6 +6082,187 @@
# return minimum RMSD, maximum pairwise distance in that structure
return current_min, max_dist

def get_symmetry(tmc_mol, verbose=True, max_allowed_dev=30):

Check notice

Code scanning / CodeQL

First parameter of a method is not named 'self' Note

Normal methods should have 'self', rather than 'tmc_mol', as their first parameter.
symmetry_dict : dictionary
Dictionary storing assigned symmetry class and devations from all possible symmetry classes.
"""
from molSimplify.Classes.ligand import ligand_breakdown

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
molSimplify.Classes.ligand
begins an import cycle.
Dictionary storing assigned symmetry class and devations from all possible symmetry classes.
"""
from molSimplify.Classes.ligand import ligand_breakdown
from molSimplify.Classes.mol2D import Mol2D

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
molSimplify.Classes.mol2D
begins an import cycle.
@@ -1,6 +1,6 @@
import pytest
import helperFuncs as hp

from molSimplify.Classes.ligand import ligand_breakdown

Check notice

Code scanning / CodeQL

Unused import Note test

Import of 'ligand_breakdown' is not used.
@@ -9,6 +9,7 @@
from molSimplify.Classes.globalvars import (dict_oneempty_check_st,
oneempty_angle_ref)
from molSimplify.Classes.mol3D import mol3D
from molSimplify.Classes.ligand import ligand_breakdown

Check notice

Code scanning / CodeQL

Unused import Note test

Import of 'ligand_breakdown' is not used.
@@ -4148,7 +4176,7 @@
"""

from molSimplify.Informatics.graph_analyze import obtain_truncation_metal
from molSimplify.Classes.ligand import ligand_breakdown # , ligand_assign
from molSimplify.Classes.ligand import ligand_breakdown

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
molSimplify.Classes.ligand
begins an import cycle.
@@ -4289,6 +4317,7 @@
Dictionary containing rmsd_max and atom_dist_max.
"""
from molSimplify.Scripts.oct_check_mols import readfromtxt
from molSimplify.Classes.ligand import ligand_breakdown

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
molSimplify.Classes.ligand
begins an import cycle.
@gianmarco-terrones gianmarco-terrones merged commit 38f385f into main Oct 10, 2024
10 checks passed
@gianmarco-terrones gianmarco-terrones deleted the readxyz branch October 10, 2024 22:48
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.

3 participants