demianriccardi / p5-HackaMol

Object-Oriented Perl 5, Moose Library for Molecular Hacking
Other
12 stars 6 forks source link

HackaMol::Molecule groups attribute #12

Closed demianriccardi closed 9 years ago

demianriccardi commented 9 years ago

is currently, wrongly listed as atomgroups

demianriccardi commented 9 years ago

if a molecule is initiated with groups of atoms, the molecule should build the necessary attributes to make the molecule useful. i.e. atoms

demianriccardi commented 9 years ago
my $mol = HackaMol::Molecule->new(atomgroups=>[@groups], atoms=>[map{$_->all_atoms} @groups]);

#should be
my $mol = HackaMol::Molecule->new(groups=>[@groups]);
demianriccardi commented 9 years ago

done!