Skip to content

Commit

Permalink
Reverts the meshgen.py name in favour of the original mesher.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrismarsh committed Jan 11, 2023
1 parent d2e0b7c commit 7882a6f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions meshgen.py → mesher.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

import inspect
from natsort import natsorted
import mesher
import mesher_utls

gdal.UseExceptions() # Enable exception support
ogr.UseExceptions() # Enable exception support
Expand Down Expand Up @@ -710,7 +710,7 @@ def main():
with open(f'pickled_param_args_{cz}.pickle', 'wb') as f:
cloudpickle.dump(param_args, f)

MPI_do_parameterize_path = os.path.join(os.path.join(os.path.dirname(mesher.__file__),
MPI_do_parameterize_path = os.path.join(os.path.join(os.path.dirname(mesher_utls.__file__),
'MPI_do_parameterize.py'))
if MPI_exec_str is not None:
exec_str = f"""{MPI_exec_str} {MPI_do_parameterize_path} pickled_param_args_RANK.pickle False {configfile}"""
Expand Down Expand Up @@ -1045,7 +1045,7 @@ def regularize_inputs(base_dir, exec_str, gdal_prefix, input_files, pixel_height
with open('pickled_param_args.pickle', 'wb') as f:
cloudpickle.dump(param_args, f)

MPI_regularize_path = os.path.join(os.path.dirname(mesher.__file__),
MPI_regularize_path = os.path.join(os.path.dirname(mesher_utls.__file__),
'MPI_regularize_inputs.py')
if MPI_exec_str is not None:
exec_str = f"""{MPI_exec_str} {MPI_regularize_path} pickled_param_args.pickle False"""
Expand Down
2 changes: 0 additions & 2 deletions pysrc/mesher/__init__.py

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions pysrc/mesher_utls/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from mesher_utls.MPI_regularize_inputs import regularize_inputs
from mesher_utls.MPI_do_parameterize import do_parameterize
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_installed_gdal_version():
USE_CONAN = str(USE_CONAN).upper()

setup(name='mesher',
version='2.0.0',
version='2.0.1',
description='Landsurface model mesh generation',
long_description="""
Mesher is a novel multi-objective unstructured mesh generation software that allows mesh generation to be generated from an arbitrary number of hydrologically important features while maintaining a variable spatial resolution.
Expand All @@ -68,7 +68,7 @@ def get_installed_gdal_version():
include_package_data=True,
cmake_args=['-DCMAKE_BUILD_TYPE:STRING=Release',
'-DUSE_CONAN:BOOL='+USE_CONAN],
scripts=["meshgen.py","tools/mesh2vtu.py", "tools/meshmerge.py","tools/meshpermutation.py","tools/meshstats.py"],
scripts=["mesher.py","tools/mesh2vtu.py", "tools/meshmerge.py","tools/meshpermutation.py","tools/meshstats.py"],
install_requires=['vtk','pygdal'+get_installed_gdal_version(), 'numpy', 'scipy', 'matplotlib', 'cloudpickle',
'metis', 'mpi4py', 'natsort'],
setup_requires=setup_requires,
Expand Down

0 comments on commit 7882a6f

Please sign in to comment.