These are chat archives for girder/girder

29th
Jun 2016
Stuart Nelson
@sutartmelson
Jun 29 2016 00:10
        # Test valid path, test = True
        self.assertEqual(
             self.client.resourceLookup(testPath, test=True)['_id'],
             item['_id'])

        # Test invalid path, test = True
        self.assertEqual(
             self.client.resourceLookup(testInvalidPath, test=True),
             None)

        # Test valid path, test = False
        self.assertEqual(
             self.client.resourceLookup(testPath, test=False)['_id'],
             item['_id'])
Does that look right?
formatting wise, that is.
the 'self.client..' line is causing "continuation line over-indented for hanging indent"
Zach Mullen
@zachmullen
Jun 29 2016 00:15
it's just four spaces
self.assertEqual(
    self.client...
Stuart Nelson
@sutartmelson
Jun 29 2016 00:15
ohh... align with the .
yup
Stuart Nelson
@sutartmelson
Jun 29 2016 00:37
Say you have a medical image. You find some anomaly so you use some drawing application and draw a circle around it. If you want to store the coordinates of the line/circle you drew on girder along with the image, how might that be done? Simply storing the coordinate lists as metadata?
Zach Mullen
@zachmullen
Jun 29 2016 01:31
I might store such vector annotations as separate documents in their own collection and have them point to their corresponding image file
out of curiosity, what sort of application are you building?
Chris Filo Gorgolewski
@chrisfilo
Jun 29 2016 12:34
Hi Girder crowd!
Zach Mullen
@zachmullen
Jun 29 2016 12:34
hello :)
Chris Filo Gorgolewski
@chrisfilo
Jun 29 2016 12:34
I got a quick question - is there a way to create "snapshots" of collections?
Zach Mullen
@zachmullen
Jun 29 2016 12:35
in what sense?
Chris Filo Gorgolewski
@chrisfilo
Jun 29 2016 12:35
a frozen collection with a particular set of versions for each file in the collection
Zach Mullen
@zachmullen
Jun 29 2016 12:36
maybe not per se, the closest approximation would probably be to do a copy of the data
Chris Filo Gorgolewski
@chrisfilo
Jun 29 2016 12:36
hmm
and because there is a hashstore copies should be cheap
yes?
Zach Mullen
@zachmullen
Jun 29 2016 12:36
right
the blobs are only stored once and are reference counted
it just copies the metadata
Chris Filo Gorgolewski
@chrisfilo
Jun 29 2016 12:38
so I can basically I can copy a collection and make the copy read only?
Zach Mullen
@zachmullen
Jun 29 2016 12:38
not strictly read only, but you could recursively set some access control policies on the copied version that made it more restricted
Chris Filo Gorgolewski
@chrisfilo
Jun 29 2016 12:39
I don't see an endpoint for copying a collection
is that available somewhere
?
Zach Mullen
@zachmullen
Jun 29 2016 12:39
I think we only expose it at the folder level at the moment
Chris Filo Gorgolewski
@chrisfilo
Jun 29 2016 12:40
that would be very useful for making snapshots of collections
Zach Mullen
@zachmullen
Jun 29 2016 12:40
indeed :) if someone made a PR to do that it would be welcome
Chris Filo Gorgolewski
@chrisfilo
Jun 29 2016 12:40
:D
:)
the project looks fantastic BTW
excellent job!
Zach Mullen
@zachmullen
Jun 29 2016 12:40
thanks!