Skip to content

Commit

Permalink
Merge pull request #84 from Autodesk/ruff-format
Browse files Browse the repository at this point in the history
Applying ruff format to the all repo.
  • Loading branch information
mehdiataei authored Oct 25, 2024
2 parents 2f75108 + 7a8eac1 commit 00c24e3
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 28 deletions.
44 changes: 21 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
from setuptools import setup, find_packages

setup(
name='xlb',
version='0.2.1',
description='XLB: Accelerated Lattice Boltzmann (XLB) for Physics-based ML',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='Mehdi Ataei',
url='https://github.com/Autodesk/XLB',
license='Apache License 2.0',
name="xlb",
version="0.2.1",
description="XLB: Accelerated Lattice Boltzmann (XLB) for Physics-based ML",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="Mehdi Ataei",
url="https://github.com/Autodesk/XLB",
license="Apache License 2.0",
packages=find_packages(),
install_requires=[
'matplotlib>=3.9.2',
'numpy>=2.1.2',
'pyvista>=0.44.1',
'trimesh>=4.4.9',
'warp-lang>=1.4.0',
'numpy-stl>=3.1.2',
'pydantic>=2.9.1',
'ruff>=0.6.5',
'jax>=0.4.34' # Base JAX CPU-only requirement
"matplotlib>=3.9.2",
"numpy>=2.1.2",
"pyvista>=0.44.1",
"trimesh>=4.4.9",
"warp-lang>=1.4.0",
"numpy-stl>=3.1.2",
"pydantic>=2.9.1",
"ruff>=0.6.5",
"jax>=0.4.34", # Base JAX CPU-only requirement
],
extras_require={
'cuda': ['jax[cuda12]>=0.4.34'], # For CUDA installations
'tpu': ['jax[tpu]>=0.4.34'], # For TPU installations
"cuda": ["jax[cuda12]>=0.4.34"], # For CUDA installations
"tpu": ["jax[tpu]>=0.4.34"], # For TPU installations
},
python_requires='>=3.10',
dependency_links=[
'https://storage.googleapis.com/jax-releases/libtpu_releases.html'
],
python_requires=">=3.10",
dependency_links=["https://storage.googleapis.com/jax-releases/libtpu_releases.html"],
)
2 changes: 1 addition & 1 deletion xlb/operator/boundary_condition/bc_do_nothing.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ def warp_implementation(self, f_pre, f_post, bc_mask, missing_mask):
inputs=[f_pre, f_post, bc_mask, missing_mask],
dim=f_pre.shape[1:],
)
return f_post
return f_post
2 changes: 1 addition & 1 deletion xlb/operator/boundary_condition/bc_equilibrium.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ def warp_implementation(self, f_pre, f_post, bc_mask, missing_mask):
inputs=[f_pre, f_post, bc_mask, missing_mask],
dim=f_pre.shape[1:],
)
return f_post
return f_post
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,4 @@ def warp_implementation(self, f_pre, f_post, bc_mask, missing_mask):
inputs=[f_pre, f_post, bc_mask, missing_mask],
dim=f_pre.shape[1:],
)
return f_post
return f_post
2 changes: 1 addition & 1 deletion xlb/operator/boundary_condition/bc_fullway_bounce_back.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ def warp_implementation(self, f_pre, f_post, bc_mask, missing_mask):
inputs=[f_pre, f_post, bc_mask, missing_mask],
dim=f_pre.shape[1:],
)
return f_post
return f_post
2 changes: 1 addition & 1 deletion xlb/operator/boundary_condition/bc_grads_approximation.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,4 @@ def warp_implementation(self, f_pre, f_post, bc_mask, missing_mask):
inputs=[f_pre, f_post, bc_mask, missing_mask],
dim=f_pre.shape[1:],
)
return f_post
return f_post

0 comments on commit 00c24e3

Please sign in to comment.