Skip to content

Index mismatch class NsxFile savesubsetnsx() #29

@TThomas001

Description

@TThomas001

The function uses DATA_PAGING_SIZE as the subset size but fails to consider file_time_s when calculating mm_length and using np.memmap. This results in an index mismatch and raises a ValueError: mmap length is greater than file size error.

input

  • file: ns4
  • param: file_time_s=30

env:

  • numpy 1.24.3
  • python 3.10.12

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