Skip to content

Commit dbc1b65

Browse files
committed
add software info to structure
1 parent 13dd113 commit dbc1b65

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/dot/postInitDots.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
% generic function to finalize dots set up after psychtoolbox initialization
66
%
77
%
8-
% (C) Copyright 2022 CPP_PTB developpers
8+
% (C) Copyright 2022 CPP_PTB developers
99

1010
cfg.dot.matrixWidth = cfg.screen.winWidth;
1111

src/initPTB.m

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,22 +108,24 @@
108108

109109
function cfg = getOsInfo(cfg)
110110

111-
cfg.software.os = computer();
112-
cfg.software.name = 'Psychtoolbox';
113-
cfg.software.RRID = 'SCR_002881';
111+
cfg.StimulusPresentation.OperatingSystem = computer();
112+
113+
cfg.StimulusPresentation.SoftwareRRID = 'SCR_002881';
114+
cfg.StimulusPresentation.Code = '';
114115

115116
[~, versionStruc] = PsychtoolboxVersion;
116117

117-
cfg.software.version = sprintf('%i.%i.%i', ...
118-
versionStruc.major, ...
119-
versionStruc.minor, ...
120-
versionStruc.point);
118+
cfg.StimulusPresentation.SoftwareVersion = sprintf('%i.%i.%i', ...
119+
versionStruc.major, ...
120+
versionStruc.minor, ...
121+
versionStruc.point);
121122

122123
runsOn = 'Matlab - ';
123124
if IsOctave
124125
runsOn = 'Octave - ';
125126
end
126-
cfg.software.runsOn = [runsOn version()];
127+
runsOn = [runsOn version()];
128+
cfg.StimulusPresentation.SoftwareName = ['Psychtoolbox on ' runsOn];
127129

128130
end
129131

0 commit comments

Comments
 (0)