Skip to content

Commit

Permalink
Fixing issue where only structures with multiple conformers were printed
Browse files Browse the repository at this point in the history
  • Loading branch information
swheele2 committed Sep 3, 2018
1 parent 9ffcbe3 commit c0beb5c
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions bin/print_SI
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $input_file or pod2usage (
-verbose => 0 );

#delete $xyz_file if it already exists!
system('rm -f $xyz_file');
system("rm -f $xyz_file");
#initiate AARON, reading needed information from command line and input files
init_main();
&grab_coords();
Expand All @@ -62,11 +62,25 @@ sub grab_coords {
$name =~ s/\//\./g;
my $log_file = $name . ".$job->{step}.log";
my $g09_out = new AaronTools::G09Out(file=>"$dir/$log_file");
my $geo = $g09_out->geometry();
my $geometry = $g09_out->geometry();
$name =~ s/\./_/g;
$geo->{name}=$name;
$geo->printXYZ($xyz_file, $name, 0);
$geometry->{name}=$name;
$geometry->printXYZ($xyz_file, $name, 0);
}
} else { #geometries with no conformations
my $job = $jobs->{$geo};

! @{$job->{thermo}} && do { next;};

my $dir = $ligand . '/' . $job->{name};
my $name = $job->{name};
$name =~ s/\//\./g;
my $log_file = $name . ".$job->{step}.log";
my $g09_out = new AaronTools::G09Out(file=>"$dir/$log_file");
my $geometry = $g09_out->geometry();
$name =~ s/\./_/g;
$geometry->{name}=$name;
$geometry->printXYZ($xyz_file, $name, 0);
}
}
}
Expand Down

0 comments on commit c0beb5c

Please sign in to comment.