Skip to content

Python 3 vs Python 2 discrepancy #14

Description

@Olabisi-Aishat-Bello

In case anyone is using this in python 3, you would likely need to make some changes to the standalone numpy python file:

i) Instead of import cPickle as pickle, you can do "import _pickle as pickle"

ii) Instead of "self.vars = pickle.load(fid)", you can do "self.vars = pickle.load(fid, encoding='latin1')"

iii) Also, replace any np.bool with bool if you are using a more recent numpy version

Hopefully, this helps!

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