Sbozzolo / kuibit

Consider using f-strings PYL-C0209
Performance
Minor
5 occurrences in this check
Formatting a regular string which could be a f-string
1805        print("==================================")
1806        print("self._vars={}".format(self._vars))
1807        print("self.dimension={}".format(self.dimension))
1808        print("self._vars_openpmd_files={}".format(self._vars_openpmd_files))1809        print("==================================")
1810
1811        if var_name not in self:
Formatting a regular string which could be a f-string
1804
1805        print("==================================")
1806        print("self._vars={}".format(self._vars))
1807        print("self.dimension={}".format(self.dimension))1808        print("self._vars_openpmd_files={}".format(self._vars_openpmd_files))
1809        print("==================================")
1810
Formatting a regular string which could be a f-string
1803        var_name = str(key)
1804
1805        print("==================================")
1806        print("self._vars={}".format(self._vars))1807        print("self.dimension={}".format(self.dimension))
1808        print("self._vars_openpmd_files={}".format(self._vars_openpmd_files))
1809        print("==================================")
Formatting a regular string which could be a f-string
1653        for f in allfiles:
1654            print("f={}".format(f))
1655            filename = os.path.split(f)[1]
1656            print("filename={}".format(filename))1657            matched_h5 = rx_h5.match(filename)
1658            matched_ascii = rx_ascii.match(filename)
1659            # OpenPMD files are always 3D, so we ignore them when the dimension
Formatting a regular string which could be a f-string
1651        # one of our regular expressions.
1652
1653        for f in allfiles:
1654            print("f={}".format(f))1655            filename = os.path.split(f)[1]
1656            print("filename={}".format(filename))
1657            matched_h5 = rx_h5.match(filename)