This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r""" | |
This module is a VTK Web server application. | |
The following command line illustrate how to use it:: | |
$ vtkpython .../vtk_web_cone.py | |
Any VTK Web executable script come with a set of standard arguments that | |
can be overriden if need be:: | |
--port 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resp = self.request( | |
path='/folder/{}'.format(someFolder['_id']), method='PUT', | |
user=self.admin, params={ | |
'name': 'New name ', | |
'description': ' A description ' | |
}) | |
self.assertStatusOk(resp) | |
self.assertEqual(resp.json['name'], 'New name') | |
self.assertEqual(resp.json['description'], 'A description') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@loadmodel(map={'id': 'folder'}, model='folder', level=AccessType.WRITE) | |
def updateFolder(self, folder, params): | |
user = self.getCurrentUser() | |
folder['name'] = params.get('name', folder['name']).strip() | |
folder['description'] = params.get( | |
'description', folder['description']).strip() | |
folder = self.model('folder').updateFolder(folder) | |
if 'parentType' in params and 'parentId' in params: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@loadmodel(map={'id': 'folder'}, model='folder', level=AccessType.WRITE) | |
def updateFolder(self, folder, params): | |
user = self.getCurrentUser() | |
folder['name'] = params.get('name', folder['name']).strip() | |
folder['description'] = params.get( | |
'description', folder['description']).strip() | |
folder = self.model('folder').updateFolder(folder) | |
if 'parentType' in params and 'parentId' in params: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@loadmodel(map={'id': 'folder'}, model='folder', level=AccessType.WRITE) | |
def updateFolder(self, folder, params): | |
user = self.getCurrentUser() | |
folder['name'] = params.get('name', folder['name']).strip() | |
folder['description'] = params.get( | |
'description', folder['description']).strip() | |
folder = self.model('folder').updateFolder(folder) | |
if 'parentType' in params and 'parentId' in params: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@loadmodel(map={'id': 'folder'}, model='folder', level=AccessType.WRITE) | |
def updateFolder(self, folder, params): | |
user = self.getCurrentUser() | |
folder['name'] = params.get('name', folder['name']).strip() | |
folder['description'] = params.get( | |
'description', folder['description']).strip() | |
folder = self.model('folder').updateFolder(folder) | |
if 'parentType' in params and 'parentId' in params: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"dataset": "Prostate3T-01-0010_truth.nrrd", | |
"metrics": [ | |
{ | |
"name": "Dice1", | |
"value": "1" | |
}, | |
{ | |
"name": "Dice2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[zach girder]$ cat ~/.pypirc | |
[distutils] | |
index-servers = | |
pypi | |
[pypi] | |
username:zach.mullen | |
password:hunter2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "SegmentVesselsCNNSeeds/SegmentVesselsCNNSeeds.py", line 37, in <module> | |
main(ctk_cli.CLIArgumentParser().parse_args()) | |
File "SegmentVesselsCNNSeeds/SegmentVesselsCNNSeeds.py", line 20, in main | |
args.resampled, args.preprocessed = deploy.prep(args.inputImage, args.outputDir) | |
File "/build/TubeTK-build/TubeTK-build/PythonModules/tubetk/vseg/cnn/deploy.py", line 53, in prep | |
itk.imwrite(resample, rir, compression=True) | |
File "/build/ITK-build/Wrapping/Generators/Python/itkExtras.py", line 430, in imwrite | |
writer.Update() | |
RuntimeError: /build/ITK/Modules/IO/Meta/src/itkMetaImageIO.cxx:1097: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[zach ~]$ strings /usr/bin/python | |
python | |
/System/Library/Frameworks/Python.framework/Versions/ | |
/Resources/Python.app/Contents/MacOS/Python | |
pythonw | |
VERSIONER_DEBUG | |
VERSIONER_PYTHON_VERSION | |
%s environment variable error (ignored) | |
VERSIONER_PYTHON_PREFER_32_BIT | |
%s: too long |
OlderNewer