Skip to content

Commit

Permalink
Remove the allclasses option (#702)
Browse files Browse the repository at this point in the history
* Remove the allclasses option

* Ruff
  • Loading branch information
JulienPeloton authored Jan 16, 2025
1 parent 9c296e2 commit f0ee804
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def store_release_photometry(n_clicks, object_data):

try:
pdf_release = pd.read_csv(
f"https://irsa.ipac.caltech.edu/cgi-bin/ZTF/nph_light_curves?POS=CIRCLE%20{mean_ra}%20{mean_dec}%20{2.0/3600}&BAD_CATFLAGS_MASK=32768&FORMAT=CSV",
f"https://irsa.ipac.caltech.edu/cgi-bin/ZTF/nph_light_curves?POS=CIRCLE%20{mean_ra}%20{mean_dec}%20{2.0 / 3600}&BAD_CATFLAGS_MASK=32768&FORMAT=CSV",
)

if not pdf_release.empty:
Expand Down
5 changes: 1 addition & 4 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
tns_types = sorted(tns_types, key=lambda s: s.lower())

fink_classes = [
"All classes",
"Anomaly",
"Unknown",
# Fink derived classes
Expand Down Expand Up @@ -172,7 +171,7 @@
You may also specify the time interval to refine the search, using the self-explanatory keywords `before` and `after`. The limits may be specified with either time string, JD or MJD values. You may either set both limiting values, or just one of them. The results will be sorted in descending order by time, and limited to specified number of entries.
Examples:
- `last=100` or `class=allclasses` - return 100 latest objects of any class
- `last=100` - return 100 latest objects of any class
- `class=Unknown` - return 100 latest objects with class `Unknown`
- `last=10 class="Early SN Ia candidate"` - return 10 latest arly SN Ia candidates
- `class="Early SN Ia candidate" before="2023-12-01" after="2023-11-15 04:00:00"` - objects of the same class between 4am on Nov 15, 2023 and Dec 1, 2023
Expand Down Expand Up @@ -1231,8 +1230,6 @@ def results(n_submit, n_clicks, s_n_clicks, searchurl, value, history, show_tabl
elif query["action"] == "class":
# Class-based search
alert_class = query["params"].get("class")
if not alert_class or alert_class == "All classes":
alert_class = "allclasses"

n_last = int(query["params"].get("last", 100))

Expand Down

0 comments on commit f0ee804

Please sign in to comment.