Skip to content

MAINT: pysat 3.2.0 compatibility #51

@jklenzing

Description

@jklenzing

pysat 3.2.0 changes how parse_fixed_width_filenames works. For an empty fileset, values are returned as None rather than an empty list. This is a breaking change for the cosmic_gps instrument.

Since len cannot be run on NoneType, the check for files is updated to

stored['year'] is not None and len(stored['year']) > 0

where the first bit is the pysat 3.2.0 version, and the second bit is the pysat 3.1.0 check. When 3.2.0 is released, this can be simplified and a version limit can be added.

Metadata

Metadata

Assignees

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