get number of lines in a file
(datapath)
| 25 | |
| 26 | |
| 27 | def _get_num_of_lines(datapath): |
| 28 | """get number of lines in a file""" |
| 29 | ifile = open(datapath) |
| 30 | num_of_lines = 0 |
| 31 | for _ in ifile: |
| 32 | num_of_lines += 1 |
| 33 | ifile.close() |
| 34 | |
| 35 | return num_of_lines |
| 36 | |
| 37 | |
| 38 | def _load_access_pattern_data(datapath: str, n_obj_to_plot: int) -> List[List[float]]: |
no outgoing calls
no test coverage detected