Skip to content

Comments

Port ldsc to Python 3#360

Open
pettyalex wants to merge 12 commits intobulik:masterfrom
belowlab:2-to-3
Open

Port ldsc to Python 3#360
pettyalex wants to merge 12 commits intobulik:masterfrom
belowlab:2-to-3

Conversation

@pettyalex
Copy link

This PR ports ldsc to Python 3, by running 2to3 over it, and then cleaning up indents with reindent.

It's been tested on our datasets, as well as the nose test suite that's included.

I did have to update one of the tests, it was comparing arrays to scalars using nose.tools.assert_almost_equal, I updated this to use numpy.isclose instead.

@pettyalex
Copy link
Author

This fixes #359 and #358

@laleoarrow
Copy link

This update could be of great assistance.

jhjiang2020 added a commit to jhjiang2020/ldsc that referenced this pull request Oct 30, 2025
Migrate ldsc from Python 2.7 to Python 3.6+ (based on bulik#360)
@charlesbreeze
Copy link

Update: NCI have released an updated Python 3 LDSC (with a webtool) at https://github.com/cbiit/ldsc

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.

3 participants