Skip to content

Commit 6c804d1

Browse files
linting
1 parent 5f43b34 commit 6c804d1

File tree

6 files changed

+5
-26
lines changed

6 files changed

+5
-26
lines changed

bliss/surveys/dc2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _load_image_and_bg_files_list(self):
123123

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

129129
return n_image

case_studies/redshift/evaluation/evaluate_cts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=R0801
12
import pickle
23
from pathlib import Path
34

case_studies/redshift/evaluation/evaluate_discrete.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=R0801
12
import pickle
23
from pathlib import Path
34

case_studies/redshift/evaluation/utils/encoder.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

case_studies/redshift/evaluation/utils/load_lsst.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=R0801
12
import GCRCatalogs
23
import pandas as pd
34
import torch

case_studies/redshift/evaluation/utils/lsst_predictor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pylint: disable=R0801
12
import torch
23

34
from bliss.catalog import FullCatalog, SourceType, TileCatalog

0 commit comments

Comments
 (0)