Skip to content

Commit

Permalink
Add verbose option
Browse files Browse the repository at this point in the history
  • Loading branch information
gitesei committed Nov 4, 2024
1 parent 045ef70 commit d287968
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion FRETpredict/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
from .lennardjones import lj_parameters
from .libraries import *

__version__ = '0.2.1'
__version__ = '0.2.2'


2 changes: 1 addition & 1 deletion FRETpredict/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def rotamer_placement(self, universe, prot_atoms, lib):
# Save aligned rotamers
if self.verbose:
rotamers = universe.select_atoms("all")
with MDAnalysis.Writer(lib.name.replace(' ','_')+'.pdb', rotamers.n_atoms) as W:
with MDAnalysis.Writer(self.output_prefix+'_'+lib.name.replace(' ','_')+'.pdb', rotamers.n_atoms) as W:
for ts in universe.trajectory:
W.write(rotamers)

Expand Down
10 changes: 4 additions & 6 deletions tests/test_Hsp90.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def test_Hsp90_R0_calculation():
electrostatic=True,
libname_1='AlexaFluor 594 C1R cutoff30',
libname_2='AlexaFluor 568 C1R cutoff30',
output_prefix='tests/test_systems/Hsp90/output/E30')
output_prefix='tests/test_systems/Hsp90/output/E30',
verbose=True)

# Run FRETpredict calculations
FRET.run()
Expand All @@ -43,7 +44,8 @@ def test_Hsp90_fixed_R0():
fixed_R0=True, r0=5.5, electrostatic=True,
libname_1='AlexaFluor 594 C1R cutoff30',
libname_2='AlexaFluor 568 C1R cutoff30',
output_prefix='tests/test_systems/Hsp90/output/E30_fixedR0')
output_prefix='tests/test_systems/Hsp90/output/E30_fixedR0',
verbose=True)

# Run FRETpredict calculations
FRET_fixedR0.run()
Expand All @@ -53,7 +55,3 @@ def test_Hsp90_fixed_R0():
assert np.abs(pd.read_pickle('tests/test_systems/Hsp90/output/E30_fixedR0-data-452-637.pkl')['Estatic'] - 0.538) < 1e-3, \
"Could not read FRET data from file (fixed R0)"





0 comments on commit d287968

Please sign in to comment.