-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate_python.py
More file actions
68 lines (53 loc) · 2.53 KB
/
template_python.py
File metadata and controls
68 lines (53 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
#======================================================================
# TITLE OF THE SCRIPT (should be representative)
#======================================================================
#@previous author: (in case of one)
#@author: name + surname(s)
#@email: email
#updated: DD MM YYY (e.g. 28 Feb 2023)
#status: still being developed/done
#to-do: (optional, for keep track what needs to be improved)
#Review History
#Reviewed by Name Date (e.g. name + surname(s) DD MM YYYY)
# Description:
# - Short description of what is your code about
#
# - Run: previous scripts that need to run these one (in case of one)
# - Input: files that are necessary to run the script
# - Output: files obtained after running the script
#-----------------------------------------------------------------------
"""
## Libraries needed, specify reason why so no extra libraries are load
import os #e.g for ...
import numpy as np #e.g for ...
import nibabel as nib #e.g for ...
import pandas as pd #e.g for ...
## Functions, please try to generalise as much as possible them
## for not overwritting files, ...
def create_figure(workdir, fig):
"""
Brief description of the function, input variables and output variables
"""
return
## Load data
inputdir=
#%% (#%%) can be used for creating cells as in jupiter notebooks
#----------------------------------------------------------------------
# SUBTITLES (in case your code needs subdivisions)
#----------------------------------------------------------------------
# Important! Please remove any patient/subject identifier from the code.
# Please use English i.e replace comments/variables in Dutch or other languages
## If there's a clear structure use subtitles but not always are needed
## Also depending on the hierarchy of the comments use # or ##
## Try all variable has logic names or then add comments as in the libraries
#----------------------------------------------------------------------
# References, links, others, ...
#----------------------------------------------------------------------
# Here add links that maybe are useful or references that have to be cited
## e.g. https://stackoverflow.com/
## "If you use the new robust version of SynthSeg in a publication, please cite:
## Robust Segmentation of Brain MRI in the Wild with Hierarchical CNNs and no Retraining
## B. Billot, M. Collin, S.E. Arnold, S. Das, J.E. Iglesias"