Deprecated functions and options

Definition of deprecation (From Wikipedia, the free encyclopedia)

In computer software standards and documentation, deprecation is the gradual phasing-out of a software or programming language feature.

A feature or method marked as deprecated is one which is considered obsolete, and whose use is discouraged. The feature still works in the current version of the software, although it may raise error messages as warnings. These serve to alert the user to the fact that the feature may be removed in future releases.

Introduction

FieldTrip is developed in a continuous fashion, i.e. there are no fixed releases, instead it is continuously being updated. Usually the changes to FieldTrip result in more functionality. Sometimes it is also neccessary to remove a function or some functionality in FieldTrip. The reasons for it can be that it is replaced by a better function, that the name has changed for consistency with other FieldTrip functions, or that the implementation was buggy and too difficult to fix.

Typically we will try to keep FieldTrip backward compatible whenever we replace a function or an option with something else. However, it is not possible to maintain backward compatibility for ever. That is why specific functionality is deprecated. This page tries to give an overview of deprecated functions and/or functionality.

Overview of deprecated functions

January 2010: Because of switching to the new low-level plotting functions in the plotting toolbox topoplot.m has become deprecated. Nearly all of it's functionality is now in topoplotER/TFR.

  • topoplot.m


May 2009: The read_fcdc/write_fcdc functions have all been replaced over the course of the last years by new functions in the fileio module. The new functions have a cleaner interface and should therefore be used preferably.

  • read_fcdc_header.m
  • read_fcdc_data.m
  • read_fcdc_event.m
  • read_fcdc_mri.m
  • read_fcdc_elec.m
  • write_fcdc_data.m
  • read_fcdc_spike.m
  • write_fcdc_spike.m


April 2007: The following functions have been excluded from the 0.9.8 release version

  • downsamplevolume.m
  • normalisevolume.m
  • segmentvolume.m
  • artifact_eog_old.m
  • artifact_jump_old.m
  • artifact_muscle_old.m
  • sourceplot_old.m
  • electrodenormalize.m
  • meginterpolate.m
  • precompute_leadfield.m


January 2006: The xxxvolume functions have all been renamed to volumexxx to make their names more consistent and to make it easier to find the FieldTrip functions that operate on volume data:

  • downsamplevolume.m has been renamed to volumedownsample
  • normalisevolume.m has been renamed to volumenormalise
  • segmentvolume.m has been renamed to volumesegment


January 2006: Some of the artifact detection functions have been completely rewritten. Although the new functions should have the same behaviour, the exact same result cannot be guaranteed. To allow people to use the old implementations, they are stil available:

  • artifact_eog_old.m is the old implementation of artifact_eog
  • artifact_jump_old.m is the old implementation of artifact_jump
  • artifact_muscle_old.m is the old implementation of artifact_muscle


September 2005: The list of trial functions below all predate the generic event handling that has been implemented using read_fcdc_event. These trial functions are file-format specific, and therefore deprecated.

The idea underlying the new implementation for trialfuns is to seperate the “hardware knowledge” for getting trigger information out of the file (in read_fcdc_event.m) from the “experiment knowledge” in determining the sequence of trigger events that is interesting (in the trialfun). There is one general trial function trialfun_general.m that can be used for selecting a segment around a trigger. A more elaborate explanation and example code is given here.

  • trialfun_brainvision.m
  • trialfun_ctf_continuous.m
  • trialfun_ctf_epoched.m
  • trialfun_eeprobe_avr.m
  • trialfun_eeprobe_cnt.m
  • trialfun_neuromag.m
  • trialfun_neuroscan_cnt.m
  • trialfun_neuroscan_eeg.m


Some miscellaneous functions that are deprecated are:

  • electrodenormalize.m has been replaced by electroderealign
  • meginterpolate.m has been replaced by the individual functions megrealign, megplanar and megrepair
  • precompute_leadfield.m has been replaced by prepare_leadfield
  • rejecttrial.m has been replaced by rejectvisual
  • statistics_random.m has been replaced by statistics_montecarlo


Overview of deprecated cfg options

January 2010: Several old options from topoplot.m (deprecated) have been renamed/deprecated and are now supported in topoplotER/TFR.

  • cfg.electrodes (renamed into: cfg.marker)
  • cfg.emarker (renamed into: cfg.markersymbol)
  • cfg.ecolor (renamed into: cfg.markercolor)
  • cfg.emarkersize (renamed into: cfg.markersize)
  • cfg.efontsize (renamed into: cfg.markerfontsize)
  • cfg.hlmarker (renamed into: cfg.highlightsymbol)
  • cfg.hlcolor (renamed into: cfg.highlightcolor)
  • cfg.hlmarkersize (renamed into: cfg.highlightsize)
  • cfg.maplimits (renamed into: cfg.zlim)
  • cfg.grid_scale (renamed into: cfg.gridscale)
  • cfg.interpolate (renamed into: cfg.interpolation)
  • cfg.numcontour (renamed into: cfg.contournum)
  • cfg.electrod (renamed into: cfg.marker)
  • cfg.electcolor (renamed into: cfg.markercolor)
  • cfg.emsize (renamed into: cfg.markersize)
  • cfg.efsize (renamed into: cfg.markerfontsize)
  • cfg.headlimits (renamed into: cfg.interplimits)
  • cfg.hllinewidth (deprecated)
  • cfg.headcolor (deprecated)
  • cfg.hcolor (deprecated)
  • cfg.hlinewidth (deprecated)
  • cfg.contcolor (deprecated)
  • cfg.outline (deprecated)
  • cfg.highlightfacecolor (deprecated)
  • cfg.showlabels (deprecated)
  • cfg.hllinewidth (deprecated)


July 2008

  • cfg.tightgrid (in prepare_dipole_grid)


Februari 2007

  • cfg.plot3d (in megrealign) has been replaced by cfg.feedback
  • cfg.plot3d (in electroderealign) has been merged with cfg.feedback


Older

  • cfg.sgn (in freqanalysis and some artifact functions) has been replaced by cfg.label for consistency with other functions
  • cfg.sgncomb has been replaced by cfg.labelcmb for consistency with cfg.label
  • cfg.rejectmuscle (preprocessing and rejectartifact) has been replaced by cfg.artfctdef.muscle
  • cfg.rejectjump (preprocessing and rejectartifact) has been replaced by cfg.artfctdef.jump
  • cfg.rejecteog (preprocessing and rejectartifact) has been replaced by cfg.artfctdef.eog
development/deprecated.txt · Last modified: 2010/01/07 14:27 by 131.174.202.219
Back to top
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0