Skip to content

Commit

Permalink
fix for single line restraints
Browse files Browse the repository at this point in the history
  • Loading branch information
kstahl committed Dec 14, 2023
1 parent 455c379 commit 5e93421
Showing 1 changed file with 1 addition and 1 deletion.
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) == 1:
if len(contacts.shape) < 2:
contacts = np.array([contacts])

with open(args.output, 'w') as f:
Expand Down

0 comments on commit 5e93421

Please sign in to comment.