Skip to content

Commit

Permalink
Changed name of validate to fix PyDantic issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Apr 7, 2022
1 parent aef2f37 commit 0e0481e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/_getstarted/02_Validation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"enzmldoc = pe.EnzymeMLDocument.fromFile(\"Model_4.omex\")\n",
"\n",
"# Perform validation against the preciously generated YAML\n",
"report, is_valid = enzmldoc.validate(yaml_path=\"EnzymeML_Validation_Template_Example.yaml\")\n",
"report, is_valid = enzmldoc.validateDocument(yaml_path=\"EnzymeML_Validation_Template_Example.yaml\")\n",
"\n",
"print(f\">> Document is valid: {is_valid}\")"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/_getstarted/02_Validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ workflows to utilize validation.
enzmldoc = pe.EnzymeMLDocument.fromFile("Model_4.omex")
# Perform validation against the preciously generated YAML
report, is_valid = enzmldoc.validate(yaml_path="EnzymeML_Validation_Template_Example.yaml")
report, is_valid = enzmldoc.validateDocument(yaml_path="EnzymeML_Validation_Template_Example.yaml")
print(f">> Document is valid: {is_valid}")
Expand Down
2 changes: 1 addition & 1 deletion examples/Validation/ValidateEnzymeML.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"enzmldoc = pe.EnzymeMLDocument.fromFile(\"Model_4.omex\")\n",
"\n",
"# Perform validation against the preciously generated YAML\n",
"report, is_valid = enzmldoc.validate(yaml_path=\"EnzymeML_Validation_Template_Example.yaml\")\n",
"report, is_valid = enzmldoc.validateDocument(yaml_path=\"EnzymeML_Validation_Template_Example.yaml\")\n",
"\n",
"print(f\">> Document is valid: {is_valid}\")"
]
Expand Down

0 comments on commit 0e0481e

Please sign in to comment.