Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# coding: utf-8
# ## Prepare Data
# In[1]:
import pandas as pd
import numpy as np
import attr
from pathlib import Path
import os
from ..core import Workflow
from ..task import ShellCommandTask
from ..submitter import Submitter
from ..specs import SpecInfo, ShellSpec, ShellOutSpec, File
from ... import mark
@djarecka
djarecka / yml
Created December 19, 2019 19:44
# build and execution requirements, using Neurodocker format
requirements:
base:
image: debian:stretch
pkg-manager: apt
fsl:
version: 5.0.10
afni:
version: latest
miniconda:
Your branch is up-to-date with 'origin/_conda_cache_origin_head'.
checkout: 'HEAD'
==> git log -n1 <==
commit 38d82aa1f7f0dad60405dbe13e5f208dbdc3d1b7
Author: Stefan Krah <skrah@bytereef.org>
Date: Tue May 8 16:43:18 2018 +0200
Upload to xnd.
src:
class: File
path: reading.py
dir:
class: Directory
path: /path/to/data
# -*- coding: utf-8 -*- \
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- \
# vi: set ft=python sts=4 ts=4 sw=4 et: \
"""Tests for the engine utils module \
"""
from __future__ import print_function, division, unicode_literals, absolute_import
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""Tests for the engine utils module
"""
from __future__ import print_function, division, unicode_literals, absolute_import
from builtins import range, open
import os
from copy import deepcopy
from nipype import Node, Function, Workflow, config
config.enable_debug_mode()
import pdb
import numpy as np
### EX.1
def adding(inp):
return inp + 1