Skip to content

Commit

Permalink
Add dose category - Alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
RJMW committed Dec 15, 2023
1 parent 9d9644a commit 250ed5e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ After clicking "Next", you will access the timepoints page where you are asked t
**Figure 4:** Creating a new sample collection spreadsheet - Exposure Information

The last page of the creator will contain information of the chemicals used for the exposure. They are organised in three
groups based on the dose: **BMD10** (Low), **BMD25** (Medium), **10mg/L** (High). Each chemical can only be added to one
groups based on the dose: **BMD10** (Low), **BMD25** (Medium), **10mg/L** (High), **Alternative** (Alternative). Each chemical can only be added to one
group at a time and you will need to create a new batch to test a chemical at a different dose for the same species. At
least one group must contain a chemical for the spreadsheet to be generated but you can add as many chemicals as you want
in each group.
Expand Down
1 change: 1 addition & 0 deletions ptmd/const/spreadsheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def extract_empty_columns() -> list[str]:
"BMD10": "L",
"BMD25": "M",
"10mg/L": "H",
"Alternative": "A",
}
TIME_POINT_MAPPING: dict = {
"TP0": "S",
Expand Down
2 changes: 1 addition & 1 deletion ptmd/resources/api/files/create_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ definitions:
dose:
type: string
description: The dose for these chemicals
enum: ["BMD10", "BMD25", "10mg/L"]
enum: ["BMD10", "BMD25", "10mg/L", "Alternative"]
Create File Response:
type: object
properties:
Expand Down
1 change: 1 addition & 0 deletions ptmd/resources/schemas/creator/create_exposure_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"BMD10",
"BMD25",
"10mg/L",
"Alternative",
0
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"dose_code": {
"type": ["string", "integer"],
"description": "The dose code.",
"enum": ["0", "BMD10", "BMD25", "10mg/L", 0],
"enum": ["0", "BMD10", "BMD25", "10mg/L", "Alternative", 0],
"_role": "admin"
},
"precisiontox_short_identifier": {
Expand Down

0 comments on commit 250ed5e

Please sign in to comment.