MCPcopy Create free account
hub / github.com/numpy/numpy / _optimize_data_files

Method _optimize_data_files

numpy/distutils/misc_util.py:1191–1198  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1189 data_files.append((target_path, f))
1190
1191 def _optimize_data_files(self):
1192 data_dict = {}
1193 for p, files in self.data_files:
1194 if p not in data_dict:
1195 data_dict[p] = set()
1196 for f in files:
1197 data_dict[p].add(f)
1198 self.data_files[:] = [(p, list(files)) for p, files in data_dict.items()]
1199
1200 def add_data_files(self,*files):
1201 """Add data files to configuration data_files.

Callers 1

todictMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected