Skip to content

Commit 513fb6b

Browse files
Merge pull request #457 from lsst/tickets/SP-2104
SP-2104: update dependency requirements
2 parents 12c7f5f + b40577b commit 513fb6b

File tree

5 files changed

+45
-41
lines changed

5 files changed

+45
-41
lines changed

.github/workflows/test_and_build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
shell: bash -l {0}
3737
run: |
3838
conda install --yes --file=requirements.txt
39+
conda install --yes --file=optional-requirements.txt
3940
conda install --yes --file=test-requirements.txt
4041
4142
- name: install rubin_sim

optional-requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
openorb
22
openorb-data-de405
3+
george
4+
scikit-learn
5+
jinja2
6+
tornado

pyproject.toml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,26 @@ classifiers = [
1919
urls = {documentation = "https://rubin-sim.lsst.io", repository = "https://github.com/lsst/rubin_sim" }
2020
dynamic = [ "version" ]
2121
dependencies = [
22-
"numpy",
23-
"matplotlib",
24-
"healpy",
25-
"pandas",
26-
"numexpr",
27-
"scipy",
28-
"sqlalchemy",
29-
"astropy",
30-
"tables",
31-
"h5py",
3222
"astroplan",
23+
"astropy",
3324
"colorcet",
3425
"cycler",
35-
"george",
36-
"scikit-learn",
26+
"gitpython",
27+
"h5py",
28+
"healpy",
29+
"matplotlib",
30+
"numexpr",
31+
"numpy",
32+
"pandas",
33+
"pyarrow",
34+
"rubin-scheduler>=3.0",
35+
"scipy",
3736
"shapely",
38-
"skyfield",
37+
"skyfield>=1.52",
3938
"skyproj",
40-
"tqdm",
41-
"rubin-scheduler>=3.0",
42-
"pyarrow",
43-
"gitpython",
39+
"sqlalchemy",
40+
"tables",
41+
"tqdm"
4442
]
4543

4644
[project.optional-dependencies]
@@ -54,6 +52,11 @@ test = [
5452
dev = [
5553
"documenteer[guide]",
5654
]
55+
extras = [
56+
"george",
57+
"scikit-learn",
58+
"pyoorb",
59+
]
5760

5861
[project.scripts]
5962
rs_download_data = "rubin_sim.data.rs_download_data:rs_download_data"
@@ -85,7 +88,7 @@ version = { attr = "setuptools_scm.get_version" }
8588
where = [ "" ]
8689

8790
[tool.setuptools_scm]
88-
version_file = "rubin_sim/_version.py"
91+
version_file = "rubin_sim/version.py"
8992

9093

9194
[tool.pytest.ini_options]
@@ -98,7 +101,7 @@ exclude = "version.py"
98101

99102
[tool.black]
100103
line-length = 110
101-
target-version = ["py311"]
104+
target-version = ["py312"]
102105

103106
[tool.isort]
104107
profile = "black"
@@ -109,7 +112,7 @@ exclude = [
109112
"__init__.py",
110113
]
111114
line-length = 110
112-
target-version = "py311"
115+
target-version = "py312"
113116

114117
[tool.ruff.lint]
115118
ignore = [

requirements.txt

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
setuptools_scm
2-
setuptools_scm_git_archive
3-
numpy
4-
matplotlib
1+
astropy-base
2+
astroplan
3+
colorcet
4+
conda
5+
cycler
6+
gitpython
57
healpy
8+
h5py
9+
matplotlib-base
10+
numpy
11+
numexpr
612
pandas
713
pyarrow
8-
numexpr
9-
scipy
10-
sqlalchemy
11-
astropy
1214
pytables
13-
h5py
14-
astroplan
15-
colorcet
16-
cycler
17-
george
18-
scikit-learn
15+
rubin-scheduler >=3.0
16+
scipy
17+
setuptools_scm
18+
setuptools_scm_git_archive
1919
shapely
20-
skyfield
20+
skyfield >=1.52
2121
skyproj
22-
tornado
23-
jinja2
22+
sqlalchemy
2423
tqdm
25-
gitpython
26-
conda
27-
rubin-scheduler >=3.0

rubin_sim/maf/maf_contrib/static_probes_fom_summary_metric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import numpy as np
55
import pandas as pd
66
from scipy.optimize import minimize
7-
from sklearn.preprocessing import StandardScaler
87

98
from rubin_sim.maf.metrics.base_metric import BaseMetric
109

@@ -326,6 +325,7 @@ def __init__(
326325
def run(self, data_slice, slice_point=None):
327326
import george
328327
from george import kernels
328+
from sklearn.preprocessing import StandardScaler
329329

330330
# Chop off any outliers
331331
good_pix = np.where(data_slice[self.col] > 0)[0]

0 commit comments

Comments
 (0)