docs: def series_in_dir(self):
          """input is dcmdir, not dirpath """
  
          # none_count = 0
          countsd = {}
          # dcmdirseries = []
          for line in self.files_with_info:
              if "SeriesNumber" in line:
                  sn = line['SeriesNumber']
              else:
                  sn = None
              if sn in countsd:
                  countsd[sn] += 1
              else:
                  countsd[sn] = 1
  
          bins = list(countsd)
          counts = list(countsd.values())
  
  
          # try:
          #     dcmdirseries = [line['SeriesNumber'] for line in self.files_with_info]
          # except:
          #     return [0], [0]
  
          # bins, counts = np.unique(dcmdirseries, return_counts=True)
          # binslist = bins.tolist()
  
          # if None in binslist:
          #     if len(binslist) == 1:
          #         return [0], [0]
          #     else:
          #         logger.warning
  
          #  kvůli správným intervalům mezi biny je nutno jeden přidat na konce
          # mxb = np.max(bins)
          # if mxb is None:
          #     mxb = 1
          # else:
          #     mxb = mxb + 1
          #
          # binslist.append(mxb)
          # counts, binsvyhodit = np.histogram(dcmdirseries, bins=binslist)
  
          # return counts.tolist(), bins.tolist()
          return counts, bins