Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Johannes Pfeifer
dynare
Commits
a1602310
Unverified
Commit
a1602310
authored
Mar 16, 2020
by
Houtan Bastani
Committed by
Sébastien Villemot
Dec 07, 2020
Browse files
ensure only lowercase files are retrieved
parent
05c79256
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/accessors/get_posterior_irf.m
View file @
a1602310
...
...
@@ -55,8 +55,9 @@ end
% We use the raw files, i.e. those that are *not* the output of
% ReshapeMatFiles.m. Their filename contains 'irf_dsge' in *lowercase*.
NumberIRFsFiles
=
length
(
dir
([
M_
.
dname
'/metropolis/'
M_
.
fname
'_irf_dsge*'
]));
filesUpperAndLower
=
dir
([
M_
.
dname
'/metropolis/'
M_
.
fname
'_irf_dsge*'
]);
filesLower
=
cellfun
(
@
any
,
regexp
({
filesUpperAndLower
.
name
},
[
M_
.
fname
'_irf_dsge\d\.mat'
]));
NumberIRFsFiles
=
sum
(
filesLower
);
if
NumberIRFsFiles
==
0
error
(
'Can
''
t find posterior IRFs file(s)'
)
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment