|
81 | 81 | "\n", |
82 | 82 | "from bioimageio.spec.utils import download\n", |
83 | 83 | "\n", |
| 84 | + "# redirect stderr to stdout for better output comparison across runs with 'pytest --nbval'\n", |
| 85 | + "sys.stderr = sys.stdout\n", |
| 86 | + "\n", |
84 | 87 | "# enable and configure loguru logging for bioimageio.spec and bioimageio.core\n", |
85 | 88 | "logger.enable(\"bioimageio\")\n", |
86 | 89 | "logger.remove()\n", |
|
735 | 738 | }, |
736 | 739 | "outputs": [ |
737 | 740 | { |
738 | | - "name": "stderr", |
| 741 | + "name": "stdout", |
739 | 742 | "output_type": "stream", |
740 | 743 | "text": [ |
741 | 744 | "Level 35\u001b[0m | \u001b[36mfield_warning\u001b[0m - description: Needs to be filled for FAIR compliance\u001b[0m\n", |
|
753 | 756 | "traceback": [ |
754 | 757 | "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", |
755 | 758 | "\u001b[1;31mValidationError\u001b[0m Traceback (most recent call last)", |
756 | | - "Cell \u001b[1;32mIn[11], line 4\u001b[0m\n\u001b[0;32m 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mpydantic\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m ValidationError\n\u001b[0;32m 2\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mbioimageio\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mspec\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mmodel\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mv0_5\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m ModelDescr\n\u001b[1;32m----> 4\u001b[0m _ \u001b[38;5;241m=\u001b[39m \u001b[43mModelDescr\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m \u001b[38;5;66;03m# pyright: ignore[reportCallIssue]\u001b[39;00m\n", |
| 759 | + "Cell \u001b[1;32mIn[11], line 3\u001b[0m\n\u001b[0;32m 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mbioimageio\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mspec\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mmodel\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mv0_5\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m ModelDescr\n\u001b[1;32m----> 3\u001b[0m _ \u001b[38;5;241m=\u001b[39m \u001b[43mModelDescr\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m \u001b[38;5;66;03m# pyright: ignore[reportCallIssue]\u001b[39;00m\n", |
757 | 760 | "\u001b[1;31mValidationError\u001b[0m: 4 validation errors for ModelDescr:\nname\n Field required [input={'format_version': '0.5.5', 'type': 'model'}]\ninputs\n Field required [input={'format_version': '0.5.5', 'type': 'model'}]\noutputs\n Field required [input={'format_version': '0.5.5', 'type': 'model'}]\nweights\n Field required [input={'format_version': '0.5.5', 'type': 'model'}]" |
758 | 761 | ] |
759 | 762 | } |
|
796 | 799 | }, |
797 | 800 | "outputs": [ |
798 | 801 | { |
799 | | - "name": "stderr", |
| 802 | + "name": "stdout", |
800 | 803 | "output_type": "stream", |
801 | 804 | "text": [ |
802 | 805 | "Level 35\u001b[0m | \u001b[36mfield_warning\u001b[0m - test_tensor: Needs to be filled for FAIR compliance\u001b[0m\n", |
|
891 | 894 | }, |
892 | 895 | "outputs": [ |
893 | 896 | { |
894 | | - "name": "stderr", |
| 897 | + "name": "stdout", |
895 | 898 | "output_type": "stream", |
896 | 899 | "text": [ |
897 | 900 | "Level 35\u001b[0m | \u001b[36mfield_warning\u001b[0m - test_tensor: Needs to be filled for FAIR compliance\u001b[0m\n", |
|
1186 | 1189 | } |
1187 | 1190 | }, |
1188 | 1191 | "outputs": [ |
1189 | | - { |
1190 | | - "name": "stderr", |
1191 | | - "output_type": "stream", |
1192 | | - "text": [ |
1193 | | - "Level 35\u001b[0m | \u001b[36mfield_warning\u001b[0m - tags: Needs to be filled for FAIR compliance\u001b[0m\n", |
1194 | | - "Level 30\u001b[0m | \u001b[36mv0_5\u001b[0m - covers: Failed to generate cover image(s): Failed to construct cover image from shape (1, 2, 256, 256)\u001b[0m\n" |
1195 | | - ] |
1196 | | - }, |
1197 | 1192 | { |
1198 | 1193 | "name": "stdout", |
1199 | 1194 | "output_type": "stream", |
1200 | 1195 | "text": [ |
| 1196 | + "Level 35\u001b[0m | \u001b[36mfield_warning\u001b[0m - tags: Needs to be filled for FAIR compliance\u001b[0m\n", |
| 1197 | + "Level 30\u001b[0m | \u001b[36mv0_5\u001b[0m - covers: Failed to generate cover image(s): Failed to construct cover image from shape (1, 2, 256, 256)\u001b[0m\n", |
1201 | 1198 | "created 'My cool Model'\n" |
1202 | 1199 | ] |
1203 | 1200 | } |
|
1344 | 1341 | }, |
1345 | 1342 | "outputs": [ |
1346 | 1343 | { |
1347 | | - "name": "stderr", |
| 1344 | + "name": "stdout", |
1348 | 1345 | "output_type": "stream", |
1349 | 1346 | "text": [ |
1350 | 1347 | "\u001b[33m\u001b[1mWARNING \u001b[0m | \u001b[36m_get_conda_env\u001b[0m - \u001b[33m\u001b[1mUPDATE NEEDED: Leaving torchvision and torchaudio unpinned for pytorch==2.8.0\u001b[0m\n", |
|
0 commit comments