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.txt file output by TRIM.exe.

Parameters:
  • filename – Name of the RANGE_3D.txt file output from SRIM.

  • phrase – Character sequence to find in the file.

  • encoding – Encoding of the RANGE_3D.txt file.

Returns:

The line number in RANGE_3D.txt that matches phrase.