Sbozzolo / kuibit

Protected member accessed from outside the class PYL-W0212
Bug risk
Minor
8 days ago4 years old
Access to a protected member __x0 of a client class
620        copied = self.copy()
621
622        # We only need to shift x0 because x1 is computed from x0 using dx
623        copied.__x0 = copied.__x0 + shift624        return copied
625
626    def copy(self):
Access to a protected member __x0 of a client class
620        copied = self.copy()
621
622        # We only need to shift x0 because x1 is computed from x0 using dx
623        copied.__x0 = copied.__x0 + shift624        return copied
625
626    def copy(self):
Access to a protected member __num_ghost of a client class
600        copied.__shape = self.shape - 2 * self.num_ghost
601        # We "push x0 inside the grid"
602        copied.__x0 = copied.__x0 + self.num_ghost * self.dx
603        copied.__num_ghost = np.zeros_like(copied.shape)604        return copied
605
606    def shifted(self, shift):
Access to a protected member __x0 of a client class
599        # lower and upper ghostzones
600        copied.__shape = self.shape - 2 * self.num_ghost
601        # We "push x0 inside the grid"
602        copied.__x0 = copied.__x0 + self.num_ghost * self.dx603        copied.__num_ghost = np.zeros_like(copied.shape)
604        return copied
605
Access to a protected member __x0 of a client class
599        # lower and upper ghostzones
600        copied.__shape = self.shape - 2 * self.num_ghost
601        # We "push x0 inside the grid"
602        copied.__x0 = copied.__x0 + self.num_ghost * self.dx603        copied.__num_ghost = np.zeros_like(copied.shape)
604        return copied
605