alexandergagliano commited on
Commit
271a1e6
·
1 Parent(s): 41178fe

Update readme

Browse files
Files changed (1) hide show
  1. README.md +39 -1
README.md CHANGED
@@ -1 +1,39 @@
1
- # Prof. Villar or Alex TODO?
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # reLAISS
2
+
3
+ _A flexible library for similarity searches of supernovae and their host galaxies._
4
+
5
+ reLAISS lets you retrieve nearest‑neighbour supernovae (or spot outliers) by combining ZTF $g/r$ light‑curve morphology with Pan‑STARRS host‑galaxy colours. A pre‑built reference index lets you find similar events to a queried object in seconds, and the modularity of the code allows you to customize it for your own science case.
6
+
7
+ # Install
8
+
9
+ Installation of the package is easy:
10
+
11
+ `pip install relaiss`
12
+
13
+
14
+ # Code Demo
15
+ ```
16
+ import relaiss as rl
17
+
18
+ # Load the shipped reference index (~20 000 objects)
19
+ index = rl.load_reference()
20
+
21
+ # Find the 5 closest matches to a ZTF transient
22
+ neigh = rl.find_neighbors(
23
+ "ZTF23abcxyz", # ZTFID
24
+ k=5, # number of neighbours
25
+ use_lightcurve=True,
26
+ use_host=True,
27
+ host_weight=0.3, # balance LC vs host similarity
28
+ return_dataframe=True,
29
+ )
30
+ print(neigh[["ztfid", "distance"]])
31
+ ```
32
+
33
+ # Citation
34
+
35
+ If reLAISS helps your research, please cite:
36
+
37
+ ```
38
+ Research note bibtex to be added here!
39
+ ```