Skip to content

Commit 1df03ab

Browse files
bronsolobronsolo
authored andcommitted
adjust for master
1 parent 8ed4216 commit 1df03ab

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

plotly/plotly_setup_aux/plotlycleanup.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
dircount = 1;
3434
for d = 1:length(plotlyScriptDirs)
3535
%parse filepath string at the Plotly directory
36-
plotlyLoc = strfind(fileparts(plotlyScriptDirs{d}),fullfile('MATLAB-api','plotly'));
36+
plotlyLoc = strfind(fileparts(plotlyScriptDirs{d}),fullfile('MATLAB-api-master','plotly'));
3737
plotlyToolboxLoc = strfind(fileparts(plotlyScriptDirs{d}),plotlyToolboxDir);
3838
if ~isempty(plotlyLoc)
39-
plotlyDirs{dircount} = fullfile(plotlyScriptDirs{d}(1:plotlyLoc-1),'MATLAB-api','plotly');
39+
plotlyDirs{dircount} = fullfile(plotlyScriptDirs{d}(1:plotlyLoc-1),'MATLAB-api-master','plotly');
4040
elseif ~isempty(plotlyToolboxLoc)
4141
plotlyDirs{dircount} = plotlyToolboxDir;
4242
end

plotly/plotly_setup_aux/plotlyupdate.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function plotlyupdate(varargin)
3434

3535
% remote Plotly API MATLAB Library url
3636
remote = ['https://raw.githubusercontent.com/plotly/MATLAB-api/',...
37-
'plotlyupdate/README.md'];
37+
'master/README.md'];
3838

3939
% remote Plotly API MATLAB Library
4040
try
@@ -74,10 +74,10 @@ function plotlyupdate(varargin)
7474
dircount = 1;
7575
for d = 1:length(plotlyScriptDirs)
7676
%parse filepath string at the Plotly directory
77-
plotlyLoc = strfind(fileparts(plotlyScriptDirs{d}),fullfile('MATLAB-api','plotly'));
77+
plotlyLoc = strfind(fileparts(plotlyScriptDirs{d}),fullfile('MATLAB-api-master','plotly'));
7878
plotlyToolboxLoc = strfind(fileparts(plotlyScriptDirs{d}),plotlyToolboxDir);
7979
if ~isempty(plotlyLoc)
80-
plotlyDirs{dircount} = fullfile(plotlyScriptDirs{d}(1:plotlyLoc-1),'MATLAB-api','plotly');
80+
plotlyDirs{dircount} = fullfile(plotlyScriptDirs{d}(1:plotlyLoc-1),'MATLAB-api-master','plotly');
8181
elseif ~isempty(plotlyToolboxLoc)
8282
plotlyDirs{dircount} = plotlyToolboxDir;
8383
end
@@ -134,7 +134,7 @@ function plotlyupdate(varargin)
134134
fprintf(['Downloading the Plotly API Matlab Library v.' pvRemote ' ... ']);
135135
end
136136

137-
newPlotlyUrl = 'https://github.com/plotly/MATLAB-api/archive/plotlyupdate.zip';
137+
newPlotlyUrl = 'https://github.com/plotly/MATLAB-api/archive/master.zip';
138138
newPlotlyZip = fullfile(plotlyUpdateDir,['plotlyupdate_' pvRemote '.zip']);
139139

140140
%download from url
@@ -179,10 +179,10 @@ function plotlyupdate(varargin)
179179
end
180180

181181
% new Plotly directory
182-
newPlotlyDir = fullfile(plotlyUpdateDir,'MATLAB-api-plotlyupdate','plotly');
182+
newPlotlyDir = fullfile(plotlyUpdateDir,'MATLAB-api-master','plotly');
183183

184184
% files in Plotly repo root
185-
repoRoot = dir(fullfile(plotlyUpdateDir,'MATLAB-api-plotlyupdate'));
185+
repoRoot = dir(fullfile(plotlyUpdateDir,'MATLAB-api-master'));
186186

187187
% files not to be included
188188
repoExclude = {'.','..','.gitignore','plotly'};
@@ -191,7 +191,7 @@ function plotlyupdate(varargin)
191191
d = 1;
192192
for r = 1:length(repoRoot);
193193
if(isempty(intersect(repoRoot(r).name,repoExclude)))
194-
auxFiles{d} = fullfile(plotlyUpdateDir,'MATLAB-api-plotlyupdate',repoRoot(r).name);
194+
auxFiles{d} = fullfile(plotlyUpdateDir,'MATLAB-api-master',repoRoot(r).name);
195195
d = d+1;
196196
end
197197
end

0 commit comments

Comments
 (0)