rohitsanj / doex
Showing 2 of 4 files from the diff.

@@ -9,6 +9,11 @@
Loading
9 9
10 10
        n_treatments, n_blocks = self.data.shape
11 11
12 +
        if hasattr(self, "num_missing"):
13 +
            num_missing = self.num_missing
14 +
        else:
15 +
            num_missing = 0
16 +
12 17
        N = 0
13 18
        for entry in self.data:
14 19
            N += len(entry)
@@ -32,7 +37,7 @@
Loading
32 37
        self.dof_treatments = n_treatments - 1
33 38
        self.dof_blocks = n_blocks - 1
34 39
        self.dof_total = N - 1
35 -
        self.dof_error = self.dof_total - (self.dof_treatments + self.dof_blocks)
40 +
        self.dof_error = self.dof_total - (self.dof_treatments + self.dof_blocks + num_missing)
36 41
37 42
        # Calculate Mean Sum of Squares
38 43
        self.mss_treatments = self.ss_treatments / self.dof_treatments
@@ -101,11 +106,11 @@
Loading
101 106
102 107
        n_treatments, n_blocks = self.data.shape
103 108
104 -
        num_missing = np.count_nonzero(np.isnan(self.data))
109 +
        self.num_missing = np.count_nonzero(np.isnan(self.data))
105 110
        missing_locations = np.argwhere(np.isnan(self.data))
106 111
        self.handle_missing(self.data, missing_locations)
107 112
108 -
        print("Data after adjusting for {} missing value(s)".format(num_missing))
113 +
        print("Data after adjusting for {} missing value(s)".format(self.num_missing))
109 114
        print(self.data)
110 115
111 116
        # Continue with RCBD analysis

@@ -65,7 +65,9 @@
Loading
65 65
        self.dof_columns = n_cols - 1
66 66
        self.dof_treatments = len(self.treatments) - 1
67 67
        self.dof_total = N - 1
68 -
        self.dof_error = self.dof_total - (self.dof_rows + self.dof_columns + self.dof_treatments)
68 +
        self.dof_error = self.dof_total - (
69 +
            self.dof_rows + self.dof_columns + self.dof_treatments + num_missing
70 +
        )
69 71
70 72
        # Calculate Mean Sum of Squares
71 73
        self.mss_rows = self.ss_rows / self.dof_rows
Files Coverage
doex 100.00%
Project Totals (6 files) 100.00%
codecov-umbrella
Build #317384513 -
unittests
codecov-umbrella
Build #317384513 -
unittests
codecov-umbrella
Build #317384513 -
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading