Skip to content

premerge not reporting docstyle errors #4962

@wyli

Description

@wyli

Describe the bug
successful doc builds may contain not reported errors:
https://github.com/Project-MONAI/MONAI/runs/7955207647?check_suite_focus=true

2022-08-22T15:23:04.4317529Z /home/runner/work/MONAI/MONAI/monai/apps/reconstruction/networks/nets/utils.py:docstring of monai.apps.reconstruction.networks.nets.utils.divisible_pad_t:17: ERROR: Error in "code-block" directive:
2022-08-22T15:23:04.4318125Z maximum 1 argument(s) allowed, 3 supplied.
2022-08-22T15:23:04.4318310Z 
2022-08-22T15:23:04.4318592Z .. code-block:: python
2022-08-22T15:23:04.4318841Z     import torch
2022-08-22T15:23:04.4318987Z 
2022-08-22T15:23:04.4319073Z     # 2D data
2022-08-22T15:23:04.4319311Z     x = torch.ones([3,2,50,70])
2022-08-22T15:23:04.4319612Z     x_pad,padding_sizes = divisible_pad_t(x, k=16)
2022-08-22T15:23:04.4319958Z     # the following line should print (3, 2, 64, 80)
2022-08-22T15:23:04.4320231Z     print(x_pad.shape)
2022-08-22T15:23:04.4320388Z 
2022-08-22T15:23:04.4320477Z     # 3D data
2022-08-22T15:23:04.4320711Z     x = torch.ones([3,2,50,70,80])
2022-08-22T15:23:04.4321012Z     x_pad,padding_sizes = divisible_pad_t(x, k=16)
2022-08-22T15:23:04.4321346Z     # the following line should print (3, 2, 64, 80, 80)
2022-08-22T15:23:04.4321616Z     print(x_pad.shape)
2022-08-22T15:23:04.4321983Z looking for now-outdated files... none found

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions