File tree Expand file tree Collapse file tree 5 files changed +45
-41
lines changed
rubin_sim/maf/maf_contrib Expand file tree Collapse file tree 5 files changed +45
-41
lines changed Original file line number Diff line number Diff line change 36
36
shell : bash -l {0}
37
37
run : |
38
38
conda install --yes --file=requirements.txt
39
+ conda install --yes --file=optional-requirements.txt
39
40
conda install --yes --file=test-requirements.txt
40
41
41
42
- name : install rubin_sim
Original file line number Diff line number Diff line change 1
1
openorb
2
2
openorb-data-de405
3
+ george
4
+ scikit-learn
5
+ jinja2
6
+ tornado
Original file line number Diff line number Diff line change @@ -19,28 +19,26 @@ classifiers = [
19
19
urls = {documentation = " https://rubin-sim.lsst.io" , repository = " https://github.com/lsst/rubin_sim" }
20
20
dynamic = [ " version" ]
21
21
dependencies = [
22
- " numpy" ,
23
- " matplotlib" ,
24
- " healpy" ,
25
- " pandas" ,
26
- " numexpr" ,
27
- " scipy" ,
28
- " sqlalchemy" ,
29
- " astropy" ,
30
- " tables" ,
31
- " h5py" ,
32
22
" astroplan" ,
23
+ " astropy" ,
33
24
" colorcet" ,
34
25
" 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" ,
37
36
" shapely" ,
38
- " skyfield" ,
37
+ " skyfield>=1.52 " ,
39
38
" skyproj" ,
40
- " tqdm" ,
41
- " rubin-scheduler>=3.0" ,
42
- " pyarrow" ,
43
- " gitpython" ,
39
+ " sqlalchemy" ,
40
+ " tables" ,
41
+ " tqdm"
44
42
]
45
43
46
44
[project .optional-dependencies ]
@@ -54,6 +52,11 @@ test = [
54
52
dev = [
55
53
" documenteer[guide]" ,
56
54
]
55
+ extras = [
56
+ " george" ,
57
+ " scikit-learn" ,
58
+ " pyoorb" ,
59
+ ]
57
60
58
61
[project .scripts ]
59
62
rs_download_data = " rubin_sim.data.rs_download_data:rs_download_data"
@@ -85,7 +88,7 @@ version = { attr = "setuptools_scm.get_version" }
85
88
where = [ " " ]
86
89
87
90
[tool .setuptools_scm ]
88
- version_file = " rubin_sim/_version .py"
91
+ version_file = " rubin_sim/version .py"
89
92
90
93
91
94
[tool .pytest .ini_options ]
@@ -98,7 +101,7 @@ exclude = "version.py"
98
101
99
102
[tool .black ]
100
103
line-length = 110
101
- target-version = [" py311 " ]
104
+ target-version = [" py312 " ]
102
105
103
106
[tool .isort ]
104
107
profile = " black"
@@ -109,7 +112,7 @@ exclude = [
109
112
" __init__.py" ,
110
113
]
111
114
line-length = 110
112
- target-version = " py311 "
115
+ target-version = " py312 "
113
116
114
117
[tool .ruff .lint ]
115
118
ignore = [
Original file line number Diff line number Diff line change 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
5
7
healpy
8
+ h5py
9
+ matplotlib-base
10
+ numpy
11
+ numexpr
6
12
pandas
7
13
pyarrow
8
- numexpr
9
- scipy
10
- sqlalchemy
11
- astropy
12
14
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
19
19
shapely
20
- skyfield
20
+ skyfield >= 1.52
21
21
skyproj
22
- tornado
23
- jinja2
22
+ sqlalchemy
24
23
tqdm
25
- gitpython
26
- conda
27
- rubin-scheduler >= 3.0
Original file line number Diff line number Diff line change 4
4
import numpy as np
5
5
import pandas as pd
6
6
from scipy .optimize import minimize
7
- from sklearn .preprocessing import StandardScaler
8
7
9
8
from rubin_sim .maf .metrics .base_metric import BaseMetric
10
9
@@ -326,6 +325,7 @@ def __init__(
326
325
def run (self , data_slice , slice_point = None ):
327
326
import george
328
327
from george import kernels
328
+ from sklearn .preprocessing import StandardScaler
329
329
330
330
# Chop off any outliers
331
331
good_pix = np .where (data_slice [self .col ] > 0 )[0 ]
You can’t perform that action at this time.
0 commit comments