Address black + isort fbsource linter warnings

Summary: Address black + isort fbsource linter warnings from D20558374 (previous diff)

Reviewed By: nikhilaravi

Differential Revision: D20558373

fbshipit-source-id: d3607de4a01fb24c0d5269634563a7914bddf1c8
This commit is contained in:
Patrick Labatut
2020-03-29 14:46:33 -07:00
committed by Facebook GitHub Bot
parent eb512ffde3
commit d57daa6f85
110 changed files with 705 additions and 1850 deletions

View File

@@ -22,6 +22,7 @@ from recommonmark.states import DummyStateMachine
from sphinx.builders.html import StandaloneHTMLBuilder
from sphinx.ext.autodoc import between
# Monkey patch to fix recommonmark 0.4 doc reference issues.
orig_run_role = DummyStateMachine.run_role
@@ -154,9 +155,7 @@ html_theme_options = {"collapse_navigation": True}
def url_resolver(url):
if ".html" not in url:
url = url.replace("../", "")
return (
"https://github.com/facebookresearch/pytorch3d/blob/master/" + url
)
return "https://github.com/facebookresearch/pytorch3d/blob/master/" + url
else:
if DEPLOY:
return "http://pytorch3d.readthedocs.io/" + url
@@ -188,9 +187,7 @@ def setup(app):
# Register a sphinx.ext.autodoc.between listener to ignore everything
# between lines that contain the word IGNORE
app.connect(
"autodoc-process-docstring", between("^.*IGNORE.*$", exclude=True)
)
app.connect("autodoc-process-docstring", between("^.*IGNORE.*$", exclude=True))
app.add_transform(AutoStructify)
return app

View File

@@ -15,7 +15,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Render a coloured point cloud\n",
"# Render a colored point cloud\n",
"\n",
"This tutorial shows how to:\n",
"- set up a renderer \n",
@@ -84,7 +84,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Load a point cloud and corresponding colours\n",
"### Load a point cloud and corresponding colors\n",
"\n",
"Load a `.ply` file and create a **Point Cloud** object. \n",
"\n",

View File

@@ -1,8 +1,4 @@
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
from .camera_visualization import (
get_camera_wireframe,
plot_camera_scene,
plot_cameras,
)
from .camera_visualization import get_camera_wireframe, plot_camera_scene, plot_cameras
from .plot_image_grid import image_grid

View File

@@ -34,13 +34,9 @@ def image_grid(
cols = 1
gridspec_kw = {"wspace": 0.0, "hspace": 0.0} if fill else {}
fig, axarr = plt.subplots(
rows, cols, gridspec_kw=gridspec_kw, figsize=(15, 9)
)
fig, axarr = plt.subplots(rows, cols, gridspec_kw=gridspec_kw, figsize=(15, 9))
bleed = 0
fig.subplots_adjust(
left=bleed, bottom=bleed, right=(1 - bleed), top=(1 - bleed)
)
fig.subplots_adjust(left=bleed, bottom=bleed, right=(1 - bleed), top=(1 - bleed))
for ax, im in zip(axarr.ravel(), images):
if rgb: