-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR cleans up lots of dead code.
- Loading branch information
Showing
34 changed files
with
196 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,11 +62,12 @@ If you want the latest version, we recommend creating a clean environment: | |
```commandline | ||
conda create -n gwemopt python=3.11 | ||
git clone [email protected]:skyportal/gwemopt.git | ||
pip install -e gwemopt | ||
cd gwemopt | ||
pip install -e . | ||
pre-commit install | ||
``` | ||
|
||
or if you just want the latest version on Github: | ||
or if you just want the latest version released on PyPI: | ||
|
||
```commandline | ||
pip install gwemopt | ||
|
@@ -80,7 +81,7 @@ conda install -c astropy astroquery | |
conda install -c conda-forge voeventlib astropy-healpix python-ligo-lw ligo-segments ligo.skymap ffmpeg | ||
``` | ||
|
||
And then run `pip install -e gwemopt` again. | ||
And then run `pip install -e .` again. | ||
|
||
# Usage | ||
|
||
|
@@ -91,3 +92,17 @@ gwemopt-run .... | |
``` | ||
|
||
where ... corresponds to the various arguments. | ||
|
||
# Tests | ||
|
||
To run the tests, you'll first need to install gwemopt with the testing dependencies: | ||
|
||
```commandline | ||
pip install -e ".[test]" | ||
``` | ||
|
||
Then you can run the tests using: | ||
|
||
```commandline | ||
coverage run -m pytest -v -s | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import subprocess | ||
from pathlib import Path | ||
|
||
import numpy as np | ||
import pandas as pd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import subprocess | ||
from pathlib import Path | ||
|
||
import numpy as np | ||
import pandas as pd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.