Skip to content

Commit

Permalink
fix pandas sep='\s+' warning
Browse files Browse the repository at this point in the history
  • Loading branch information
temuller committed Oct 31, 2024
1 parent cbc670b commit 1a25d36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hostphot/cutouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ def get_SPLUS_images(ra, dec, size=3, filters=None):
# add zeropoint
# file from https://splus.cloud/documentation/dr2_3
zps_file = hostphot_path.joinpath('filters', 'SPLUS', 'iDR3_zps.cat')
zps_df = pd.read_csv(zps_file, delim_whitespace=True)
zps_df = pd.read_csv(zps_file, sep='\\s+')

field = hdu[0].header['OBJECT'].replace('_', '-')
field_df = zps_df[zps_df['#field']==field]
Expand Down
2 changes: 1 addition & 1 deletion src/hostphot/sed_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

path = Path(hostphot.__path__[0])
config_file = path.joinpath('filters', 'config.txt')
config_df = pd.read_csv(config_file, sep='\s+')
config_df = pd.read_csv(config_file, sep='\\s+')

colours = {'GALEX':'purple', 'PS1':'green', 'SDSS':'blue', 'DES':'lightblue',
'SkyMapper':'slateblue', 'SPLUS':'lime', 'LegacySurvey':'gold',
Expand Down
2 changes: 1 addition & 1 deletion src/hostphot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

hostphot_path = Path(hostphot.__path__[0])
config_file = hostphot_path.joinpath("filters", "config.txt")
config_df = pd.read_csv(config_file, sep='\s+')
config_df = pd.read_csv(config_file, sep='\\s+')

# surveys that need background subtraction
bkg_surveys = ["2MASS", "WISE", "VISTA", "SkyMapper", "UKIDSS"]
Expand Down

0 comments on commit 1a25d36

Please sign in to comment.