Skip to content

feat: Add a "smart-load" function #32

@jrwrigh

Description

@jrwrigh

It receives a dataBlockPath dictionary consisting of keys and Path objects to dataBlock vtk files and a dataBlock dictionary which may/may not have the dataBlocks specified already loaded.

Untested pseudo-code:

def smartLoad(dataBlockPathDict, dataBlockDict, force=False):                    
    for key, path in dataBlockPathDict.items():                                  
        if force or key not in dataBlockDict or path != dataBlockDict[key].path: 
            dataBlockDict[key] = loadDataBlock(path)                             

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions