-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjobs_preprocess.m
30 lines (28 loc) · 974 Bytes
/
jobs_preprocess.m
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
function jobs_preprocess( Ns, dims, shapes )
%JOBS_PREPROCESS loads combined job files and computes averages for the
% statistics. The expectation values per event in a respective causet are
% stored in new files, which have the fieldname appended to the filename.
%
% Arguments:
% NS array of numbers of elements in the causet.
% DIMS array of spacetime dimensions.
%
% Optional arguments:
% SHAPES string array of shape names.
%
% Copyright 2021, C. Minz. BSD 3-Clause License.
%% set default values:
if nargin < 3 || isempty( shapes )
shapes = { 'Bicone' };
end
%% run through Ns, dimensions and shapes:
for N = Ns
for d = dims
for shape = shapes
filename = jobs_getfilename( ...
jobs_getparamstr( N, d, shape ) );
jobs_preprocessfile( filename );
end
end
end
end