Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add additional linting to package #10

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

yosoyjay
Copy link

This pull request is to improve the linting for the package in response to issue #105 in ODSSM.

The current PR includes changes resulting the application of isort and black and small change in setup.py to improve the robustness of the version check for the C++ complier (-dumpversion vs. --version) . flake8 compliance is a work in progress. flake8 is currently configured in setup.cfg to ignore E501 (line length), E226 (lack of white space around binary operators), and E503 (line break before binary operator, but other errors remain that I'd like feedback on:

ocsmesh/cmd.py:404:9: F841 local variable 'config_outputs' is assigned to but never used
ocsmesh/cmd.py:442:9: F841 local variable 'opts' is assigned to but never used
ocsmesh/utils.py:1089:5: F841 local variable 'y' is assigned to but never used
ocsmesh/utils.py:1097:5: F841 local variable 'faces_around_vert' is assigned to but never used
ocsmesh/utils.py:1106:5: F841 local variable 'coord' is assigned to but never used
ocsmesh/utils.py:1112:5: F841 local variable 'shared_edges' is assigned to but never used
ocsmesh/raster.py:828:5: F841 local variable 'win_h' is assigned to but never used
ocsmesh/raster.py:829:5: F841 local variable 'win_w' is assigned to but never used
ocsmesh/mesh/mesh.py:795:9: F841 local variable 'coo_to_idx' is assigned to but never used
ocsmesh/features/constraint.py:77:9: F841 local variable 'bound_values' is assigned to but never used
ocsmesh/cli/mesh_upgrader.py:82:9: E266 too many leading '#' for block comment
ocsmesh/cli/mesh_upgrader.py:89:9: E266 too many leading '#' for block comment
ocsmesh/cli/remesh.py:308:9: F841 local variable 'roi_s' is assigned to but never used
ocsmesh/cli/remesh.py:316:9: F841 local variable 'vert_idx_to_refin' is assigned to but never used
ocsmesh/cli/remesh_by_shape_factor.py:236:13: F841 local variable 'vert_in' is assigned to but never used
ocsmesh/geom/collector.py:243:17: F841 local variable 'level0' is assigned to but never used
ocsmesh/geom/collector.py:244:17: F841 local variable 'level1' is assigned to but never used
ocsmesh/ops/__init__.py:4:1: E731 do not assign a lambda expression, use a def
ocsmesh/ops/__init__.py:6:1: E731 do not assign a lambda expression, use a def
ocsmesh/ops/combine_geom.py:438:13: E722 do not use bare 'except'
ocsmesh/hfun/collector.py:125:9: F841 local variable 'srcs' is assigned to but never used
ocsmesh/hfun/mesh.py:143:9: F841 local variable 'coords' is assigned to but never used

Once the flake8 issue is resolved, I'd be in favor of integrating tests for isort, black, and flake8 as part of the Github Action workflow for testing.

@yosoyjay
Copy link
Author

@SorooshMani-NOAA I'd like your feedback specifically about how to handle the remaining errors and your thoughts about integrating tests for these in the Github Action testing workflow.

Comment on lines +327 to +328
# refine_opts.mesh_top1 = True
# refine_opts.geom_feat = True
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove extra spaces between # and the commented code following it now that the lines are shifted

Comment on lines +348 to +349
# if out_crs is not None:
# utils.reproject(jig_remeshed, out_crs)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, please remove extra spaces

Comment on lines +51 to +57
"--contour",
action="append",
nargs="+",
type=float,
dest="contours",
metavar="CONTOUR_DEFN",
default=[],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's too much to spread every argument to a newline. Is there any way to control linter not to do this?

Comment on lines +8 to 14
from ocsmesh import Geom, Hfun, JigsawDriver, Raster
from ocsmesh.features.contour import Contour
from ocsmesh.geom.shapely import MultiPolygonGeom
from ocsmesh.hfun.mesh import HfunMesh
from ocsmesh.features.contour import Contour
from ocsmesh.mesh.mesh import Mesh
from ocsmesh.mesh.parsers import sms2dm
from ocsmesh.utils import msh_t_to_2dm
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better if we have a 3rd block of imports specific to the module within this package (ocsmesh) and then organize them separately instead of mixing with other third_party

Comment on lines +505 to +512
raster_path,
raster_opts,
zmin,
zmax,
join_method,
driver,
chunk_size,
overlap,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how I feel about removing 1 level of indentation here. It looks OK, but I don't know if it causes more confusion or not do to aligning with function body

Comment on lines +61 to +66
self,
geom: Geom,
hfun: Hfun,
initial_mesh: bool = False,
crs: Union[str, CRS] = None,
verbosity: int = 0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same issue with indentation aligning with function body

Comment on lines +119 to +121
# if self.opts.hfun_hmin > 0:
# output_mesh = utils.remesh_small_elements(
# self.opts, geom_msh_t, output_mesh, hfun_msh_t)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove extras spaces after # now that the lines are shifted

Comment on lines +123 to +128
self,
value,
upper_bound=np.inf,
lower_bound=-np.inf,
value_type: str = "min",
rate=None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment!

Comment on lines +167 to +172
self,
function=lambda i: i / 2.0,
upper_bound=np.inf,
lower_bound=-np.inf,
value_type: str = "min",
rate=None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just marking as same comment!

@@ -50,11 +52,10 @@ def iter_contours(self):
def _get_contour_from_source(self, source):
pass

# @abstractmethod
# @abstractmethod
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra spaces after #

Comment on lines +92 to +97
self,
level0=None,
level1=None,
sources=[],
max_contour_defn: Contour = None,
shapefile=None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation alignment thing!

Comment on lines +11 to +14
self,
shape: Union[None, MultiPolygon, Polygon] = None,
shape_crs: CRS = CRS.from_user_input("EPSG:4326"),
shapefile: Union[None, str, Path] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation alignment

Comment on lines +44 to +56
self,
in_list: Sequence[
Union[str, Raster, RasterGeom, MeshGeom, MultiPolygonGeom, PolygonGeom]
],
base_mesh: Mesh = None,
zmin: float = None,
zmax: float = None,
nprocs: int = None,
chunk_size: int = None,
overlap: int = None,
verbosity: int = 0,
base_shape: Union[Polygon, MultiPolygon] = None,
base_shape_crs: Union[str, CRS] = "EPSG:4326",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argument and body indentation alignment

Comment on lines +226 to +231
self,
shape: Union[MultiPolygon, Polygon] = None,
level: Union[Tuple[float, float], float] = None,
contour_defn: Union[FilledContour, Contour] = None,
patch_defn: Patch = None,
shapefile: Union[None, str, Path] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just marking the same indentation thing since I noticed it!

Comment on lines +35 to +38
self,
raster: Union[Raster, str, os.PathLike],
zmin=None,
zmax=None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just marking!

@@ -48,7 +48,8 @@ def __init__(
self._zmax = zmax

def get_multipolygon( # type: ignore[override]
self, zmin: float = None, zmax: float = None) -> MultiPolygon:
self, zmin: float = None, zmax: float = None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation alignment thing again! Maybe I should ignore this?

Comment on lines +95 to +99
self,
multipolygon: Union[MultiPolygon, Polygon],
expansion_rate: float = None,
target_size: float = None,
nprocs: int = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation alignment

Comment on lines +158 to +159
# if self.hmin is not None:
# values[np.where(values < self.hmin)] = self.hmin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra spaces after #

Comment on lines +169 to +175
self,
feature: Union[LineString, MultiLineString],
expansion_rate: float,
target_size: float = None,
max_verts=200,
*, # kwarg-only comes after this
pool: Pool,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation alignement thing again

Comment on lines +275 to +276
# if self.hmin is not None:
# values[np.where(values < self.hmin)] = self.hmin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra spaces

Comment on lines +107 to +110
self,
window: rasterio.windows.Window = None,
marche: bool = False,
verbosity=None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking for similar comment

Comment on lines +371 to +376
self,
func=lambda i: i / 2.0,
upper_bound=np.inf,
lower_bound=-np.inf,
value_type: str = "min",
rate=0.01,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation alignment

Comment on lines +386 to +390
self,
multipolygon: Union[MultiPolygon, Polygon],
expansion_rate: float = None,
target_size: float = None,
nprocs: int = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation alignment

Comment on lines +479 to +483
self,
level: Union[List[float], float],
expansion_rate: float,
target_size: float = None,
nprocs: int = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indenatation alignment

Comment on lines +208 to +218
self,
in_list: Sequence[Union[str, Raster, Mesh, HfunRaster, HfunMesh]],
base_mesh: Mesh = None,
hmin: float = None,
hmax: float = None,
nprocs: int = None,
verbosity: int = 0,
method: str = "exact",
base_as_hfun: bool = True,
base_shape: Union[Polygon, MultiPolygon] = None,
base_shape_crs: Union[str, CRS] = "EPSG:4326",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation alignement

Comment on lines +361 to +367
self,
value,
upper_bound=np.inf,
lower_bound=-np.inf,
value_type: str = "min",
rate=0.01,
source_index: Union[List[int], int, None] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation alignement

Comment on lines +381 to +387
self,
func=lambda i: i / 2.0,
upper_bound=np.inf,
lower_bound=-np.inf,
value_type: str = "min",
rate=0.01,
source_index: Union[List[int], int, None] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation alignement

Comment on lines +401 to +405
self,
level: Union[List[float], float] = None,
expansion_rate: float = 0.01,
target_size: float = None,
contour_defn: Contour = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation alignment with body

Comment on lines +447 to +453
self,
level: float = 0,
width: float = 1000, # in meters
target_size: float = 200,
expansion_rate: float = None,
tolerance: Union[None, float] = 50,
channel_defn=None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation alignment

Comment on lines +248 to +251
# self._validate_raster_local(
# Raster(target_path), tmpraster.md5
# os.copyfile()
# tgtraster.save(target_path)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space after #. note not to remove code indentation

Comment on lines 18 to +24
from ocsmesh.mesh.base import BaseMesh
from ocsmesh.mesh.parsers import grd, sms2dm
from ocsmesh.raster import Raster
from pyproj import CRS, Transformer
from scipy.interpolate import RectBivariateSpline, RegularGridInterpolator
from shapely.geometry import LineString, MultiPolygon, Polygon, box
from shapely.ops import linemerge, polygonize
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separate third party from ocsmesh

Comment on lines +420 to +423
self,
threshold=0.0,
land_ibtype=0,
interior_ibtype=1,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

body argument alignment

Comment on lines +469 to +470
# ocean_boundaries = utils.sort_edges(ocean_boundary)
# land_boundaries = utils.sort_edges(land_boundary)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra spaces

Comment on lines +579 to +582
self,
path: Union[str, os.PathLike],
overwrite: bool = False,
format="grd", # pylint: disable=W0622
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

body arg alignment

Comment on lines +29 to +42
self,
dem_files: Union[None, Sequence[Union[str, os.PathLike]]],
out_file: Union[str, os.PathLike],
out_format: str = "shapefile",
mesh_file: Union[str, os.PathLike, None] = None,
mesh_multipolygon: Union[MultiPolygon, Polygon] = None,
ignore_mesh_final_boundary: bool = False,
zmin: Union[float, None] = None,
zmax: Union[float, None] = None,
chunk_size: Union[int, None] = None,
overlap: Union[int, None] = None,
nprocs: int = -1,
out_crs: Union[str, CRS] = "EPSG:4326",
base_crs: Union[str, CRS] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argument body alignment

Comment on lines +181 to +188
# priority_args = []
# for priority, dem_file in zip(priorities, dem_files):
# priority_args.append(
# (priority, temp_dir, dem_file, chunk_size, overlap))
#
# with Pool(processes=nprocs) as p:
# p.starmap(self._process_priority, priority_args)
# p.join()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra space due to shift

Comment on lines +303 to +304
self,
path: Union[str, os.PathLike],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment thing

Comment on lines +312 to +317
self,
priority: int,
temp_dir: Union[str, os.PathLike],
dem_path: Union[str, os.PathLike],
chunk_size: Union[int, None] = None,
overlap: Union[int, None] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment

Comment on lines +332 to +339
self,
base_mesh_path: Union[str, os.PathLike, None],
temp_dir: Union[str, os.PathLike],
priorities: Sequence[int],
dem_files: Sequence[Union[str, os.PathLike]],
z_info: dict = {},
chunk_size: Union[int, None] = None,
overlap: Union[int, None] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment

Comment on lines +394 to +428
# priority_geodf = gpd.GeoDataFrame(
# columns=['geometry'],
# crs=self._calc_crs)
# for p in range(priority):
# higher_pri_path = (
# pathlib.Path(temp_dir) / f'dem_priority_{p}.feather')
#
# if higher_pri_path.is_file():
# priority_geodf = priority_geodf.append(
# self._read_to_geodf(higher_pri_path))
#
# if len(priority_geodf):
# op_res = priority_geodf.unary_union
# pri_mult_poly = MultiPolygon()
# if isinstance(op_res, MultiPolygon):
# pri_mult_poly = op_res
# else:
# pri_mult_poly = MultiPolygon([op_res])
#
#
# if rast_box.within(pri_mult_poly):
# _logger.info(
# f"{dem_path} is ignored due to priority...")
# continue
#
# if rast_box.intersects(pri_mult_poly):
# _logger.info(
# f"{dem_path} needs clipping by priority...")
#
# # Clipping raster can cause problem at
# # boundaries due to difference in pixel size
# # between high and low resolution rasters
# # so instead we operate on extracted polygons
# geom_mult_poly = geom_mult_poly.difference(
# pri_mult_poly)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra spaces due to shift

Comment on lines +448 to +455
self,
base_mesh_path: Union[str, os.PathLike, None],
temp_dir: Union[str, os.PathLike],
priority: int,
dem_file: Union[str, os.PathLike],
z_info: dict = {},
chunk_size: Union[int, None] = None,
overlap: Union[int, None] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alignment

Comment on lines +20 to +32
self,
dem_files: Sequence[Union[str, os.PathLike]],
out_file: Union[str, os.PathLike],
out_format: str = "shapefile",
mesh_file: Union[str, os.PathLike, None] = None,
hmin: Union[float, None] = None,
hmax: Union[float, None] = None,
contours: List[List[float]] = None,
constants: List[List[float]] = None,
chunk_size: Union[int, None] = None,
overlap: Union[int, None] = None,
method: str = "exact",
nprocs: int = -1,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arg body alignment

Comment on lines +142 to +146
self,
path: Union[str, os.PathLike],
crs: Union[str, CRS] = None,
chunk_size=None,
overlap=None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

body arg alignment

Comment on lines +229 to +235
self,
hmin=None,
zmin=None,
zmax=None,
window=None,
overlap=None,
band=1,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

body arg alignment

Comment on lines +292 to +306
self,
band=1,
window=None,
axes=None,
vmin=None,
vmax=None,
cmap="topobathy",
levels=None,
show=False,
title=None,
figsize=None,
colors=256,
cbar_label=None,
norm=None,
**kwargs,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

body arg alignment

Comment on lines +403 to +404
# # Write orignal band
# dst.write_band(i + n_bands_new // 2, outband)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra spaces due to shift

Comment on lines +571 to +574
self,
level: float = 0,
width: float = 1000, # in meters
tolerance: Union[None, float] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

body arg alignment

Comment on lines +738 to +740
mesh: jigsaw_msh_t,
shape: Union[box, Polygon, MultiPolygon],
from_box: bool = False,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

body arg alignment

Comment on lines +769 to +770
mesh: jigsaw_msh_t,
shape: Union[box, Polygon, MultiPolygon],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

body arg alignment

Comment on lines +818 to +824
mesh: jigsaw_msh_t,
shape: Union[box, Polygon, MultiPolygon],
use_box_only: bool = False,
fit_inside: bool = True,
inverse: bool = False,
in_place: bool = False,
check_cross_edges: bool = False,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argument body alignment

Comment on lines +900 to +904
mesh: jigsaw_msh_t,
vert_in: Sequence[int],
can_use_other_verts: bool = False,
inverse: bool = False,
in_place: bool = False,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argument body alignment

Comment on lines +1515 to +1519
*mesh_list,
out_crs="EPSG:4326",
drop_by_bbox=True,
can_overlap=True,
check_cross_edges=False,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argument body alignment

Copy link
Collaborator

@SorooshMani-NOAA SorooshMani-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @yosoyjay, thank you for the changes. It looks much cleaner. I just have a couple of concerns that is vividly visible from my comments on the code:

  1. Some function/method arguments are indented such that the indentation aligns with the body
  2. Some commented lines are shifted and the commented code are not indented properly and there's extra space
  3. Some calls spread the arguments (1 per line) and sometimes it's too much.
  4. Some lines seem to have become very long.

Otherwise I really liked these changes. It would be useful to add it as Github actions so that it's also clear how to run checks locally before submitting the code to repo.

I also have another concern. I made a lot of changes for adding docstring in enhance/docstring branch. I think there would be a lot of conflicts for merging, so I was wondering how much of your changes are manual and how much automatic. In case most things are automatic, we can first merge docstring branch to main and then apply changes to that branch. I'll address your questions in a separate comment.

@SorooshMani-NOAA
Copy link
Collaborator

For the question of those specific errors (line numbers are based on files in the pull request branch):

  • ocsmesh/cmd.py:404:9: You can comment the line, I haven't visited this part of the code
  • ocsmesh/cmd.py:442:9: You can comment the line, I haven't visited this part of the code
  • ocsmesh/utils.py:1089:5: Please comment the line, I need to revisit later
  • ocsmesh/utils.py:1097:5: Please comment the line, I need to revisit later
  • ocsmesh/utils.py:1106:5: Go ahead and remove the unused assignment line
  • ocsmesh/utils.py:1112:5: Go ahead and remove the unused assignment line
  • ocsmesh/raster.py:828:5: Remove the assignment but add a comment saying win height is equal to that value
  • ocsmesh/raster.py:829:5: Remove the assignment but add a comment saying win width is equal to that value
  • ocsmesh/mesh/mesh.py:795:9: Go ahead and remove it
  • ocsmesh/features/constraint.py:77:9: Please comment the line, I need to revisit this
  • ocsmesh/cli/mesh_upgrader.py:82:9: Go ahead and fix the double #
  • ocsmesh/cli/mesh_upgrader.py:89:9: Go ahead and fix the double #
  • ocsmesh/cli/remesh.py:308:9: You can remove the unused variable and the other relevant line (307, 308)
  • ocsmesh/cli/remesh.py:316:9: You can remove the unused variable and the other relevant line (315, 316)
  • ocsmesh/cli/remesh_by_shape_factor.py:236:13: You can remove the unused variable and the other relevant line (235, 236)
  • ocsmesh/geom/collector.py:243:17: This is a bug, level1 and level0 must be passed to FilledContour at 251
  • ocsmesh/geom/collector.py:244:17: This is a bug, level1 and level0 must be passed to FilledContour at 251
  • ocsmesh/ops/__init__.py:4:1: It's OK to replace with def but I wanted to be compact
  • ocsmesh/ops/__init__.py:6:1: It's OK to replace with def but I wanted to be compact
  • ocsmesh/ops/combine_geom.py:438:13: I need to check what errors could occur, can we ignore E722 only for this line?
  • ocsmesh/hfun/collector.py:125:9: Please comment the srcs line, I need to revisit this
  • ocsmesh/hfun/mesh.py:143:9: Please go ahead and remove the unused var line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants