- Timestamp:
- Feb 16, 2015, 3:31:22 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r871 r872 202 202 end 203 203 PlotParamOut.Axes=plot_profile(Data,CellInfo(index_1D),haxes,PlotParamOut.Axes,CheckHold);% 204 if isfield(PlotParamOut,'Vectors') 205 PlotParamOut=rmfield(PlotParamOut,'Vectors'); 206 end 207 if isfield(PlotParamOut,'Scalar') 208 PlotParamOut=rmfield(PlotParamOut,'Scalar'); 209 end 204 if isempty(index_2D) 205 if isfield(PlotParamOut,'Vectors') 206 PlotParamOut=rmfield(PlotParamOut,'Vectors'); 207 end 208 if isfield(PlotParamOut,'Scalar') 209 PlotParamOut=rmfield(PlotParamOut,'Scalar'); 210 end 211 end 210 212 if testzoomaxes 211 213 [zoomaxes,PlotParamOut.Axes]=plot_profile(Data,CellInfo(index_1D),zoomaxes,PlotParamOut.Axes,CheckHold); … … 572 574 %% give statistics for pdf 573 575 ind_var=find(testplot); 574 if numel(ind_var)==1 && isfield(data,'VarAttribute') && isfield(data.VarAttribute{ind_var},'Role')&&...575 strcmp(data.VarAttribute{ind_var}.Role,'histo')576 if numel(ind_var)==1 && isfield(data,'VarAttribute') &&numel(data.VarAttribute)>=ind_var &&... 577 isfield(data.VarAttribute{ind_var},'Role') && strcmp(data.VarAttribute{ind_var}.Role,'histo') 576 578 pdf_val=data.(data.ListVarName{ind_var}); 577 579 x=coord_x{1}; -
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) -
trunk/src/series/aver_stat.m
r871 r872 84 84 end 85 85 % introduce bin size for histograms 86 if Param.CheckObject86 if isfield(Param,'CheckObject') && Param.CheckObject 87 87 SeriesData=get(hseries,'UserData'); 88 88 if ismember(SeriesData.ProjObject.ProjMode,{'inside','outside'}) -
trunk/src/series/time_series.m
r871 r872 85 85 end 86 86 % introduce bin size for histograms 87 if Param.CheckObject87 if isfield(Param,'CheckObject') &&Param.CheckObject 88 88 SeriesData=get(hseries,'UserData'); 89 if checkhisto89 if ismember(SeriesData.ProjObject.ProjMode,{'inside','outside'}) 90 90 answer=msgbox_uvmat('INPUT_TXT','set bin size for histograms (or keep ''auto'' by default)?','auto'); 91 91 ParamOut.ActionInput.VarMesh=str2double(answer);
Note: See TracChangeset
for help on using the changeset viewer.