Skip to content

Commit fa15449

Browse files
authored
Merge pull request #22 from linkml/copilot/sub-pr-20-again
Fix BiosaftyLevelEnum misspelling and remove unused imports from generated enums
2 parents 3fcb4aa + 9d3310e commit fa15449

117 files changed

Lines changed: 2010 additions & 130 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cache/chebi/terms.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,4 @@ CHEBI:37739,glycerophospholipid,2025-10-19T08:26:29.438101
223223
CHEBI:26739,sphingolipid,2025-10-19T08:26:29.438967
224224
CHEBI:35341,steroid,2025-10-19T08:26:29.439762
225225
CHEBI:24913,isoprenoid,2025-10-19T08:26:29.440626
226+
CHEBI:46662,,2025-11-05T18:04:52.255672

cache/envo/terms.csv

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,19 @@ ENVO:00001997,acid mine drainage,2025-10-19T07:20:48.916991
2626
ENVO:01001069,metallic material,2025-10-19T07:20:50.020025
2727
ENVO:03501307,ceramic,2025-10-19T07:20:50.020807
2828
ENVO:06105005,thermoset polymer,2025-10-19T07:20:50.024438
29+
ENVO:01001125,,2025-11-05T18:04:52.255368
30+
ENVO:00001995,,2025-11-05T18:04:52.255914
31+
ENVO:00002007,,2025-11-05T18:04:52.256060
32+
ENVO:00001998,,2025-11-05T18:04:52.256187
33+
ENVO:00000169,,2025-11-05T18:04:52.263356
34+
ENVO:00000067,,2025-11-05T18:04:52.263506
35+
ENVO:00000101,,2025-11-05T18:04:52.263660
36+
ENVO:00000045,,2025-11-05T18:04:52.263792
37+
ENVO:00000215,,2025-11-05T18:04:52.263919
38+
ENVO:00000020,,2025-11-05T18:04:52.264047
39+
ENVO:00000081,,2025-11-05T18:04:52.264181
40+
ENVO:00000080,,2025-11-05T18:04:52.264311
41+
ENVO:01001899,,2025-11-05T18:04:52.264442
42+
ENVO:00000264,,2025-11-05T18:04:52.264570
43+
ENVO:00000267,,2025-11-05T18:04:52.264722
44+
ENVO:00000247,,2025-11-05T18:04:52.264851

docs/schema/valuesets.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3720,9 +3720,9 @@ enums:
37203720
CANCELLED:
37213721
text: CANCELLED
37223722
description: Processing cancelled by user
3723-
BiosaftyLevelEnum:
3724-
name: BiosaftyLevelEnum
3725-
definition_uri: https://w3id.org/valuesets/BiosaftyLevelEnum
3723+
BiosafetyLevelEnum:
3724+
name: BiosafetyLevelEnum
3725+
definition_uri: https://w3id.org/valuesets/BiosafetyLevelEnum
37263726
description: Biosafety levels (BSL) defining containment requirements for biological
37273727
agents
37283728
from_schema: https://w3id.org/linkml/valuesets/bio/biosafety
@@ -48264,7 +48264,7 @@ slots:
4826448264
on potential risk
4826548265
from_schema: https://w3id.org/linkml/valuesets/bio/biosafety
4826648266
slot_uri: valuesets:biosafety_level
48267-
range: BiosaftyLevelEnum
48267+
range: BiosafetyLevelEnum
4826848268
insdc_missing_value:
4826948269
name: insdc_missing_value
4827048270
definition_uri: https://w3id.org/valuesets/insdc_missing_value
@@ -51069,7 +51069,7 @@ classes:
5106951069
class_uri: valuesets:Fake
5107051070
metamodel_version: 1.7.0
5107151071
source_file: valuesets.yaml
51072-
source_file_date: '2025-10-30T12:09:22'
51072+
source_file_date: '2025-11-05T17:59:31'
5107351073
source_file_size: 2816
51074-
generation_date: '2025-11-03T17:34:51'
51074+
generation_date: '2025-11-05T18:05:58'
5107551075

project/jsonschema/valuesets.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,15 +614,15 @@
614614
"title": "BioreactorTypeEnum",
615615
"type": "string"
616616
},
617-
"BiosaftyLevelEnum": {
617+
"BiosafetyLevelEnum": {
618618
"description": "Biosafety levels (BSL) defining containment requirements for biological agents",
619619
"enum": [
620620
"BSL1",
621621
"BSL2",
622622
"BSL3",
623623
"BSL4"
624624
],
625-
"title": "BiosaftyLevelEnum",
625+
"title": "BiosafetyLevelEnum",
626626
"type": "string"
627627
},
628628
"BioticInteractionType": {

src/valuesets/datamodel/valuesets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ class ProcessingStatus(RichEnum):
14181418
"CANCELLED": {'description': 'Processing cancelled by user'},
14191419
}
14201420

1421-
class BiosaftyLevelEnum(RichEnum):
1421+
class BiosafetyLevelEnum(RichEnum):
14221422
"""
14231423
Biosafety levels (BSL) defining containment requirements for biological agents
14241424
"""
@@ -1429,7 +1429,7 @@ class BiosaftyLevelEnum(RichEnum):
14291429
BSL4 = "BSL4"
14301430

14311431
# Set metadata after class creation to avoid it becoming an enum member
1432-
BiosaftyLevelEnum._metadata = {
1432+
BiosafetyLevelEnum._metadata = {
14331433
"BSL1": {'description': 'Suitable for well-characterized agents not known to consistently cause disease in healthy adults', 'meaning': 'SNOMED:409600007'},
14341434
"BSL2": {'description': 'Suitable for agents that pose moderate hazards to personnel and the environment', 'meaning': 'SNOMED:409603009'},
14351435
"BSL3": {'description': 'Suitable for indigenous or exotic agents that may cause serious or potentially lethal disease through inhalation', 'meaning': 'SNOMED:409604003'},

0 commit comments

Comments
 (0)