Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
use self to invoke static method in the class
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Nov 25, 2019
1 parent 344d730 commit aebf829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deeprank/generate/DataGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def create_database(
self.f5.copy(mol_name + '/features/', molgrp)

# rotate the feature
DataGenerator._rotate_feature(molgrp, axis, angle, mol_center)
self._rotate_feature(molgrp, axis, angle, mol_center)

# grid center
molgrp.require_group('grid_points')
Expand Down Expand Up @@ -579,7 +579,7 @@ def add_feature(self, remove_error=True, prog_bar=True):
aug_molgrp.create_dataset("features/" + k, data=data)

# rotate
DataGenerator._rotate_feature(
self._rotate_feature(
aug_molgrp, axis, angle, center, feat_name=[k])

# find errored augmented molecules
Expand Down

0 comments on commit aebf829

Please sign in to comment.