Skip to content

Commit

Permalink
obsolete color keys do only throw a warning but still work
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfHielscher committed Jun 22, 2018
1 parent 7ae41af commit d7b0956
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
6 changes: 4 additions & 2 deletions obsolete/HKLOrientationMapping.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
function varargout = HKLOrientationMapping(varargin)
function oM = HKLOrientationMapping(varargin)

error('Starting with MTEX 5.1 "HKLOrientationMapping" has been replaced by "ipfHKLKey".')
warning('Starting with MTEX 5.1 "HKLOrientationMapping" has been replaced by "ipfHKLKey".')

oM = ipfHKLKey(varargin{:});

end

5 changes: 3 additions & 2 deletions obsolete/PatalaOrientationMapping.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
function varargout = PatalaOrientationMapping(varargin)
function oM = PatalaOrientationMapping(varargin)

error('Starting with MTEX 5.1 "PatalaOrientationMapping" has been replaced by "PatalaColorKey".')
warning('Starting with MTEX 5.1 "PatalaOrientationMapping" has been replaced by "PatalaColorKey".')
oM = PatalaColorKey(varargin{:});

end

6 changes: 4 additions & 2 deletions obsolete/TSLOrientationMapping.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
function varargout = TSLOrientationMapping(varargin)
function oM = TSLOrientationMapping(varargin)

error('Starting with MTEX 5.1 "TSLOrientationMapping" has been replaced by "ipfTSLKey".')
warning('Starting with MTEX 5.1 "TSLOrientationMapping" has been replaced by "ipfTSLKey".')

oM = ipfTSLKey(varargin{:});

end

6 changes: 4 additions & 2 deletions obsolete/ipdfHSVOrientationMapping.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
function varargout = ipdfHSVOrientationMapping(varargin)
function oM = ipdfHSVOrientationMapping(varargin)

error('Starting with MTEX 5.1 "ipdfHSVOrientationMapping" has been replaced by "ipfHSVKey".')
warning('Starting with MTEX 5.1 "ipdfHSVOrientationMapping" has been replaced by "ipfHSVKey".')

oM = ipfHSVKey(varargin{:});

end

0 comments on commit d7b0956

Please sign in to comment.