Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to be compatible with Python 3 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

burntyellow
Copy link

In testing the tutorial

https://www.livecomsjournal.org/article/10607-a-suite-of-tutorials-for-the-westpa-rare-events-sampling-software-article-v1-0

under Matt's Python 3 WESTPA, I encountered some errors. I attempted to fix some of these messages. My changes should have a #KFW in front of the line. Can you also take a look at the provided WExplore_analysis.py in the tutorial? I'm getting a

ModuleNotFoundError: No module named 'westpa.binning'

when executing it but it may be that my WESTPA environment is not correct?

build/lib.linux-x86_64-3.7/wex_utils.cpython-37m-x86_64-linux-gnu.so
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if there should be a .so file included in the repo since this could cause compatibility issues.

@@ -2,7 +2,8 @@
import networkx as nx
import pandas as pd
import heapq
import cPickle as pickle
#KFW import cPickle as pickle
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could probably be better handled by:

try:
    import cPickle as pickle
except ImportError:
    import pickle

I guess this depends on whether we want to maintain python 2/3 compatibility or if we're dropping python2 completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants