HackaMol/Roles/QmMolRole.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod n/a totaltotal 78.9% 15 / 19 CC 1 SCAR 4.1
CC
1
Cov
87%
__ANON__
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.5
« HackaMol/Angle.pm ↑ Summary HackaMol/Roles/ExeRole.pm »
1 package HackaMol::Roles::QmMolRole;
2 12 $HackaMol::Roles::QmMolRole::VERSION = '0.053';
3 #ABSTRACT: provides attributes needed for quantum chemistry calculations
4 # this will need updating as needs arise
5 12 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 12 with 'HackaMol::Roles::QmAtomRole';
8  
9 12 has 'multiplicity', is => 'rw', isa => 'Int', lazy => 1, default => 1;
10  
11 12 my @tscl = qw(
12 score
13 energy
14 Etot Eelec Enuc
15 qm_dipole_moment ionization_energy gradient_norm
16 Hform
17 U H G S
18 S_t
19 S_r
20 S_v
21 Etot_mp2
22 Etot_ccsdt
23 Ecds
24 );
25  
26 has "$_" => (
27 traits => ['Array'],
28 is => 'ro',
29 isa => 'ArrayRef[Num]',
30 0 ▶ default => sub { [] },
Subroutine __ANON__: not called CC=1 SCAR=6.9
31 handles => {
32 "push_$_" => 'push',
33 "get_$_" => 'get',
34 "all_$_" => 'elements',
35 "clear_$_" => 'clear',
36 "count_$_" => 'count',
37 },
38 lazy => 1,
39 12 ) foreach @tscl;
40  
41 has "$_" => (
42 traits => ['Array'],
43 is => 'ro',
44 isa => 'ArrayRef[Math::Vector::Real]',
45 0 ▶ default => sub { [] },
Subroutine __ANON__: not called CC=1 SCAR=6.9
46 handles => {
47 "push_$_" => 'push',
48 "get_$_" => 'get',
49 "all_$_" => 'elements',
50 "clear_$_" => 'clear',
51 "count_$_" => 'count',
52 },
53 lazy => 1,
54 12 ) for qw(qm_dipole frequencies eigvec alpha beta);
55  
56 12 ▶no Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
57  
58 12 1;
59  
60 __END__
« HackaMol/Angle.pm ↑ Summary HackaMol/Roles/ExeRole.pm »