File tree Expand file tree Collapse file tree 2 files changed +1
-26
lines changed Expand file tree Collapse file tree 2 files changed +1
-26
lines changed Original file line number Diff line number Diff line change 3838from pathlib import Path
3939from os .path import isfile
4040from multiprocessing .managers import ListProxy , DictProxy
41- import inspect
4241
4342# Third Party Imports
4443import yaml
4544
4645# Local Imports
47- from navigate .tools .common_functions import build_ref_name , load_module_from_file
48- from navigate .model .features import feature_related_functions
46+ from navigate .tools .common_functions import build_ref_name
4947
5048
5149def get_navigate_path ():
@@ -1099,22 +1097,3 @@ def verify_configuration(manager, configuration):
10991097 {"channels" : {"count" : channel_count }},
11001098 )
11011099
1102-
1103- def set_feature_attributes (plugin_path ):
1104- """Load feature module and set function attributes.
1105-
1106- Parameters
1107- ----------
1108- plugin_path : str
1109- The path to the plugins folder.
1110- """
1111- features_dir = os .path .join (plugin_path , "model" , "features" )
1112- if os .path .exists (features_dir ):
1113- features = os .listdir (features_dir )
1114- for feature in features :
1115- feature_file = os .path .join (features_dir , feature )
1116- if os .path .isfile (feature_file ):
1117- temp = load_module_from_file (feature , feature_file )
1118- for c in dir (temp ):
1119- if inspect .isclass (getattr (temp , c )):
1120- setattr (feature_related_functions , c , getattr (temp , c ))
Original file line number Diff line number Diff line change @@ -65,14 +65,10 @@ def test_config_methods():
6565 "__spec__" ,
6666 "build_nested_dict" ,
6767 "build_ref_name" ,
68- "feature_related_functions" ,
6968 "get_configuration_paths" ,
7069 "get_navigate_path" ,
71- "inspect" ,
7270 "isfile" ,
7371 "load_configs" ,
74- "load_module_from_file" ,
75- "set_feature_attributes" ,
7672 "os" ,
7773 "platform" ,
7874 "shutil" ,
You can’t perform that action at this time.
0 commit comments