-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap to gwemopt v0.2 and pydantic v2
- Loading branch information
1 parent
abf759f
commit 8c1e4a6
Showing
10 changed files
with
189 additions
and
5,119 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -19,25 +19,21 @@ We suggest using a conda environment to install `snipergw`, with python>=3.10. | |
You can then install the package using `pip` and `poetry`: | ||
|
||
``` | ||
git clone --recurse-submodules [email protected]:robertdstein/snipergw.git | ||
git clone [email protected]:robertdstein/snipergw.git | ||
cd snipergw | ||
pip install poetry | ||
poetry install | ||
pip install -e . | ||
pre-commit install | ||
``` | ||
|
||
Make sure not to miss the `--recurse-submodules` flag, as this is required to download the `gwemopt` submodule. | ||
|
||
Sometimes, if you are using a conda environment, you might need to run `poetry install` twice. | ||
If you still have problems, try installing troublesome packages with `conda`, and then do `pip install -e .` instead of `poetry install`. | ||
|
||
Note for ARM-based macs: The installation of `fiona` might fail if you do not have [gdal](https://gdal.org/) installed. In that case, consider using a `conda` and running `conda install -c conda-forge gdal` before running `poetry install`. | ||
Note for ARM-based macs: The installation of `fiona` might fail if you do not have [gdal](https://gdal.org/) installed. In that case, consider using a `conda` and running `conda install -c conda-forge gdal` before running `pip install`. | ||
|
||
If you want to generate movies, you also need to install `ffmpeg`, which you can do via `brew install ffmpeg` or `conda install -c conda-forge ffmpeg`. | ||
|
||
## Usage | ||
|
||
To use this functionality, you must first configure the connection details. Thos is instrument-specific. | ||
To use this functionality, you must first configure the connection details. This is instrument-specific. | ||
|
||
### ZTF | ||
You need both an API token, and to know the address of the Kowalski host address. You can then set these as environment variables: | ||
|
This file was deleted.
Oops, something went wrong.
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,39 +1,65 @@ | ||
[tool.poetry] | ||
[build-system] | ||
requires = ["setuptools>=45", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "snipergw" | ||
version = "0.2.0" | ||
version = "1.0.0" | ||
description = "" | ||
authors = ["Robert Stein <[email protected]>"] | ||
license = "MIT" | ||
authors = [ | ||
{name = "Robert Stein", email = "[email protected]"} | ||
] | ||
license = {text = "MIT"} | ||
readme = "README.md" | ||
include = ["gwemopt/bin/**"] | ||
requires-python = ">=3.10" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Intended Audience :: Science/Research', | ||
'Intended Audience :: End Users/Desktop', | ||
'Intended Audience :: Developers', | ||
'Natural Language :: English', | ||
'Topic :: Scientific/Engineering', | ||
'Topic :: Scientific/Engineering :: Astronomy', | ||
'Topic :: Scientific/Engineering :: Physics', | ||
'Operating System :: POSIX', | ||
'Operating System :: Unix', | ||
'Operating System :: MacOS', | ||
] | ||
dependencies = [ | ||
"requests", | ||
"backoff", | ||
"ligo-gracedb", | ||
"lxml", | ||
"wget", | ||
"astropy", | ||
"numpy", | ||
"gwemopt==0.2.2", | ||
"pandas", | ||
"pydantic>=2.2.0", | ||
"planobs", | ||
"winterapi >= 1.4.0", | ||
] | ||
[project.optional-dependencies] | ||
dev = [ | ||
"black == 24.4.2", | ||
"isort == 5.13.2", | ||
"pylint == 3.2.2", | ||
"coveralls", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/winter-telescope/winterapi" | ||
|
||
[tool.setuptools] | ||
packages = ["snipergw"] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">3.10,<3.12" | ||
requests = "^2.31.0" | ||
backoff = "^2.2.1" | ||
ligo-gracedb = "^2.11.0" | ||
jupyter = "^1.0.0" | ||
lxml = "^4.9.2" | ||
wget = "^3.2" | ||
astropy = "^5.3" | ||
numpy = "1.24.3" | ||
gwemopt = { path = "./snipergw/gwemopt", develop = true } | ||
pandas = ">1.4.0" | ||
pydantic = "^1.10.9" | ||
planobs = "^0.7.2" | ||
black = "^23.3.0" | ||
isort = {extras = ["pyproject"], version = "^5.12.0"} | ||
pre-commit = "^3.3.3" | ||
coveralls = {extras = ["toml"], version = "^3.3.1"} | ||
winterapi = "^0.2.0" | ||
[tool.coverage.run] | ||
source = ["snipergw"] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
skip = ["snipergw/gwemopt"] | ||
|
||
[tool.black] | ||
exclude = "snipergw/gwemopt" | ||
|
||
[tool.coverage.report] | ||
# Regexes for lines to exclude from consideration | ||
|
@@ -59,7 +85,3 @@ exclude_lines = [ | |
"raise" | ||
] | ||
ignore_errors = true | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
Submodule gwemopt
deleted from
a962b1
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.