[ome-devel] question concerning getGroups and adding files to thegroups

Bernd Jagla baj2107 at columbia.edu
Thu Nov 3 14:37:15 GMT 2005


I now added a call to Image::Server::File->new() and looks much better.

Would something like this be OK???

my $frm_file = OME::Image::Server->uploadFile($fp);
my $fileP = OME::Image::Server::File->new($frm_file,$fp);
my $OF_attr = $self->__touchOriginalFile($fileP,"InCell 3000");

But now I don't understand why I need __touchOriginalFile?
And possibly markImageFiles?

Is this for telling OME that we are actually importing something???

Thanks for the advice.

Bernd


|-----Original Message-----
|From: ome-devel-bounces at lists.openmicroscopy.org.uk [mailto:ome-devel-
|bounces at lists.openmicroscopy.org.uk] On Behalf Of Bernd Jagla
|Sent: Wednesday, November 02, 2005 4:18 PM
|To: 'Ilya Goldberg'; ome-devel at lists.openmicroscopy.org.uk; ome-
|users at lists.openmicroscopy.org.uk
|Subject: [ome-devel] question concerning getGroups and adding files to
|thegroups
|
|Hi there,
|
|
|
|I still haven't understood how to add files that are not in the $files list
|from getGroups (for a new importer into a group so they are imported with
|the importGroup method).
|
|
|
|Apparently the getSHA1 function is checking if a file has been imported
|before. It is called before the importGroup method is called. Therefore I
|need to have a file object that can call the getSHA1 function created
|inside the getGroups function.
|
|Here is what I have:
|
|$fp being a string of the file including the full path.
|
|
|
|my $frm_file = OME::Image::Server->uploadFile($fp)
|
|#returns a fileID  that I use with
|
|my $OF_attr = $self->__touchOriginalFile($frm_file,"InCell 3000");
|
|#This unfortunately returns an empty string/object.
|
|
|
|So, I don't know what to do now???
|
|
|
|Any suggestions???
|
|
|
|Thanks,
|
|
|
|Bernd
|
|
|
|
|
|Bernd Jagla, PhD
|Associate Research Scientist
|Columbia University
|1150 St. Nicholas Avenue
|Russ Berrie Medical Pavilion, Room 520
|New York, NY 10032
|Tel: 212 - 851 5560 x16
|Fax: 212 - 851 5570
|e-mail: baj2107 at columbia.edu
|
|
|




More information about the ome-devel mailing list