Coverage for skema/utils/module_to_fn_collection.py: 0%

4 statements  

« prev     ^ index     » next       coverage.py v7.5.0, created at 2024-04-30 17:15 +0000

1from skema.gromet.fn import ( 

2 GrometFNModuleCollection, 

3) 

4 

5def module_to_fn_collection(gromet_module, sysname=""): 

6 """ Given a single GroMEt FN module, this function 

7 puts a 'GrometFNModuleCollection' shell around it 

8 in order to effectively support multi module GroMEt systems 

9 as intended from v0.1.5 and on 

10 """ 

11 

12 module_collection = GrometFNModuleCollection( 

13 schema_version="0.1.5", 

14 name=sysname, 

15 modules=[gromet_module], 

16 module_index=[], 

17 executables=[], 

18 ) 

19 

20 return module_collection 

21