Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix small bugs #17

Merged
merged 4 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions bin/fpfs_process_descsim.py
mr-superonion marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
import glob
import os
import time
import fpfs
import glob
import schwimmbad
import numpy as np
import astropy.io.fits as pyfits
from argparse import ArgumentParser
from configparser import ConfigParser

import astropy.io.fits as pyfits
import numpy as np

import fpfs
import schwimmbad

band_map = {
"g": 0,
"r": 1,
Expand Down
4 changes: 2 additions & 2 deletions fpfs/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ def save_catalog(filename, arr, **kwargs):
Save a numpy.ndarray to a fits file.

Parameters:
arr (numpy.ndarray):
Numpy array to save.
filename (str):
Path of the output fits file.
arr (numpy.ndarray):
Numpy array to save.
"""
for key, value in kwargs.items():
if not isinstance(value, str):
Expand Down