Report only energy if script name is get_energy.py
This commit is contained in:
parent
ba5b2d80f5
commit
f14904f8ca
1 changed files with 2 additions and 0 deletions
|
@ -282,6 +282,8 @@ if __name__ == "__main__":
|
||||||
config = parse_arguments(sys.argv[1:])
|
config = parse_arguments(sys.argv[1:])
|
||||||
config.cmd = " ".join(sys.argv)
|
config.cmd = " ".join(sys.argv)
|
||||||
config.datetime = f"{datetime.now()}"
|
config.datetime = f"{datetime.now()}"
|
||||||
|
if os.path.basename(__file__) == 'get_energy.py':
|
||||||
|
config.energy_only = True
|
||||||
|
|
||||||
main = App(config)
|
main = App(config)
|
||||||
main.run_all()
|
main.run_all()
|
||||||
|
|
Loading…
Reference in a new issue