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

Update code snippet in sdss.rst #475

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all 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
5 changes: 2 additions & 3 deletions docs/catalogs/public/sdss.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Example conversion

import glob
import re
import pandas as pd
from tqdm.auto import tqdm
from astropy.table import Table
from astropy.table.table import descr
Expand All @@ -38,7 +37,7 @@ Example conversion

for in_file in tqdm(files, bar_format='{l_bar}{bar:80}{r_bar}'):

match = re.match(r".*(calibObj-.*-star).fits.gz", str(file))
match = re.match(r".*(calibObj-.*-star).fits.gz", str(in_file))
file_prefix = match.group(1)
out_file = f"/data/sdss/parquet/{file_prefix}.parquet"

Expand Down Expand Up @@ -78,4 +77,4 @@ Example import
highest_healpix_order=7,
output_path="/path/to/catalogs/",
)
runner.pipeline(args)
runner.pipeline(args)
Loading