Skip to content

load

database.load

                                                                                
 Documentation                                                                  
                          -- n/a --                                             
                                                                                
 Origin                                                                         
                          Authors   Markus Binsteiner (markus@frkl.io)          
                                                                                
 Context                                                                        
                          Tags         core                                     
                          Labels       package: kiara_modules.core              
                          References   source_repo:                             
                                       https://github.com/DHARPA-Project/kia…   
                                       documentation:                           
                                       https://dharpa.org/kiara_modules.core/   
                                       module_doc:                              
                                       https://dharpa.org/kiara_modules.core…   
                                       source_url:                              
                                       https://github.com/DHARPA-Project/kia…   
                                                                                
 Module config                                                                  
                          Field        Type     Description          Required   
                         ─────────────────────────────────────────────────────  
                          constants    object   Value constants      no         
                                                for this module.                
                          defaults     object   Value defaults for   no         
                                                this module.                    
                          value_type   string   The type of the      no         
                                                value to be stored              
                                                (if database                    
                                                sub-type).                      
                                                                                
 Module config          -- no config --                                         
 Python class                                                                   
                          class_name    LoadDatabaseModule                      
                          module_name   kiara_modules.core.database             
                          full_name     kiara_modules.core.database.LoadData…   
                                                                                
 Processing source code  ─────────────────────────────────────────────────────  
                          def process(self, inputs: ValueSet, outputs: Value…   
                                                                                
                              base_path = inputs.get_value_data("base_path")    
                              rel_path = inputs.get_value_data("rel_path")      
                                                                                
                              path = os.path.join(base_path, rel_path)          
                                                                                
                              outputs.set_value("database", path)               
                                                                                
                         ─────────────────────────────────────────────────────