main module#
Main used in code ocean to execute capsule
- main.execute_command_helper(command: str, print_command: bool = False) None#
Execute a shell command.
- Parameters:
command (str) – Command that we want to execute.
print_command (bool) – Bool that dictates if we print the command in the console.
- Raises:
CalledProcessError: – if the command could not be executed (Returned non-zero status).
- main.main() None#
Main function to register a dataset
- main.save_string_to_txt(txt: str, filepath: str, mode='w') None#
Saves a text in a file in the given mode.
- Parameters:
txt (str) – String to be saved.
filepath (PathLike) – Path where the file is located or will be saved.
mode (str) – File open mode.