Changeset 872 for trunk/src/series.m
- Timestamp:
- Feb 16, 2015, 3:31:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r869 r872 135 135 [path_series,name,ext]=fileparts(which('series'));% path to the GUI series 136 136 path_series_fct=fullfile(path_series,'series');%path of the functions in subdirectroy 'series' 137 ActionExtList={'.m';'.sh';'.py (in dev.)'};% default choice of extensions (Matlab fct .m or compiled version .sh 137 [code, message] = system... 138 ('LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | pyp "p.split('':'') |... [s for s in p if ''matlab'' not in s] | '':''.join(p)") python -c "import fluiddyn"'); 139 if code==0 140 ActionExtList={'.m';'.sh';'.py (in dev.)'};% default choice of extensions (Matlab fct .m or compiled version .sh 141 else 142 ActionExtList={'.m';'.sh'}; 143 disp('python library not installed') 144 end 138 145 ActionPathList=cell(NbBuiltinAction,1);%initiate the cell matrix of Action fct paths 139 146 ActionPathList(:)={path_series_fct}; %set the default path to series fcts to all list members … … 175 182 end 176 183 %get the menu of actions 177 if isfield(h,'ActionExtListUser') && iscell(h.ActionExtListUser)178 ActionExtList=[ActionExtList; h.ActionExtListUser];179 end184 % if isfield(h,'ActionExtListUser') && iscell(h.ActionExtListUser) 185 % ActionExtList=[ActionExtList; h.ActionExtListUser]; 186 % end 180 187 if isfield(h,'ActionListUser') && iscell(h.ActionListUser) && isfield(h,'ActionPathListUser') && iscell(h.ActionPathListUser) 181 188 ActionList=[ActionList;h.ActionListUser]; … … 1985 1992 1986 1993 % record the file extension and extend the path list if it is a new extension 1987 ActionExtList=get(handles.ActionExt,'String');1988 ActionExtIndex=find(strcmp(ActionExt,ActionExtList), 1);1989 if isempty(ActionExtIndex)1990 set(handles.ActionExt,'String',[ActionExtList;{ActionExt}])1991 end1994 % ActionExtList=get(handles.ActionExt,'String'); 1995 % ActionExtIndex=find(strcmp(ActionExt,ActionExtList), 1); 1996 % if isempty(ActionExtIndex) 1997 % set(handles.ActionExt,'String',[ActionExtList;{ActionExt}]) 1998 % end 1992 1999 1993 2000 % remove old Action options in the menu (keeping a menu length <nb_builtin_ACTION+5) … … 2012 2019 ActionListUser=ActionList(NbBuiltinAction+1:numel(ActionList)-1); 2013 2020 ActionPathListUser=ActionPathList(NbBuiltinAction+1:numel(ActionList)-1); 2014 ActionExtListUser={};2015 if numel(ActionExtList)>22016 ActionExtListUser=ActionExtList(3:end);2017 end2021 % ActionExtListUser={}; 2022 % if numel(ActionExtList)>2 2023 % ActionExtListUser=ActionExtList(3:end); 2024 % end 2018 2025 if exist(profil_perso,'file') 2019 2026 save(profil_perso,'ActionListUser','ActionPathListUser','ActionExtListUser','-append') … … 3170 3177 set(handles.RunMode,'Value',2) 3171 3178 end 3172 % ActionList=get(handles.ActionName,'String');3173 % ActionName=ActionList{get(handles.ActionName,'Value')};3174 3179 3175 3180 function num_NbProcess_Callback(hObject, eventdata, handles)
Note: See TracChangeset
for help on using the changeset viewer.