Skip to content

Commit

Permalink
single line fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kstahl committed Dec 14, 2023
1 parent 5e93421 commit ace62d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contacts_to_distograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def main():

contacts = np.loadtxt(args.csv)

if len(contacts.shape) < 2:
if contacts.size <= 1:
contacts = np.array([contacts])

with open(args.output, 'w') as f:
Expand Down
2 changes: 1 addition & 1 deletion preprocessing_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
dtype=None,
encoding=None)

if len(restraints.shape) < 2:
if restraints.size <= 1:
restraints = np.array([restraints])

distogram = []
Expand Down

0 comments on commit ace62d6

Please sign in to comment.