<gh_stars>10-100
# -*- coding: utf-8 -*-
"""
This example examines only processing a subset of features. This may be useful
for users that are only concerned about trying to match specific features. It can
also save time.
"""

import sys
import os

sys.path.append('..')

import open_worm_analysis_toolbox as mv


def main():
    # Set up the necessary file paths for file loading
    base_path = os.path.abspath(mv.user_config.EXAMPLE_DATA_PATH)
    data_file_path = os.path.join(base_path, "example_video_norm_worm.mat")

    # Load the normalized worm from file
    nw = mv.NormalizedWorm.from_schafer_file_factory(data_file_path)

    # Generate the OpenWorm version of the features
    fpo = mv.FeatureProcessingOptions()
    fpo.disable_feature_sections(['morphology'])
    openworm_features = mv.WormFeatures(nw, fpo)

    openworm_features.timer.summarize()


if __name__ == '__main__':
    main()

# -*- coding: utf-8 -*-
"""
This example examines only processing a subset of features. This may be useful
for users that are only concerned about trying to match specific features. It can
also save time.
"""

import sys
import os

sys.path.append('..')

import open_worm_analysis_toolbox as mv


def main():
    # Set up the necessary file paths for file loading
    base_path = os.path.abspath(mv.user_config.EXAMPLE_DATA_PATH)
    data_file_path = os.path.join(base_path, "example_video_norm_worm.mat")

    # Load the normalized worm from file
    nw = mv.NormalizedWorm.from_schafer_file_factory(data_file_path)

    # Generate the OpenWorm version of the features
    fpo = mv.FeatureProcessingOptions()
    fpo.disable_feature_sections(['morphology'])
    openworm_features = mv.WormFeatures(nw, fpo)

    openworm_features.timer.summarize()


if __name__ == '__main__':
    main()
# -*- coding: utf-8 -*- This example examines only processing a subset of features. This may be useful for users that are only concerned about trying to match specific features. It can also save time. # Set up the necessary file paths for file loading # Load the normalized worm from file # Generate the OpenWorm version of the features