Skip to content

Commit 13a32d1

Browse files
committed
linted code
1 parent 5ae238d commit 13a32d1

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

py/picca/delta_extraction/data_catalogues/desi_data.py

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -636,24 +636,29 @@ def read_file(self, filename, catalogue):
636636

637637
def get_metadata_dict(self,fibermap,exp_fibermap,index_unique) :
638638
"""
639-
Constructs a dictionary containing metadata extracted from the provided fibermap and exp_fibermap.
639+
Constructs a dictionary containing metadata extracted from the provided fibermap
640+
and exp_fibermap.
640641
641642
Parameters:
642643
- fibermap (numpy.ndarray): The primary fibermap data structure containing metadata.
643-
- exp_fibermap (numpy.ndarray or None): The exposure-specific fibermap data structure containing metadata.
644-
If None, the function uses the `fibermap` and `index_unique` to extract metadata.
645-
- index_unique (numpy.ndarray): An array of indices used to select unique entries from the `fibermap`.
644+
- exp_fibermap (numpy.ndarray or None): The exposure-specific fibermap data structure
645+
containing metadata. If None, the function uses the `fibermap` and `index_unique`
646+
to extract metadata.
647+
- index_unique (numpy.ndarray): An array of indices used to select unique entries from
648+
the `fibermap`.
646649
647650
Returns:
648-
- metadata_dict (dict): A dictionary where keys are metadata field names and values are numpy arrays
649-
containing the corresponding metadata values. The keys are prefixed with 'EXP_' if `use_non_coadded_spectra`
650-
is False and `exp_fibermap` is not None.
651+
- metadata_dict (dict): A dictionary where keys are metadata field names and values
652+
are numpy arrays containing the corresponding metadata values. The keys are prefixed
653+
with 'EXP_' if `use_non_coadded_spectra` is False and `exp_fibermap` is not None.
651654
652655
Notes:
653-
- The function checks if certain keys (`TARGETID`, `NIGHT`, `EXPID`, `PETAL_LOC`, `FIBER`, `TILEID`) exist in the
654-
`input_fibermap`. If a key exists, it extracts the corresponding data; otherwise, it fills the entry with zeros.
655-
- The `use_non_coadded_spectra` attribute of the class instance determines whether to use the `exp_fibermap` or
656-
the `fibermap` combined with `index_unique` for extracting metadata.
656+
- The function checks if certain keys (`TARGETID`, `NIGHT`, `EXPID`, `PETAL_LOC`,
657+
`FIBER`, `TILEID`) exist in the `input_fibermap`. If a key exists, it extracts the
658+
corresponding data; otherwise, it fills the entry with zeros.
659+
- The `use_non_coadded_spectra` attribute of the class instance determines whether to
660+
use the `exp_fibermap` or the `fibermap` combined with `index_unique` for extracting
661+
metadata.
657662
"""
658663
input_fibermap = fibermap
659664
ikeys=["TARGETID","NIGHT","EXPID","PETAL_LOC","FIBER","TILEID"]

0 commit comments

Comments
 (0)