Skip to content

Commit

Permalink
Zeffiro developer: A regular push adding the changes made in the curr…
Browse files Browse the repository at this point in the history
…ent local repository to the remote origin. Contents of the folders ./data/ and ./profile/ are ignored. The update necessitates creating a personal access token.
  • Loading branch information
sampsapursiainen committed Aug 1, 2024
1 parent b030161 commit 53d142e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion m/zef_init_fields_compartment_table.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
zef.h_compartment_table.ColumnName(1:zef.compartment_table_size) = {'ID','On','Name','Visible','Surface nodes','Surface triangles','Merge','Invert normal','Activity' };
zef.h_compartment_table.ColumnName(1:zef.compartment_table_size) = {'Index','On','Name','Visible','Surface nodes','Surface triangles','Merge','Invert normal','Activity' };
zef.h_compartment_table.ColumnEditable(1:zef.compartment_table_size) = logical([1 1 1 1 0 0 1 1 1]);
zef.h_compartment_table.ColumnEditable(zef.compartment_table_size:end) = true;
zef.h_compartment_table.ColumnFormat(1:zef.compartment_table_size) = {'numeric','logical','char','logical','numeric','numeric','logical','logical',zef.compartment_activity};
Expand Down
14 changes: 0 additions & 14 deletions m/zef_update.m
Original file line number Diff line number Diff line change
Expand Up @@ -115,22 +115,8 @@

%sensors end

zef.aux_field_1 = cell(0);
zef.aux_field_2 = zeros(length(zef.compartment_tags),1);

for zef_i = 1 : length(zef.compartment_tags)

zef.aux_field_2(zef_i) = eval(['zef.' zef.compartment_tags{zef_i} '_priority']);

end

[~, zef.aux_field_2] = sort(zef.aux_field_2);
zef.compartment_tags = zef.compartment_tags(zef.aux_field_2);

zef = zef_update_compartment_table_data(zef);

zef.compartment_tags = fliplr(zef.compartment_tags);

if isfield(zef,'h_zeffiro_menu')
if isvalid(zef.h_zeffiro_menu)

Expand Down
5 changes: 4 additions & 1 deletion m/zef_update_compartment_table_data.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
zef = evalin('base','zef');
end

zef.compartment_tags = fliplr(zef.compartment_tags);

for zef_i = 1 : length(zef.compartment_tags)
for zef_i = 1 : length(zef.compartment_tags)

zef_j = zef_i;

Expand Down Expand Up @@ -38,6 +39,8 @@
zef.h_compartment_table.ColumnWidth = [zef.h_compartment_table.ColumnWidth repmat({'fit'},1,missing_entries)];
end

zef.compartment_tags = fliplr(zef.compartment_tags);

if nargout == 0
assignin('base','zef',zef);
end

0 comments on commit 53d142e

Please sign in to comment.