Révision 47 database/import_gaussian_calc
import_gaussian_calc (revision 47) | ||
---|---|---|
120 | 120 |
parser.add_argument("-e", "--exclude_dir",help="Directory to be excluded in the scanning") |
121 | 121 |
parser.add_argument("-d", help="Name of the database file to store the scanned calculations") |
122 | 122 |
parser.add_argument("-n", help="Number of processers") |
123 |
parser.add_argument("-u", help="The user who did the calculations") |
|
123 | 124 |
parser.add_argument("-j", help="Project name") |
124 | 125 |
args = parser.parse_args() |
125 | 126 |
if args.path is None: |
... | ... | |
146 | 147 |
nproc = 8 |
147 | 148 |
else: |
148 | 149 |
nproc = int(args.n) |
150 |
if args.u is None: |
|
151 |
user = os.environ['USER'] |
|
152 |
else: |
|
153 |
user = args.u |
|
149 | 154 |
if args.j is None: |
150 | 155 |
project = 'gaussian' |
151 | 156 |
else: |
152 | 157 |
project = int(args.j) |
153 | 158 |
|
154 |
import_gaussian_calculations(path, db, use_input=use_input, include_dir=include_dir, exclude_dir=exclude_dir, project=project, nproc=nproc) |
|
159 |
import_gaussian_calculations(path, db, use_input=use_input, include_dir=include_dir, exclude_dir=exclude_dir, project=project, nproc=nproc,user=user) |
Formats disponibles : Unified diff