Completed
Push — master ( 40c094...b6a1c4 )
by Wojtek
02:30
created

get_group_optimization_strategy()   A

Complexity

Conditions 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.125

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
ccs 1
cts 2
cp 0.5
crap 1.125
1
"""Represents optimization strategy for PSO."""
2
3
4 1
class OptimizationStrategy:
0 ignored issues
show
Complexity introduced by
This abstract class seems to be used only once.

Abstract classes which are used only once can usually be inlined into the class which already uses this abstract class.

Loading history...
5
    """Represents optimization strategy for PSO."""
6
7 1
    def get_group_optimization_strategy(self, stages_in_group):
8
        """
9
            Return optimization strategy for group.
10
        Args:
11
            stages_in_group (list): stages  in group
12
13
        Raises:
14
            NotImplementedError: when method not implemented.
15
        """
16
        raise NotImplementedError
17