mcstasscript.instr_reader.read_initialize.InitializeReader
mcstasscript.instr_reader.read_initialize.InitializeReader¶
- class mcstasscript.instr_reader.read_initialize.InitializeReader(Instr, write_file, product_filename, get_next_line, return_line)¶
Reads the initialize section of a McStas instrument file. The initialize lines are added to the McStasScript instrument, and are sent to the function writing the lines to the python file.
- __init__(Instr, write_file, product_filename, get_next_line, return_line)¶
Methods
__init__
(Instr, write_file, ...)read_initialize_line
(line)Reads lines from INITIALIZE file and returns True as long as the stop characters has not been encountered.
set_instr_name
(name)- read_initialize_line(line)¶
Reads lines from INITIALIZE file and returns True as long as the stop characters has not been encountered. Comments are ignored with typical c syntax.