Source code for capsul.study_config.config_modules.smartcaching_config
# -*- coding: utf-8 -*-
'''
Process execution cache configuration module
Classes
=======
:class:`SmartCachingConfig`
---------------------------
'''
from __future__ import absolute_import
from traits.api import Bool, Undefined
from capsul.study_config.study_config import StudyConfigModule
[docs]
class SmartCachingConfig(StudyConfigModule):
'''
'''
def __init__(self, study_config, configuration):
super(SmartCachingConfig, self).__init__(study_config, configuration)
study_config.add_trait('use_smart_caching', Bool(
False,
output=False,
desc='Use smart-caching during the execution',
groups=['smartcaching']))
self.study_config = study_config
# self.study_config.on_trait_change(self._use_smart_caching_changed, 'use_smart_caching')