Skip to content
Snippets Groups Projects
Commit 2fd272e1 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Standardize formatting of ilastik project file parameter

parent 52038906
No related branches found
No related tags found
No related merge requests found
import os
from pathlib import Path
import numpy as np
import vigra
......@@ -11,7 +12,8 @@ from model_server.model import ImageToImageModel, ParameterExpectedError
class IlastikImageToImageModel(ImageToImageModel):
def __init__(self, params, autoload=True):
self.project_file = str(params['project_file'])
self.project_file = Path(params['project_file'])
params['project_file'] = self.project_file.__str__()
pap = conf.ilastik.paths['project_files'] / self.project_file
self.project_file_abspath = pap
if not pap.exists():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment