File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Python-bioformats is distributed under the GNU General Public
22# License, but this file is licensed under the more permissive BSD
33# license. See the accompanying file LICENSE for details.
4- #
4+ #
55# Copyright (c) 2009-2014 Broad Institute
66# All rights reserved.
77
88import javabridge
99
1010def basic_config ():
1111 '''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 1313try :
1414 log4j .basic_config ()
1515 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+ )
1823 else :
1924 image_path = sys .argv [1 ]
2025 image , scale = bioformats .load_image (image_path , rescale = False ,
You can’t perform that action at this time.
0 commit comments