Skip to content
Snippets Groups Projects
Commit ae012aaf authored by Lemmer, Jan's avatar Lemmer, Jan
Browse files

Correct some spelling, Add some comments

parent e03b00a9
No related branches found
No related tags found
2 merge requests!13PreRelease_V0.1,!12PreRelease_V0.1
......@@ -44,6 +44,11 @@ h5create(fpath, "/y1", size(y1), "Datatype", class(y1))
h5write(fpath, "/x1", x1)
h5write(fpath, "/y1", y1)
%% function calls
% Place for post-processing of the data, or additional related code.
a = 1;
% example_fcn is a dummy function to show the functionality
a = example_fcn(a);
%% Plotting
% This is still part of a normal script to produce plots.
......@@ -60,16 +65,10 @@ set(gca, 'TickDir', 'out', 'YLim', [0,4]);
%% Tag the plot
% PlotID Implementation starts here.
% TagPlot adds a visible ID to the figure and to the property fig.Tag
[figs, ID] = TagPlot(fig, ProjectID);
%% call a dummy function
% Place for post-processing of the plot, or additional related code.
a=1;
a = example_fcn(a);
%% Publishing
% Second part of plotID
% The functions needs the file location, the location of the data and the
......@@ -83,7 +82,6 @@ path.rdata = {dataset1,dataset2} ; % don't forget the extension
Publish(path, ID, figs, 'Location', 'local','Method','centraliced')
%% Second Plot with identical data to test centralized method
%
fig2 =figure;
plot(x,y,'-k');
......
function [ID] = CreateID(method)
%CreateID Creates an Identifier (char)
%CreateID Creates an identifier (char)
% Creates an (sometimes unique) identifier based on the selected method
% if no method is selected method 1 will be the default method
arguments
......@@ -13,7 +13,8 @@ switch method
pause(0.5); %Pausing for unique IDs
case 2 % random UUID from Java 128 bit
%Static factory to retrieve a type 4 (pseudo randomly generated) UUID.
% The UUID is generated using a cryptographically strong pseudo random number generator.
% The UUID is generated using a cryptographically strong pseudo
% random number generator.
temp = java.util.UUID.randomUUID;
ID = temp.toString;
otherwise
......
function Publish(DataPaths, ID, figures, options)
%Publishes Saves Plot, Data and Measuring script
% Detailed explanation goes here
% Location sets the storage location. local is in the current folder (an
% export folder will be created), server is a remote Path
% two Methods are implemented individual stores the data for each plot
% while centralized uses a data folder and uses reference links to the
% original data
%Publishes saves plot, data and measuring script
% Location sets the storage location. 'local' sets the storage location
% to the current folder (an export folder will be created), 'server' is a
% remote path.
% Two Methods are implemented 'individual' stores the data for
% each plot while 'centralized' uses a data folder and uses reference links
% to the original data (hdf5 only).
arguments
DataPaths
......
function [figs, ID] = TagPlot(figs, prefix, options)
%TagPlot adds IDs to figures
% The ID is placed visual on the figure window and as Tag (Property of figure)
% The ID is placed visual on the figure window and as Tag (property of figure)
% TagPlot can tag multiple figures at once
% prefix is the project number (string or char)
%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment