Skip to content

Commit

Permalink
chore(api): fix pylint bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
themasterlink committed Aug 29, 2022
1 parent 19b5104 commit 306541b
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[FORMAT]
max-line-length=120
disable=C0103,E0401,R0915,R0913,R0914,R1702,R0912,R0915,R0911,R0903,R0904
ignored-modules=cv2
ignored-modules=urllib,cv2
# we do not increase the code quality on the old modules anymore:
ignore-paths=blenderproc/python/modules/.*$
ignore-paths=blenderproc/python/modules/.*$,blenderproc/api/.*$

[SIMILARITIES]

Expand Down
3 changes: 2 additions & 1 deletion blenderproc/api/filter/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from blenderproc.python.filter.Filter import by_attr, by_cp, one_by_cp, one_by_attr, all_with_type, by_attr_in_interval, by_attr_outside_interval
from blenderproc.python.filter.Filter import by_attr, by_cp, one_by_cp, one_by_attr, all_with_type, \
by_attr_in_interval, by_attr_outside_interval
2 changes: 1 addition & 1 deletion blenderproc/api/lighting/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from blenderproc.python.lighting.SuncgLighting import light_suncg_scene
from blenderproc.python.lighting.SurfaceLighting import light_surface
from blenderproc.python.lighting.SurfaceLighting import light_surface
2 changes: 1 addition & 1 deletion blenderproc/api/material/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
add_normal, add_roughness, add_specular, change_to_texture_less_render, collect_all, connect_uv_maps, \
convert_to_materials, create_image_node, create, is_material_used, create_new_cc_material, \
create_procedural_texture, find_cc_material_by_name, create_material_from_texture
from blenderproc.python.material.Dust import add_dust
from blenderproc.python.material.Dust import add_dust
3 changes: 2 additions & 1 deletion blenderproc/api/math/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from blenderproc.python.utility.MathUtility import build_transformation_mat, change_coordinate_frame_of_point, change_source_coordinate_frame_of_transformation_matrix, change_target_coordinate_frame_of_transformation_matrix
from blenderproc.python.utility.MathUtility import build_transformation_mat, change_coordinate_frame_of_point, \
change_source_coordinate_frame_of_transformation_matrix, change_target_coordinate_frame_of_transformation_matrix
4 changes: 3 additions & 1 deletion blenderproc/api/object/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
from blenderproc.python.object.ObjectReplacer import replace_objects
from blenderproc.python.object.OnSurfaceSampler import sample_poses_on_surface
from blenderproc.python.object.PhysicsSimulation import simulate_physics_and_fix_final_poses, simulate_physics
from blenderproc.python.types.MeshObjectUtility import get_all_mesh_objects, convert_to_meshes, create_from_blender_mesh, create_with_empty_mesh, create_primitive, disable_all_rigid_bodies, create_bvh_tree_multi_objects, compute_poi, scene_ray_cast
from blenderproc.python.types.MeshObjectUtility import get_all_mesh_objects, convert_to_meshes, \
create_from_blender_mesh, create_with_empty_mesh, create_primitive, disable_all_rigid_bodies, \
create_bvh_tree_multi_objects, compute_poi, scene_ray_cast
from blenderproc.python.types.EntityUtility import create_empty, delete_multiple, convert_to_entities
3 changes: 2 additions & 1 deletion blenderproc/api/postprocessing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from blenderproc.python.postprocessing.PostProcessingUtility import dist2depth, oil_paint_filter, remove_segmap_noise, trim_redundant_channels, depth2dist
from blenderproc.python.postprocessing.PostProcessingUtility import dist2depth, oil_paint_filter, \
remove_segmap_noise, trim_redundant_channels, depth2dist
from blenderproc.python.postprocessing.StereoGlobalMatching import stereo_global_matching
from blenderproc.python.camera.LensDistortionUtility import apply_lens_distortion
6 changes: 3 additions & 3 deletions blenderproc/api/renderer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

from blenderproc.python.renderer.RendererUtility import set_denoiser, set_light_bounces, \
set_cpu_threads, toggle_stereo, set_simplify_subdivision_render, set_noise_threshold, \
set_max_amount_of_samples, enable_distance_output, enable_depth_output, enable_normals_output, enable_diffuse_color_output,\
map_file_format_to_file_ending, render, set_output_format, enable_motion_blur, set_world_background, set_render_devices, enable_experimental_features
set_max_amount_of_samples, enable_distance_output, enable_depth_output, enable_normals_output, \
enable_diffuse_color_output, map_file_format_to_file_ending, render, set_output_format, enable_motion_blur, \
set_world_background, set_render_devices, enable_experimental_features
from blenderproc.python.renderer.SegMapRendererUtility import render_segmap
from blenderproc.python.renderer.FlowRendererUtility import render_optical_flow
from blenderproc.python.renderer.NOCSRendererUtility import render_nocs
2 changes: 1 addition & 1 deletion blenderproc/api/sampler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
from blenderproc.python.sampler.RandomWalk import random_walk
from blenderproc.python.sampler.Front3DPointInRoomSampler import Front3DPointInRoomSampler
from blenderproc.python.sampler.ReplicaPointInRoomSampler import ReplicaPointInRoomSampler
from blenderproc.python.sampler.SuncgPointInRoomSampler import SuncgPointInRoomSampler
from blenderproc.python.sampler.SuncgPointInRoomSampler import SuncgPointInRoomSampler
3 changes: 2 additions & 1 deletion blenderproc/api/utility/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from blenderproc.python.utility.Utility import resolve_path, num_frames, resolve_resource, set_keyframe_render_interval, reset_keyframes, UndoAfterExecution, BlockStopWatch
from blenderproc.python.utility.Utility import resolve_path, num_frames, resolve_resource, \
set_keyframe_render_interval, reset_keyframes, UndoAfterExecution, BlockStopWatch
from blenderproc.python.utility.LabelIdMapping import LabelIdMapping
from blenderproc.python.utility.PatternUtility import generate_random_pattern_img
2 changes: 1 addition & 1 deletion blenderproc/api/writer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from blenderproc.python.writer.GifWriterUtility import write_gif_animation
from blenderproc.python.writer.BopWriterUtility import write_bop
from blenderproc.python.writer.CocoWriterUtility import write_coco_annotations
from blenderproc.python.writer.WriterUtility import write_hdf5
from blenderproc.python.writer.WriterUtility import write_hdf5

0 comments on commit 306541b

Please sign in to comment.