Skip to content

enum34: KeyError in _INDEX_FREQUENCY_FUNCION_DICT lookup #57

Description

@tacsnack

With enum34 installed (due to other dependencies in a common environment) a KeyError is raised doing the _INDEX_FREQUENCY_FUNCION_DICT lookup.

    self._index_name_func = CMRESHandler._INDEX_FREQUENCY_FUNCION_DICT[self.index_name_frequency]
KeyError: 0

This occurs due to the fact that enum.py treated enums as ints and enum34 treats them as the class. Happy to help resolve this one as this will be a step to making this package py3 compatible potentially.

Thanks for your work on this. A really great package.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions