Skip to content

Commit

Permalink
Fix wrong UUID length for initial source creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauch committed Feb 6, 2025
1 parent d22384e commit 9deef39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion vast_pipeline/pipeline/forced_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ def parallel_extraction(
out = out.drop(["max_snr", "image_rms_min", "detection"], axis=1).rename(
columns={"image": "image_name"}
)
out.to_parquet('/scratch2/v2.0/forced_out_L375.parquet')
# get the unique images to extract from
unique_images_to_extract = out["image_name"].unique().tolist()

Expand Down
4 changes: 2 additions & 2 deletions vast_pipeline/pipeline/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from vast_pipeline.utils.utils import (
eq_to_cart, StopWatch, optimise_numeric,
calculate_workers_and_partitions, copy_file_or_dir,
delete_file_or_dir, generate_shortuuid, UUID_LEN_MEAS
delete_file_or_dir, generate_shortuuid, UUID_LEN_SOURCE
)
from vast_pipeline.models import (
Band, Image, Run, SkyRegion
Expand Down Expand Up @@ -340,7 +340,7 @@ def _load_measurements(
df["image"] = image.name
df["datetime"] = image.datetime
# these are the first 'sources' if ini_df is True.
df["source"] = df["id"].apply(lambda _: generate_shortuuid(UUID_LEN_MEAS)) if ini_df else None
df["source"] = df["id"].apply(lambda _: generate_shortuuid(UUID_LEN_SOURCE)) if ini_df else None
df["ra_source"] = df["ra"]
df["dec_source"] = df["dec"]
df["d2d"] = 0.0
Expand Down

0 comments on commit 9deef39

Please sign in to comment.