Skip to content

Commit

Permalink
Code review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnbroad committed Dec 19, 2022
1 parent bd08e80 commit b33ff46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ public class CNNVariantTrain extends CommandLineProgram {
@Override
protected void onStartup() {
PythonScriptExecutor.checkPythonEnvironmentForPackage("vqsr_cnn");
// Start the Python executor. This does not actually start the Python process, but fails if python can't be located
pythonExecutor = new PythonScriptExecutor(true);
}

@Override
protected Object doWork() {
// Start the Python executor. This does not actually start the Python process, but fails if python can't be located
pythonExecutor = new PythonScriptExecutor(true);

final Resource pythonScriptResource = new Resource("training.py", CNNVariantTrain.class);
List<String> arguments = new ArrayList<>(Arrays.asList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,13 @@ public class CNNVariantWriteTensors extends CommandLineProgram {
@Override
protected void onStartup() {
PythonScriptExecutor.checkPythonEnvironmentForPackage("vqsr_cnn");

// Start the Python executor. This does not actually start the Python process, but fails if python can't be located
pythonExecutor = new PythonScriptExecutor(true);
}

@Override
protected Object doWork() {
// Start the Python executor. This does not actually start the Python process, but fails if python can't be located
pythonExecutor = new PythonScriptExecutor(true);

final Resource pythonScriptResource = new Resource("training.py", CNNVariantWriteTensors.class);
List<String> arguments = new ArrayList<>(Arrays.asList(
Expand Down

0 comments on commit b33ff46

Please sign in to comment.