Skip to content

Commit

Permalink
Added check to parse-yaml.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
joan-pijpker committed Oct 11, 2024
1 parent 928b36a commit f436eea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions configuration/parse_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
model_type = model.get('type')

method = model.get('method', {})
method_type = method.get('type')
location = method.get('location')
connect_ip = method.get('connect_ip')
connect_port = method.get('connect_port')

if connect_ip and connect_port:
print(f"lxterminal -e ssh illuminator@{connect_ip} '{run_path}run{model_type}.sh {connect_ip} {connect_port} {run_model}'&")
if method_type == 'connect':
if connect_ip and connect_port:
print(f"lxterminal -e ssh illuminator@{connect_ip} '{run_path}run{model_type}.sh {connect_ip} {connect_port} {run_model}'&")

0 comments on commit f436eea

Please sign in to comment.