Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions changes/838.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the SSC MSOS Level 4 detection efficiency catalog schema.
55 changes: 55 additions & 0 deletions latest/SSC/MSOS/keywords/msos_detection_efficiency.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
%YAML 1.1
---
$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-2.0.0
id: asdf://stsci.edu/datamodels/roman/schemas/SSC/MSOS/keywords/msos_detection_efficiency-1.0.0

title: MSOS detection efficiency keywords
extName: SSC
type: object
properties:
inject_medium:
title: Injection Medium
description: Detection efficiency injection medium represented by the rows in this file.
type: string
maxLength: 16
enum:
- images
- lightcurve
- rhie
archive_catalog:
datatype: nvarchar(16)
destination: [WFIMSOSCatalog.inject_medium]
tp_count:
title: True Positive Count
description: Number of rows in this file with BinaryClass equal to TP.
type: integer
minimum: 0
archive_catalog:
datatype: int
destination: [WFIMSOSCatalog.tp_count]
fp_count:
title: False Positive Count
description: Number of rows in this file with BinaryClass equal to FP.
type: integer
minimum: 0
archive_catalog:
datatype: int
destination: [WFIMSOSCatalog.fp_count]
tn_count:
title: True Negative Count
description: Number of rows in this file with BinaryClass equal to TN.
type: integer
minimum: 0
archive_catalog:
datatype: int
destination: [WFIMSOSCatalog.tn_count]
fn_count:
title: False Negative Count
description: Number of rows in this file with BinaryClass equal to FN.
type: integer
minimum: 0
archive_catalog:
datatype: int
destination: [WFIMSOSCatalog.fn_count]

required: [inject_medium, tp_count, fp_count, tn_count, fn_count]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slight difference in naming of this file vs what we called it in the interface
wfi_microlensing_detection_efficiency_catalog_level_4 (this file)
wfi_microlensing_detection_efficiency_product_level_4 (interface)

Nothing will break, so not a huge deal. If "catalog" is truly better than "product" we can migrate the interface naming in the future, but not high priority.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
%YAML 1.1
---
$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-2.0.0
id: asdf://stsci.edu/datamodels/roman/schemas/SSC/MSOS/wfi_microlensing_detection_efficiency_catalog_level_4-1.0.0

title: GBTDS Level 4 Microlensing Detection Efficiency Catalog
archive_meta: Science WFI Level 4 MSOS Detection Efficiency Catalog
type: object
allOf:
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/MSOS/keywords/msos_basic-1.0.0
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/MSOS/keywords/msos_common-1.0.0
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/MSOS/keywords/msos_detection_efficiency-1.0.0
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ asdf_schema_xfail_tests = [
"latest/SSC/GDPS/wfi_spec_dqa_2d_level_4.yaml",
"latest/SSC/GDPS/wfi_spec_catalog_dqa_level_4.yaml",
"latest/SSC/MSOS/wfi_microlensing_event_catalog_level_4.yaml",
"latest/SSC/MSOS/wfi_microlensing_detection_efficiency_catalog_level_4.yaml",
"latest/SSC/MSOS/wfi_microlensing_light_curve_catalog_level_4.yaml",
"latest/SSC/MSOS/wfi_microlensing_object_periodic_catalog_level_4.yaml",
"latest/SSC/MSOS/wfi_microlensing_object_fiducial_catalog_level_4.yaml",
Expand Down
Loading