Skip to content

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

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)                             

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions