From fab0d75f5be8a2a7a1cfae9c81ea780d15830a39 Mon Sep 17 00:00:00 2001 From: perrygreenfield Date: Thu, 21 Nov 2024 09:18:22 -0500 Subject: [PATCH 01/12] commiting nonworking version for Brett to inspect --- .../resources/manifests/datamodels-1.0.yaml | 5 + .../reference_files/roman_skycells-1.0.0.yaml | 164 ++++++++++++++++++ 2 files changed, 169 insertions(+) create mode 100644 src/rad/resources/schemas/reference_files/roman_skycells-1.0.0.yaml diff --git a/src/rad/resources/manifests/datamodels-1.0.yaml b/src/rad/resources/manifests/datamodels-1.0.yaml index 7929747f..bed06a9e 100644 --- a/src/rad/resources/manifests/datamodels-1.0.yaml +++ b/src/rad/resources/manifests/datamodels-1.0.yaml @@ -513,4 +513,9 @@ tags: title: MSOS Stack Level 3 Schema description: |- Level 3 schema for SSC's MSOS stack products +- tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/roman_skycells-1.0.0 + schema_uri: asdf://stsci.edu/datamodels/roman/schemas/reference_files/roman_skycells-1.0.0 + title: Schema for the skycell definitions + description: |- + This file contains definitions for all the skycells that cover the entire celestial sphere ... diff --git a/src/rad/resources/schemas/reference_files/roman_skycells-1.0.0.yaml b/src/rad/resources/schemas/reference_files/roman_skycells-1.0.0.yaml new file mode 100644 index 00000000..baf9b3a4 --- /dev/null +++ b/src/rad/resources/schemas/reference_files/roman_skycells-1.0.0.yaml @@ -0,0 +1,164 @@ +%YAML 1.1 +--- +$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0 +id: asdf://stsci.edu/datamodels/roman/schemas/reference_files/roman_skycells-1.0.0 + +title: Roman Skycells File Schema + +datamodel_name: RomanSkycellsRefModel + +type: object +properties: + meta: + title: + description: | + xxx + type: object + properties: + reftype: + title: Reference File Type + description: | + The capitalized string of the reference file type (e.g., DARK). + type: string + enum: [SKYCELLS] + pedigree: + title: Pedigree + description: | + The pedigree of the reference file (e.g., GROUND). + type: string + enum: [GROUND] + description: + title: Description + description: | + A string describing the reference file, its intended usage, etc. + type: string + author: + title: Author + description: | + The author of who or what created the reference file. + type: string + useafter: + title: Use After Date + description: | + The use after date of the reference file for CRDS best references + matching. + tag: tag:stsci.edu:asdf/time/time-1.* + telescope: + title: Telescope + description: | + The telescope data used to select reference files, e.g. ROMAN for the + Nancy Grace Roman Space Telescope. + anyOf: + - tag: asdf://stsci.edu/datamodels/roman/tags/telescope-1.0.0 + - type: string + enum: [ROMAN] + origin: + title: Organization + description: | + The organization responsible for creating the file, e.g. STSCI for the + Space Telescope Science Institute. + type: string + instrument: + type: object + properties: + name: + title: Instrument + description: | + The Wide Field Instrument (WFI). + type: string + enum: [WFI] + nxy_skycell: + title: Number of pixels in both x and y dimensions + description: | + The shape of the skycell is (nxy_skycell, nxy_skycell) + type: int + skycell_border_pixels: + title: The number of pixels in all directions that overlap with the adjacent skycell. + description: | + Within a projection region, skycells are tiled on the same global pixel grid; + this value indicates how many pixels are overlapped in all directions in this tiling. + type: int + plate_scale: + title: The size of a pixel at the tangent point in arcseconds + description: | + The size of the pixel at the tangent point as projected on the sky in linear pixels for + both directions (e.g., it is assumed equal for both directions). + type: float + projection_regions: + type: !core/ndarray=1.0.0 + title: Information about each projection region + description: | + A structured array that contains relevant information about all the projection regions that + cover the entire celestial sphere. + source: 0 + datatype: + - name: index + datatype: int32 + - name: ra_tangent + datatype: float64 + - name: dec_tangent + datatype: float64 + - name: ra_min + datatype: float64 + - name: ra_max + datatype: float64 + - name: dec_min + datatype: float64 + - name: dec_max + datatype: float64 + - name: x_tangent + datatype: float64 + - name: y_tangent + datatype: float64 + - name: nx + datatype: int32 + - name: ny + datatype: int32 + - name: skycell_start + datatype: int32 + - name: skycell_end + datatype: int32 + - name: nxy_skycell + datatype: int32 + - name: skycell_border_pixels + datatype: int32 + - name: pixel_scale + datatype: float32 + skycells: + type: !core/ndarray=1.0.0 + title: Information about all skycells + description: | + Relevant information about all skycells that have been defined to cover the celesital sphere. + source: 1 + datatype: + - name: name + datatype: [ucs4, 16] + - name: ra_center + datatype: float64 + - name: dec_center + datatype: float64 + - name: orientat + datatype: float32 + - name: x_tangent + datatype: float64 + - name: y_tangent + datatype: float64 + - name: ra_corn1 + datatype: float64 + - name: dec_corn1 + datatype: float64 + - name: ra_corn2 + datatype: float64 + - name: dec_corn2 + datatype: float64 + - name: ra_corn3 + datatype: float64 + - name: dec_corn3 + datatype: float64 + - name: ra_corn4 + datatype: float64 + - name: dec_corn4 + datatype: float64 +required: [meta, projection_regions, skycells] +flowStyle: block +propertyOrder: [meta, projection_regions, skycells] From 0fd94e936962dd631b7bd09fff213773387a4311 Mon Sep 17 00:00:00 2001 From: perrygreenfield Date: Fri, 6 Dec 2024 08:23:18 -0500 Subject: [PATCH 02/12] commit changes to past tests --- .../reference_files/roman_skycells-1.0.0.yaml | 191 +++++++++++------- 1 file changed, 114 insertions(+), 77 deletions(-) diff --git a/src/rad/resources/schemas/reference_files/roman_skycells-1.0.0.yaml b/src/rad/resources/schemas/reference_files/roman_skycells-1.0.0.yaml index baf9b3a4..dd644003 100644 --- a/src/rad/resources/schemas/reference_files/roman_skycells-1.0.0.yaml +++ b/src/rad/resources/schemas/reference_files/roman_skycells-1.0.0.yaml @@ -10,82 +10,83 @@ datamodel_name: RomanSkycellsRefModel type: object properties: meta: - title: + title: Metadata for Roman Skycells definitions reference file description: | - xxx - type: object - properties: - reftype: - title: Reference File Type - description: | - The capitalized string of the reference file type (e.g., DARK). - type: string - enum: [SKYCELLS] - pedigree: - title: Pedigree - description: | - The pedigree of the reference file (e.g., GROUND). - type: string - enum: [GROUND] - description: - title: Description - description: | - A string describing the reference file, its intended usage, etc. - type: string - author: - title: Author - description: | - The author of who or what created the reference file. - type: string - useafter: - title: Use After Date - description: | - The use after date of the reference file for CRDS best references - matching. - tag: tag:stsci.edu:asdf/time/time-1.* - telescope: - title: Telescope - description: | - The telescope data used to select reference files, e.g. ROMAN for the - Nancy Grace Roman Space Telescope. - anyOf: - - tag: asdf://stsci.edu/datamodels/roman/tags/telescope-1.0.0 - - type: string - enum: [ROMAN] - origin: - title: Organization - description: | - The organization responsible for creating the file, e.g. STSCI for the - Space Telescope Science Institute. - type: string - instrument: - type: object - properties: - name: - title: Instrument - description: | - The Wide Field Instrument (WFI). - type: string - enum: [WFI] - nxy_skycell: - title: Number of pixels in both x and y dimensions - description: | - The shape of the skycell is (nxy_skycell, nxy_skycell) - type: int - skycell_border_pixels: - title: The number of pixels in all directions that overlap with the adjacent skycell. - description: | - Within a projection region, skycells are tiled on the same global pixel grid; - this value indicates how many pixels are overlapped in all directions in this tiling. - type: int - plate_scale: - title: The size of a pixel at the tangent point in arcseconds - description: | - The size of the pixel at the tangent point as projected on the sky in linear pixels for - both directions (e.g., it is assumed equal for both directions). - type: float + The necessary metadata for the Roman Skycells reference file + allOf: + - type: object + properties: + reftype: + title: Reference File Type + description: | + The capitalized string of the reference file type (e.g., DARK). + type: string + enum: [SKYCELLS] + pedigree: + title: Pedigree + description: | + The pedigree of the reference file (e.g., GROUND). + type: string + enum: [GROUND] + description: + title: Description + description: | + A string describing the reference file, its intended usage, etc. + type: string + author: + title: Author + description: | + The author of who or what created the reference file. + type: string + useafter: + title: Use After Date + description: | + The use after date of the reference file for CRDS best references + matching. + tag: tag:stsci.edu:asdf/time/time-1.* + telescope: + title: Telescope + description: | + The telescope data used to select reference files, e.g. ROMAN for the + Nancy Grace Roman Space Telescope. + anyOf: + - tag: asdf://stsci.edu/datamodels/roman/tags/telescope-1.0.0 + - type: string + enum: [ROMAN] + origin: + title: Organization + description: | + The organization responsible for creating the file, e.g. STSCI for the + Space Telescope Science Institute. + type: string + instrument: + type: object + properties: + name: + title: Instrument + description: | + The Wide Field Instrument (WFI). + type: string + enum: [WFI] + nxy_skycell: + title: Number of pixels in both x and y dimensions + description: | + The shape of the skycell is (nxy_skycell, nxy_skycell) + type: integer + skycell_border_pixels: + title: The number of pixels in all directions that overlap with the adjacent skycell. + description: | + Within a projection region, skycells are tiled on the same global pixel grid; + this value indicates how many pixels are overlapped in all directions in this tiling. + type: integer + plate_scale: + title: The size of a pixel at the tangent point in arcseconds + description: | + The size of the pixel at the tangent point as projected on the sky in linear pixels for + both directions (e.g., it is assumed equal for both directions). + type: number projection_regions: - type: !core/ndarray=1.0.0 + tag: tag:stsci.edu:asdf/core/ndarray-1.* title: Information about each projection region description: | A structured array that contains relevant information about all the projection regions that @@ -94,38 +95,58 @@ properties: datatype: - name: index datatype: int32 + byteorder: little - name: ra_tangent datatype: float64 + byteorder: little - name: dec_tangent datatype: float64 + byteorder: little - name: ra_min datatype: float64 + byteorder: little - name: ra_max datatype: float64 + byteorder: little - name: dec_min datatype: float64 + byteorder: little - name: dec_max datatype: float64 + byteorder: little + - name: orientat + datatype: float32 + byteorder: little - name: x_tangent datatype: float64 + byteorder: little - name: y_tangent datatype: float64 + byteorder: little - name: nx datatype: int32 + byteorder: little - name: ny datatype: int32 + byteorder: little - name: skycell_start datatype: int32 + byteorder: little - name: skycell_end datatype: int32 + byteorder: little - name: nxy_skycell datatype: int32 + byteorder: little - name: skycell_border_pixels datatype: int32 + byteorder: little - name: pixel_scale datatype: float32 + byteorder: little + exact_datatype: true skycells: - type: !core/ndarray=1.0.0 + tag: tag:stsci.edu:asdf/core/ndarray-1.* title: Information about all skycells description: | Relevant information about all skycells that have been defined to cover the celesital sphere. @@ -133,32 +154,48 @@ properties: datatype: - name: name datatype: [ucs4, 16] + byteorder: little - name: ra_center datatype: float64 + byteorder: little - name: dec_center - datatype: float64 + datatype: float64 + byteorder: little - name: orientat datatype: float32 + byteorder: little - name: x_tangent datatype: float64 + byteorder: little - name: y_tangent datatype: float64 + byteorder: little - name: ra_corn1 - datatype: float64 + datatype: float64 + byteorder: little - name: dec_corn1 datatype: float64 + byteorder: little - name: ra_corn2 datatype: float64 + byteorder: little - name: dec_corn2 datatype: float64 + byteorder: little - name: ra_corn3 datatype: float64 + byteorder: little - name: dec_corn3 datatype: float64 + byteorder: little - name: ra_corn4 datatype: float64 + byteorder: little - name: dec_corn4 datatype: float64 + byteorder: little + exact_datatype: true required: [meta, projection_regions, skycells] flowStyle: block propertyOrder: [meta, projection_regions, skycells] +... From 3a4f1548c9277cc45df05e6142eabb645bf461f7 Mon Sep 17 00:00:00 2001 From: perrygreenfield Date: Fri, 13 Dec 2024 16:59:24 -0500 Subject: [PATCH 03/12] add towncrier file --- changes/524.skycell.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/524.skycell.rst diff --git a/changes/524.skycell.rst b/changes/524.skycell.rst new file mode 100644 index 00000000..4e4c22a0 --- /dev/null +++ b/changes/524.skycell.rst @@ -0,0 +1 @@ +Added schema for skycell reference file. \ No newline at end of file From 6837b5ba83940adfcbcf4b33e2742451780d85db Mon Sep 17 00:00:00 2001 From: perrygreenfield Date: Fri, 13 Dec 2024 17:16:41 -0500 Subject: [PATCH 04/12] renamed towncrier file to permitted name --- changes/{524.skycell.rst => 524.feature.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename changes/{524.skycell.rst => 524.feature.rst} (100%) diff --git a/changes/524.skycell.rst b/changes/524.feature.rst similarity index 100% rename from changes/524.skycell.rst rename to changes/524.feature.rst From 6b6020d28da8423173d2f5a976ab81a8db7b3c2b Mon Sep 17 00:00:00 2001 From: perrygreenfield Date: Tue, 28 Jan 2025 16:10:07 -0500 Subject: [PATCH 05/12] address review comments --- src/rad/resources/manifests/datamodels-1.0.yaml | 4 ++-- ...man_skycells-1.0.0.yaml => skycells-1.0.0.yaml} | 14 ++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) rename src/rad/resources/schemas/reference_files/{roman_skycells-1.0.0.yaml => skycells-1.0.0.yaml} (94%) diff --git a/src/rad/resources/manifests/datamodels-1.0.yaml b/src/rad/resources/manifests/datamodels-1.0.yaml index bed06a9e..fab042e1 100644 --- a/src/rad/resources/manifests/datamodels-1.0.yaml +++ b/src/rad/resources/manifests/datamodels-1.0.yaml @@ -513,8 +513,8 @@ tags: title: MSOS Stack Level 3 Schema description: |- Level 3 schema for SSC's MSOS stack products -- tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/roman_skycells-1.0.0 - schema_uri: asdf://stsci.edu/datamodels/roman/schemas/reference_files/roman_skycells-1.0.0 +- tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/skycells-1.0.0 + schema_uri: asdf://stsci.edu/datamodels/roman/schemas/reference_files/skycells-1.0.0 title: Schema for the skycell definitions description: |- This file contains definitions for all the skycells that cover the entire celestial sphere diff --git a/src/rad/resources/schemas/reference_files/roman_skycells-1.0.0.yaml b/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml similarity index 94% rename from src/rad/resources/schemas/reference_files/roman_skycells-1.0.0.yaml rename to src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml index dd644003..767471fe 100644 --- a/src/rad/resources/schemas/reference_files/roman_skycells-1.0.0.yaml +++ b/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml @@ -1,18 +1,18 @@ %YAML 1.1 --- $schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0 -id: asdf://stsci.edu/datamodels/roman/schemas/reference_files/roman_skycells-1.0.0 +id: asdf://stsci.edu/datamodels/roman/schemas/reference_files/skycells-1.0.0 -title: Roman Skycells File Schema +title: Skycells File Schema -datamodel_name: RomanSkycellsRefModel +datamodel_name: SkycellsRefModel type: object properties: meta: - title: Metadata for Roman Skycells definitions reference file + title: Metadata for Skycells definitions reference file description: | - The necessary metadata for the Roman Skycells reference file + The necessary metadata for the Skycells reference file allOf: - type: object properties: @@ -91,7 +91,6 @@ properties: description: | A structured array that contains relevant information about all the projection regions that cover the entire celestial sphere. - source: 0 datatype: - name: index datatype: int32 @@ -149,8 +148,7 @@ properties: tag: tag:stsci.edu:asdf/core/ndarray-1.* title: Information about all skycells description: | - Relevant information about all skycells that have been defined to cover the celesital sphere. - source: 1 + Relevant information about all skycells that have been defined to cover the celestial sphere. datatype: - name: name datatype: [ucs4, 16] From f044202493071a96280eb6bcd2aba94f9c5ea6a7 Mon Sep 17 00:00:00 2001 From: perrygreenfield Date: Thu, 30 Jan 2025 15:29:05 -0500 Subject: [PATCH 06/12] fix test failing on the fact that skycell schema doesn't use ref_common --- tests/test_schemas.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_schemas.py b/tests/test_schemas.py index 82a41796..fd2909c0 100644 --- a/tests/test_schemas.py +++ b/tests/test_schemas.py @@ -306,6 +306,9 @@ def test_ref_file_meta_common(ref_file_schema): """ all_of = ref_file_schema["properties"]["meta"]["allOf"] + if ref_file_schema["id"].find('skycells') >= 0: + return + for item in all_of: if item == EXPECTED_COMMON_REFERENCE: break From e31f7927d889beeddf2edd67733aeda532a0150f Mon Sep 17 00:00:00 2001 From: perrygreenfield Date: Fri, 31 Jan 2025 10:37:20 -0500 Subject: [PATCH 07/12] updated changes --- changes/{524.feature.rst => 536.feature.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename changes/{524.feature.rst => 536.feature.rst} (100%) diff --git a/changes/524.feature.rst b/changes/536.feature.rst similarity index 100% rename from changes/524.feature.rst rename to changes/536.feature.rst From ebeb15ed1830bf69bc61b53ea11603ba6dac53cf Mon Sep 17 00:00:00 2001 From: perrygreenfield Date: Thu, 6 Feb 2025 10:13:01 -0500 Subject: [PATCH 08/12] Address reviewer comments --- src/rad/resources/manifests/datamodels-1.0.yaml | 10 +++++----- .../schemas/reference_files/skycells-1.0.0.yaml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/rad/resources/manifests/datamodels-1.0.yaml b/src/rad/resources/manifests/datamodels-1.0.yaml index fab042e1..b5af43d3 100644 --- a/src/rad/resources/manifests/datamodels-1.0.yaml +++ b/src/rad/resources/manifests/datamodels-1.0.yaml @@ -246,6 +246,11 @@ tags: title: WFI imaging photometric flux conversion data model description: |- WFI imaging photometric flux conversion data model +- tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/skycells-1.0.0 + schema_uri: asdf://stsci.edu/datamodels/roman/schemas/reference_files/skycells-1.0.0 + title: Skycells Reference File Schema + description: |- + This file contains definitions for all the skycells that cover the entire celestial sphere # Misc - tag_uri: asdf://stsci.edu/datamodels/roman/tags/associations-1.0.0 schema_uri: asdf://stsci.edu/datamodels/roman/schemas/associations-1.0.0 @@ -513,9 +518,4 @@ tags: title: MSOS Stack Level 3 Schema description: |- Level 3 schema for SSC's MSOS stack products -- tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/skycells-1.0.0 - schema_uri: asdf://stsci.edu/datamodels/roman/schemas/reference_files/skycells-1.0.0 - title: Schema for the skycell definitions - description: |- - This file contains definitions for all the skycells that cover the entire celestial sphere ... diff --git a/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml b/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml index 767471fe..8855baf7 100644 --- a/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml +++ b/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml @@ -3,7 +3,7 @@ $schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0 id: asdf://stsci.edu/datamodels/roman/schemas/reference_files/skycells-1.0.0 -title: Skycells File Schema +title: Skycells Reference File Schema datamodel_name: SkycellsRefModel From 5987ef28f672be9b4980a62c1e57883117beed7d Mon Sep 17 00:00:00 2001 From: perrygreenfield Date: Fri, 7 Feb 2025 12:39:46 -0500 Subject: [PATCH 09/12] modify schema to remove 3 fields from table --- .../schemas/reference_files/skycells-1.0.0.yaml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml b/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml index 8855baf7..42a22617 100644 --- a/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml +++ b/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml @@ -133,16 +133,7 @@ properties: byteorder: little - name: skycell_end datatype: int32 - byteorder: little - - name: nxy_skycell - datatype: int32 - byteorder: little - - name: skycell_border_pixels - datatype: int32 - byteorder: little - - name: pixel_scale - datatype: float32 - byteorder: little + byteorder: littleß exact_datatype: true skycells: tag: tag:stsci.edu:asdf/core/ndarray-1.* From 28ad576a4e166e753eacff6a0e808b937b97a93f Mon Sep 17 00:00:00 2001 From: perrygreenfield Date: Fri, 7 Feb 2025 12:56:38 -0500 Subject: [PATCH 10/12] change plate_scale to pixel_scale --- src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml b/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml index 42a22617..ed613b84 100644 --- a/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml +++ b/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml @@ -79,7 +79,7 @@ properties: Within a projection region, skycells are tiled on the same global pixel grid; this value indicates how many pixels are overlapped in all directions in this tiling. type: integer - plate_scale: + pixel_scale: title: The size of a pixel at the tangent point in arcseconds description: | The size of the pixel at the tangent point as projected on the sky in linear pixels for From 7b22d4249924d76c1aeed37b4f787b2676a5aaec Mon Sep 17 00:00:00 2001 From: perrygreenfield Date: Fri, 7 Feb 2025 16:47:11 -0500 Subject: [PATCH 11/12] removed spurious character --- src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml b/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml index ed613b84..261a2fe4 100644 --- a/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml +++ b/src/rad/resources/schemas/reference_files/skycells-1.0.0.yaml @@ -133,7 +133,7 @@ properties: byteorder: little - name: skycell_end datatype: int32 - byteorder: littleß + byteorder: little exact_datatype: true skycells: tag: tag:stsci.edu:asdf/core/ndarray-1.* From e5b343f534badd03fc49abd6a8763925622cae35 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 7 Feb 2025 21:47:22 +0000 Subject: [PATCH 12/12] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- changes/536.feature.rst | 2 +- tests/test_schemas.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changes/536.feature.rst b/changes/536.feature.rst index 4e4c22a0..40fbdad8 100644 --- a/changes/536.feature.rst +++ b/changes/536.feature.rst @@ -1 +1 @@ -Added schema for skycell reference file. \ No newline at end of file +Added schema for skycell reference file. diff --git a/tests/test_schemas.py b/tests/test_schemas.py index fd2909c0..d67bed27 100644 --- a/tests/test_schemas.py +++ b/tests/test_schemas.py @@ -306,7 +306,7 @@ def test_ref_file_meta_common(ref_file_schema): """ all_of = ref_file_schema["properties"]["meta"]["allOf"] - if ref_file_schema["id"].find('skycells') >= 0: + if ref_file_schema["id"].find("skycells") >= 0: return for item in all_of: