Skip to content

Commit

Permalink
fixed the reading/generation check for go map
Browse files Browse the repository at this point in the history
  • Loading branch information
csbrasnett committed Jan 3, 2025
1 parent 4777f21 commit 4053b66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/martinize2
Original file line number Diff line number Diff line change
Expand Up @@ -978,9 +978,9 @@ def entry():
if args.go:
system = vermouth.MergeAllMolecules().run_system(system)
# need this here because have to get contact map at atomistic resolution
if isinstance(args.go, str):
if isinstance(args.go, Path):
LOGGER.info("Reading Go model contact map.", type="step")
read_go_map(system=system, path=args.go)
read_go_map(system=system, file_path=args.go)
else:
LOGGER.info("Generating Go model contact map.", type="step")
if isinstance(args.go_write_file, Path):
Expand Down

0 comments on commit 4053b66

Please sign in to comment.