Report only energy if script name is get_energy.py

This commit is contained in:
Jose Gracia 2024-02-23 16:53:11 +01:00
parent ba5b2d80f5
commit f14904f8ca

View file

@ -282,6 +282,8 @@ if __name__ == "__main__":
config = parse_arguments(sys.argv[1:])
config.cmd = " ".join(sys.argv)
config.datetime = f"{datetime.now()}"
if os.path.basename(__file__) == 'get_energy.py':
config.energy_only = True
main = App(config)
main.run_all()