Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Fixed a bug in the comparison of variables that included Inf or -Inf …
Browse files Browse the repository at this point in the history
…(in the 1.0.1 release psom_cmp_var(Inf,Inf) would return false).
  • Loading branch information
pbellec committed Aug 21, 2013
1 parent 3f2789d commit fc03b94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion READ_ME.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
=Pipeline System for Octave and Matlab (PSOM), version 1.0.1=
=Pipeline System for Octave and Matlab (PSOM), version 1.0.2=

The pipeline system for Octave and Matlab (PSOM) is a lightweight library to manage complex multi-stage data processing.
A pipeline is a collection of jobs, i.e. Matlab or Octave codes with a well identified set of options that are using files for inputs and outputs.
Expand Down
2 changes: 1 addition & 1 deletion psom_cmp_var.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
mask_nan = isnan(var1);
flag_equal = false(size(var1));
flag_equal(mask_nan) = isnan(var2(mask_nan));
flag_equal(~mask_nan) = abs(var1(~mask_nan) - var2(~mask_nan)) <= opt.eps;
flag_equal(~mask_nan) = (abs(var1(~mask_nan) - var2(~mask_nan)) <= opt.eps)|((var1(~mask_nan)==Inf)&(var2(~mask_nan)==Inf))|((var1(~mask_nan)==-Inf)&(var2(~mask_nan)==-Inf));
flag_equal = min(flag_equal);
end

Expand Down
2 changes: 1 addition & 1 deletion psom_gb_vars.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% PSOM version
gb_psom_version = '1.0.1'; % PSOM release number
gb_psom_version = '1.0.2'; % PSOM release number

% Is the environment Octave or Matlab ?
if exist('OCTAVE_VERSION','builtin')
Expand Down

0 comments on commit fc03b94

Please sign in to comment.