Skip to content

Spool iteration not robust to files changing distance #583

@d-chambers

Description

@d-chambers

Description

Suppose a spool has two types of patches. In the first, distance ranges from 0 too 100. In the second type of file distance ranges from 0 to 10. Now, if the spool is selected with distance=(20, 3) the spool wont automatically throw out type 2 files because it doesn't know anything about distance. However, when trying to read the index of a type 2 file an IndexError is raised.

Example

A bit complicated to set up but described above.

Expected behavior

Ideally, when we redo the indexing, the spool select operation will remove the type two files. Until then, it should just be skipped when iterating, but still raise when accessed directly.

Versions

  • OS [e.g. Ubuntu 20.04]:
  • DASCore Version [e.g. 0.0.5]:
  • Python Version [e.g. 3.10]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions