Skip to content

Commit

Permalink
Automatically fix code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 23, 2025
1 parent 8c76687 commit d269c3f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nanosaur/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def docker_simulator_start(platform, params: Params, args):
# Create the full file path
docker_compose_path = os.path.join(nanosaur_home_path, docker_compose)
robot = RobotList.get_robot(params)

# Check which simulation tool is selected
if 'simulation_tool' not in params:
print(TerminalFormatter.color_text("No simulation tool selected. Please run simulation set first.", color='red'))
Expand Down
2 changes: 1 addition & 1 deletion src/nanosaur/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from nanosaur import workspace
from nanosaur.docker import docker_simulator_start
from nanosaur.prompt_colors import TerminalFormatter
from nanosaur.utilities import Params, RobotList, build_env_file, is_env_file
from nanosaur.utilities import Params, RobotList


# Dictionary of simulation tools and their commands
Expand Down
2 changes: 2 additions & 0 deletions src/nanosaur/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def is_env_file():
env_path = os.path.join(nanosaur_home_path, '.env')
return os.path.exists(env_path)


def build_env_file(params):
nanosaur_home_path = get_nanosaur_home()
env_path = os.path.join(nanosaur_home_path, '.env')
Expand All @@ -246,6 +247,7 @@ def build_env_file(params):
# Pass robot ros commands
env_file.write(f"COMMANDS={robot.config_to_ros()}\n")


class Params:

@classmethod
Expand Down

0 comments on commit d269c3f

Please sign in to comment.