Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dseries
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien Villemot
dseries
Commits
58f75327
Commit
58f75327
authored
Jun 24, 2015
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Locally install dates toolbox if not available.
parent
20347875
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/initialize_dseries_toolbox.m
+9
-9
9 additions, 9 deletions
src/initialize_dseries_toolbox.m
with
9 additions
and
9 deletions
src/initialize_dseries_toolbox.m
+
9
−
9
View file @
58f75327
% Check that dates module is
in matlab path
.
% Check that
the
dates module is
available
.
try
try
initialize_dates_toolbox
;
initialize_dates_toolbox
;
catch
catch
message
=
'The dates toolbox is not in the Matlab/Octave
''
s path!'
;
urlwrite
(
'https://github.com/DynareTeam/dates/archive/master.zip'
,
'master.zip'
)
;
message
=
char
(
message
,
'The toolbox can be downloaded here:
'
)
;
warning
(
'off'
,
'MATLAB:MKDIR:DirectoryExists
'
)
m
essage
=
char
(
message
,
' https://github.com/DynareTeam/date
s'
)
;
m
kdir
(
'../external
s'
)
message
=
char
(
message
,
'Check that you added the dates/src folder in the path.
'
)
;
warning
(
'on'
,
'MATLAB:MKDIR:DirectoryExists
'
)
disp
(
'
'
)
unzip
(
'master.zip'
,
'../externals
'
)
d
isp
(
message
)
d
elete
(
'master.zip'
)
disp
(
' '
)
addpath
([
pwd
()
'/../externals/dates-master/src'
]
)
error
(
'Please install the dates module or check Matlab/Octave
''
s path!'
)
initialize_dates_toolbox
;
end
end
% Get the path to the dseries toolbox.
% Get the path to the dseries toolbox.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment