mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-05-09 12:42:04 +02:00
Merge branch 'developer' into dev/ctb_clocks_fix
This commit is contained in:
@@ -36,7 +36,7 @@ class CodeGenerator:
|
||||
self.file.write(line)
|
||||
self.template_file.close()
|
||||
|
||||
def write_header(self, in_path, out_path, commands, deprecated_commands):
|
||||
def write_header(self, in_path, out_path, commands, deprecated_commands, removed_commands):
|
||||
"""Write the header file for the caller.h file"""
|
||||
with out_path.open('w') as fp:
|
||||
with in_path.open('r') as fp2:
|
||||
@@ -59,6 +59,11 @@ class CodeGenerator:
|
||||
fp.write(f'{{"{key}", "{value}"}},\n')
|
||||
continue
|
||||
|
||||
if "THIS COMMENT TO BE REPLACED BY THE ACTUAL CODE (4)" in line:
|
||||
for key, value in removed_commands.items():
|
||||
fp.write(f'{{"{key}", "{value}"}},\n')
|
||||
continue
|
||||
|
||||
fp.write(line)
|
||||
|
||||
def write_infer_header(self, in_path, out_path, commands):
|
||||
|
||||
Reference in New Issue
Block a user