hyperfine.implantation.srim.get_line_number
- hyperfine.implantation.srim.get_line_number(filename: str = 'RANGE_3D.txt', phrase: str = '------- ----------- ----------- -----------', encoding: str = 'gbk') int[source]
Deduce where the data columns start in the
RANGE_3D.txtfile output byTRIM.exe.- Parameters:
filename – Name of the
RANGE_3D.txtfile output fromSRIM.phrase – Character sequence to find in the file.
encoding – Encoding of the
RANGE_3D.txtfile.
- Returns:
The line number in
RANGE_3D.txtthat matchesphrase.