[ome-devel] importer questions

Josh Moore josh at glencoesoftware.com
Mon Jul 26 12:42:14 BST 2010


On Jul 19, 2010, at 11:17 AM, Oliver Müller wrote:

> Hi Josh,
> 
> I have updated ATOM and it now works with our OMERO Beta 4.2.0 installation.

Great to hear.

> I followed your hints and did things like
> 
> config.hostname.set(serverIP);
> config.username.set(username);
> config.password.set(password);
> config.port.set(Integer.parseInt(serverPort));
> config.setArchiveImage(archive);
> 
> where the last action (archive) does not show any effect (I don't know why)

Could you give us some more information about what's going wrong and for what type of file?

> - the rest works. To assign an existing dataset, I did						
> // import images into an existing ATOM / dataset (ID)
> config.targetClass.set(Dataset.class.getName());
> config.targetId.set(Long.parseLong(dataset));
> 
> My final questions:
> - Why do I have to address my dataset by its ID? Can it be also a string "dataset_name"? (see next question)
> - Is it possible to implement something like "config.dataset.set("dataset_name")" and "config.project.set("my_projectname")"?
> This would be a nice and consistent interface ;-)

I've added this as a feature request:
http://trac.openmicroscopy.org.uk/omero/ticket/2620

Thanks for the suggestion.
~Josh.

> Best regards,
> -olli-
> 
> 
> Am 17.06.2010 um 08:35 schrieb Josh Moore:
> 
>> On 6/16/10 10:20 AM, Oliver Müller wrote:
>>> Hi Josh,
>>> 
>>> sorry, I asked you yesterday, but I cannot remember: can you tell me, where the library.setDataset() can now be found?
>>> The second question was: what are the minimum Java-Imports I have to do to make ATOM ready to go? (currently I use the entire OMERO trunc :-) ).
>>> 
>>> Thank you,
>>> -olli-
>> :) From ome.formats.importer.cli.CommandLineImporter which you might want to subclass or re-use otherwise:
>> 
>> 
>>   public static void main(String[] args) {
>> 
>>       ImportConfig config = new ImportConfig();
>> 
>>       // Defaults
>>       config.email.set("");
>>       config.sendFiles.set(false);
>>       config.sendLogFile.set(false);
>> ...
>> 
>>       while ((a = g.getopt()) != -1) {
>>           switch (a) {
>>           case 1: {
>>  ...
>>           case 'd': {
>>               config.targetClass.set(Dataset.class.getName());
>>               config.targetId.set(Long.parseLong(g.getOptarg()));
>>               break;
>>           }
>>  ...
>> 
>> Hope that helps. ~J.
> 
> 



More information about the ome-devel mailing list