Skip to content

Commit a773950

Browse files
committed
Preparations for v0.4.
1 parent 05f1055 commit a773950

File tree

6 files changed

+60
-209
lines changed

6 files changed

+60
-209
lines changed

Examples/CFS/TnK/TnK_generate_trials.m

+28-22
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,28 @@
1212
checker_length=30, ...
1313
checker_width=15);
1414

15-
% import CFSVM.MondrianGenerator
16-
% % Will generate Mondrians inside dirpath/Masks
17-
% generator = MondrianGenerator( ...
18-
% '../Stimuli/', ...
19-
% type='rectangle', ...
20-
% x_pixels=512, ...
21-
% y_pixels=512, ...
22-
% min_fraction=1/20, ...
23-
% max_fraction=1/8, ...
24-
% n_figures=1000);
25-
%
26-
% generator.set_physical_properties(60, 1920, 33.5, 1080, 45);
27-
%
15+
import CFSVM.MondrianGenerator
16+
% Will generate Mondrians inside dirpath/Masks
17+
generator = MondrianGenerator( ...
18+
'../Stimuli/', ...
19+
type='rectangle', ...
20+
x_pixels=512, ...
21+
y_pixels=512, ...
22+
min_fraction=1/20, ...
23+
max_fraction=1/8, ...
24+
n_figures=1000);
25+
26+
generator.set_physical_properties(60, 1920, 33.5, 1080, 45);
27+
28+
generator.set_cmap('grayscale', n_tones=5)
2829
% generator.set_shades([0,0,0], 5);
29-
%
30-
% generator.generate(51);
30+
% generator.cmap = [0 0 0
31+
% 0.25 0.25 0.25
32+
% 0.5 0.5 0.5
33+
% 0.75 0.75 0.75
34+
% 1 1 1]
35+
36+
generator.generate(51);
3137

3238
experiment.masks = Mondrians( ...
3339
dirpath='../Stimuli/Masks', ...
@@ -72,15 +78,15 @@
7278
n_images = 2;
7379
for block = 1:n_blocks
7480
for trial = 1:n_trials(block)
75-
exp = copy(experiment);
76-
exp.stimulus_1.index = randi(n_images);
77-
exp.stimulus_1.rotation = orientations(randi(length(orientations), 1));
78-
exp.stimulus_2.index = randi(n_images);
79-
exp.stimulus_2.rotation = orientations(randi(length(orientations), 1));
81+
exp_copy = copy(experiment);
82+
exp_copy.stimulus_1.index = randi(n_images);
83+
exp_copy.stimulus_1.rotation = orientations(randi(length(orientations), 1));
84+
exp_copy.stimulus_2.index = randi(n_images);
85+
exp_copy.stimulus_2.rotation = orientations(randi(length(orientations), 1));
8086
if trial >= 20
81-
exp.stimulus_2.contrast = 0;
87+
exp_copy.stimulus_2.contrast = 0;
8288
end
83-
trial_matrix{block}{trial} = exp;
89+
trial_matrix{block}{trial} = exp_copy;
8490
end
8591
trial_matrix{1} = trial_matrix{1}(randperm(numel(trial_matrix{1})));
8692
end

Examples/Masking/VSM/VSM_generate_trials.m

-82
This file was deleted.

Examples/Masking/VSM/VSM_main.m

-30
This file was deleted.

docs/conf.py

+4-27
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
# -- Project information -----------------------------------------------------
99

1010
project = 'CFSVM'
11-
copyright = '2023'
11+
copyright = '2023, Liad Mudrik lab'
1212
author = 'Gennadiy Belonosov'
13-
release = 'v0.3.0'
13+
release = 'v0.4.0'
1414

1515
# -- General configuration ---------------------------------------------------
1616

@@ -52,20 +52,6 @@
5252
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/brands.min.css",
5353
]
5454
html_theme_options = {
55-
# "external_links": [
56-
# {
57-
# "url": "https://people.socsci.tau.ac.il/mu/mudriklab/",
58-
# "name": "Liad Mudrik lab",
59-
# },
60-
61-
# {
62-
# "url": "http://psychtoolbox.org/",
63-
# "name": "PTB-3",
64-
# },
65-
66-
# ],
67-
68-
# "header_links_before_dropdown": 4,
6955
"icon_links": [
7056
{
7157
"name": "GitHub",
@@ -85,16 +71,7 @@
8571
"image": "_static/logo_round.bmp",
8672
"alt_text": "Continuous flash suppression & Visual masking",
8773
},
74+
"footer_start": ['copyright'],
75+
"footer_end": [],
8876
}
8977

90-
# html_context = {
91-
# "github_user": "Mudrik-Lab",
92-
# "github_repo": "CFS",
93-
# "github_version": "main",
94-
# "doc_path": "docs",
95-
# }
96-
# html_theme_options = {
97-
# "footer_items": []
98-
# }
99-
100-

docs/index.rst

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
.. CFS documentation master file, created by
2-
sphinx-quickstart on Thu Feb 23 17:11:55 2023.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
5-
6-
7-
Welcome to CFS's documentation!
8-
===============================
1+
Welcome to CFSVM's documentation!
2+
=================================
93

104
.. toctree::
115
:maxdepth: 1

0 commit comments

Comments
 (0)