girder / covalic

Application for hosting challenges
http://challenge.kitware.com
8 stars 3 forks source link

Use model singletons #256

Closed msmolens closed 5 years ago

msmolens commented 6 years ago

Modernize code to use Girder model singletons [1].

For example, replace

self.model('folder').load(...)

with

from girder.models.folder import Folder
Folder().load(...)

and replace

self.model('phase', 'covalic').load(...)

with

from .models.phase import Phase
Phase().load(...)

[1] https://girder.readthedocs.io/en/latest/api-docs.html#models

brianhelba commented 5 years ago

Fixed in #249