コード例 #1
0
def create_file_module(fname, f=None, module=None):

    if f is None:
        f = File()
    f.name = getFileRelativeToCurrentVT(fname)
    f.upToDate = True
    return f
コード例 #2
0
ファイル: init.py プロジェクト: painter1/vistrails
 def run_figure(self, code_str, graphics_dev, width, height, 
                excluded_inputs=set(['source'])):
     f, fname = tempfile.mkstemp(prefix='vtr', suffix='.' + graphics_dev)
     r_temp_files.append(fname)
     os.close(f)
     robjects.r[graphics_dev](file=fname, width=width, height=height)
     self.run_code(code_str, use_input=True, 
                   excluded_inputs=excluded_inputs)
     robjects.r['dev.off']()
     image_file = File()
     image_file.name = fname
     image_file.upToDate = True
     self.setResult('imageFile', image_file)
コード例 #3
0
def create_file_module(fname, f=None):
    if f is None:
        f = File()
    f.name = fname
    f.upToDate = True
    return f
コード例 #4
0
ファイル: utils.py プロジェクト: AnyarInc/VisTrails
def create_file_module(fname, f=None):
    if f is None:
        f = File()
    f.name = fname
    f.upToDate = True
    return f
コード例 #5
0
 def set_result(self, path):
     persistent_path = File()
     persistent_path.name = path
     persistent_path.setResult('value', self)
     persistent_path.upToDate = True
     self.setResult("value", persistent_path)
コード例 #6
0
 def set_result(self, path):
     persistent_path = File()
     persistent_path.name = path
     persistent_path.setResult('value', self)
     persistent_path.upToDate = True
     self.setResult("value", persistent_path)