MCPcopy Create free account
hub / github.com/RingBDStack/GDAP / read_file

Function read_file

data_convert/utils.py:10–15  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

8
9
10def read_file(filename):
11 from tqdm import tqdm
12 num_lines = sum(1 for _ in open(filename, 'r'))
13 with open(filename, 'r') as f:
14 for line in tqdm(f, total=num_lines):
15 yield line
16
17
18def check_output(filename, line_num=2):

Callers 1

convert_file_tupleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected