- Code: Select all
loci.common.DebugTools.enableLogging('DEBUG');
Cheers,
~J.
loci.common.DebugTools.enableLogging('DEBUG');
handler = ErrorHandler(config);
library.addObserver(LoggingImportMonitor());
candidates = ImportCandidates(reader, paths, handler);
log = org.apache.commons.logging.LogFactory.getLog('ome.formats.importer.ImportLibrary');
log.setLevel(0)
success = library.importCandidates(config, candidates);
java.lang.System.setProperty('java.util.prefs.PreferencesFactory','java.util.prefs.MacOSXPreferencesFactory');
import loci.formats.in.DefaultMetadataOptions;
import loci.formats.in.MetadataLevel;
import loci.common.*;
import ome.formats.OMEROMetadataStoreClient;
import ome.formats.importer.*
import ome.formats.importer.ImportConfig;
import ome.formats.importer.cli.ErrorHandler;
import ome.formats.importer.cli.LoggingImportMonitor;
import omero.model.Dataset;
loadOmero;
loci.common.DebugTools.enableLogging('debug');
config = ImportConfig();
config.email.set('');
config.email.get;
config.sendFiles.set(true);
config.sendReport.set(false);
config.contOnError.set(false);
config.debug.set(true);
config.hostname.set(host);
port = javaObject('java.lang.Integer',4064);
config.port.set(port);
config.username.set(uname);
config.password.set(pword);
config.targetClass.set('omero.model.Dataset');
dataID = javaObject('java.lang.Long',163);
config.targetId.set(dataID);
groupID = javaObject('java.lang.Long',3);
config.group.set(groupID);
projectID = javaObject('java.lang.Long',2);
config.savedProject.set(projectID);
paths = '/Users/dball07/Documents/Projects/Cell-Cycle/FISH/2012.05.09-FISH_Net1-GFP_GFP-Cy3_20/Region01/Cy3/Cy3_t001.tif';
store = config.createStore();
store.logVersionInfo(config.getIniVersionNumber());
reader = OMEROWrapper(config);
library = ImportLibrary(store, reader);
handler = ErrorHandler(config);
library.addObserver(LoggingImportMonitor());
candidates = ImportCandidates(reader, paths, handler);
reader.setMetadataOptions(DefaultMetadataOptions(MetadataLevel.ALL));
log = org.apache.commons.logging.LogFactory.getLog('ome.formats.importer.ImportLibrary');
log.setLevel(0)
success = library.importCandidates(config, candidates);
store.logout();
Return to Developer Discussion
Users browsing this forum: Google [Bot] and 1 guest