Skip to content

Commit 7ff27b1

Browse files
committed
adapt to new appose-java release
1 parent 9cdb0a3 commit 7ff27b1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
<scijava.jvm.version>21</scijava.jvm.version>
103103
<scijava.jvm.build.version>[21,)</scijava.jvm.build.version>
104104

105-
<appose.version>0.11.0</appose.version>
105+
<appose.version>0.12.0</appose.version>
106106
<imglib2-appose.version>0.9.0</imglib2-appose.version>
107107

108108
<!-- NB: Deploy releases to the SciJava Maven repository. -->

src/main/java/net/imglib2/cellpose/CellposeRunner.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,9 @@ public void init() throws IOException, BuildException, InterruptedException, Tas
182182
.subscribeProgress( listener.progressListener() )
183183
.subscribeOutput( listener.outputListener() )
184184
.subscribeError( listener.errorListener() )
185-
.environment( envName )
186185
.build();
187186
final String utilsScript = IOUtils.toString( Cellpose.class.getResource( "/cp_utils.py" ), StandardCharsets.UTF_8 );
188-
this.python = env.python().init( utilsScript );
187+
this.python = env.activate(envName).python().init( utilsScript );
189188

190189
// The Python initialization task.
191190
final String cellposeInitScript = IOUtils.toString( Cellpose.class.getResource( pythonInitScriptPath ), StandardCharsets.UTF_8 );

0 commit comments

Comments
 (0)