File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Python-bioformats is distributed under the GNU General Public
2
2
# License, but this file is licensed under the more permissive BSD
3
3
# license. See the accompanying file LICENSE for details.
4
- #
4
+ #
5
5
# Copyright (c) 2009-2014 Broad Institute
6
6
# All rights reserved.
7
7
8
8
import javabridge
9
9
10
10
def basic_config ():
11
11
'''Configure logging for "WARN" level'''
12
- javabridge .JClassWrapper ("loci.common.Log4jTools" ).enableLogging ("WARN" )
12
+ log4j = javabridge .JClassWrapper ("loci.common.Log4jTools" )
13
+ log4j .enableLogging ()
14
+ log4j .setRootLevel ("WARN" )
Original file line number Diff line number Diff line change 13
13
try :
14
14
log4j .basic_config ()
15
15
if len (sys .argv ) < 2 :
16
- image_path = os .path .join (os .path .dirname (bioformats .__file__ ), 'tests' ,
17
- 'Channel1-01-A-01.tif' )
16
+ image_path = os .path .join (
17
+ os .path .dirname (bioformats .__file__ ),
18
+ '..' ,
19
+ 'tests' ,
20
+ 'resources' ,
21
+ 'Channel1-01-A-01.tif'
22
+ )
18
23
else :
19
24
image_path = sys .argv [1 ]
20
25
image , scale = bioformats .load_image (image_path , rescale = False ,
You can’t perform that action at this time.
0 commit comments