Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
declanmcnamara committed Feb 3, 2025
1 parent 5f43b34 commit 6c804d1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 26 deletions.
2 changes: 1 addition & 1 deletion bliss/surveys/dc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _load_image_and_bg_files_list(self):

# record which tracts and patches
tracts = [str(file_name).split("/")[-3] for file_name in self._image_files[0]]
patches = [str(file_name).split("-")[-1][:3] for file_name in self._image_files[0]]
patches = [str(file_name).rsplit('-', maxsplit=1)[-1][:3] for file_name in self._image_files[0]] # TODO: check
self._tract_patches = [x[0] + "_" + x[1] for x in zip(tracts, patches)] # TODO: hack

return n_image
Expand Down
1 change: 1 addition & 0 deletions case_studies/redshift/evaluation/evaluate_cts.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=R0801
import pickle
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions case_studies/redshift/evaluation/evaluate_discrete.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=R0801
import pickle
from pathlib import Path

Expand Down
25 changes: 0 additions & 25 deletions case_studies/redshift/evaluation/utils/encoder.py

This file was deleted.

1 change: 1 addition & 0 deletions case_studies/redshift/evaluation/utils/load_lsst.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=R0801
import GCRCatalogs
import pandas as pd
import torch
Expand Down
1 change: 1 addition & 0 deletions case_studies/redshift/evaluation/utils/lsst_predictor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=R0801
import torch

from bliss.catalog import FullCatalog, SourceType, TileCatalog
Expand Down

0 comments on commit 6c804d1

Please sign in to comment.