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

TODO: un-lock scipy #357

Closed
mathematicalmichael opened this issue Sep 5, 2019 · 6 comments · Fixed by #382
Closed

TODO: un-lock scipy #357

mathematicalmichael opened this issue Sep 5, 2019 · 6 comments · Fixed by #382
Assignees
Milestone

Comments

@mathematicalmichael
Copy link
Collaborator

we need to get to the bottom of what the problem is in scipy==1.3.1 ...

Using ripgrep, run rg scipy, pass -C 2 for context around regex matches (or -B for before, -A for after).

I would call this relatively high priority (despite many common projects version-locking scipy), and will put in a bit of time on it myself.

The goal would obviously be backwards-compatibility, and if possible... I would like to avoid going through the detailed changelog between the two versions.

@mathematicalmichael mathematicalmichael self-assigned this Sep 5, 2019
@mathematicalmichael mathematicalmichael pinned this issue Sep 5, 2019
@mathematicalmichael
Copy link
Collaborator Author

mathematicalmichael commented Sep 5, 2019

bash script I'm using for debugging test_sample.py. Since it has been very helpful, I will paste it here for posterity (can be readily adapted for other purposes, and I often forget how to invoke single tests in nose):

#!/bin/bash

for f in `seq 2 6`; do
  echo "Running tests for $f processors";
  mpirun -n $f nosetests test.test_sample:$1;
done

Usage: ./runtest.sh Test_sample_set

@mathematicalmichael
Copy link
Collaborator Author

I figured out what broke our implementation. @smattis

I tracked it to scipy.io.loadmat , and went about building scipy from source checking out commits one at a time that impacted this directory.

here is the list of "suspects":
https://github.com/scipy/scipy/commits/v1.3.0/scipy/io/matlab

This is the last one we pass on:
scipy/scipy@a2546b9#diff-da53e8dd97abe920dd48a332b398a05f

This breaks it:
scipy/scipy@af0c74c#diff-da53e8dd97abe920dd48a332b398a05f

@mathematicalmichael
Copy link
Collaborator Author

it appears that the behavior change is that files aren't left open,
the with .. as .. structure is used to ensure they get closed out asap.

for some reason this poses a problem for us?

@smattis smattis added this to the Version 3 milestone Nov 22, 2019
@smattis
Copy link
Contributor

smattis commented Nov 22, 2019

We should fix this for version 3. I suggest we move to pickle, which should take care of the problem

@mathematicalmichael
Copy link
Collaborator Author

upgrading SciPy requires python 3.5
Python 2 is EOL very soon, so I'm going to charge ahead with removing 2.7 from Travis

@mathematicalmichael
Copy link
Collaborator Author

fixed for v3 since scipy.io is replaced with pickle.

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 a pull request may close this issue.

2 participants