Skip to content

Commit 7a8eac1

Browse files
committed
Applying ruff format to the all repo.
1 parent 2f75108 commit 7a8eac1

6 files changed

+26
-28
lines changed

setup.py

+21-23
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
11
from setuptools import setup, find_packages
22

33
setup(
4-
name='xlb',
5-
version='0.2.1',
6-
description='XLB: Accelerated Lattice Boltzmann (XLB) for Physics-based ML',
7-
long_description=open('README.md').read(),
8-
long_description_content_type='text/markdown',
9-
author='Mehdi Ataei',
10-
url='https://github.com/Autodesk/XLB',
11-
license='Apache License 2.0',
4+
name="xlb",
5+
version="0.2.1",
6+
description="XLB: Accelerated Lattice Boltzmann (XLB) for Physics-based ML",
7+
long_description=open("README.md").read(),
8+
long_description_content_type="text/markdown",
9+
author="Mehdi Ataei",
10+
url="https://github.com/Autodesk/XLB",
11+
license="Apache License 2.0",
1212
packages=find_packages(),
1313
install_requires=[
14-
'matplotlib>=3.9.2',
15-
'numpy>=2.1.2',
16-
'pyvista>=0.44.1',
17-
'trimesh>=4.4.9',
18-
'warp-lang>=1.4.0',
19-
'numpy-stl>=3.1.2',
20-
'pydantic>=2.9.1',
21-
'ruff>=0.6.5',
22-
'jax>=0.4.34' # Base JAX CPU-only requirement
14+
"matplotlib>=3.9.2",
15+
"numpy>=2.1.2",
16+
"pyvista>=0.44.1",
17+
"trimesh>=4.4.9",
18+
"warp-lang>=1.4.0",
19+
"numpy-stl>=3.1.2",
20+
"pydantic>=2.9.1",
21+
"ruff>=0.6.5",
22+
"jax>=0.4.34", # Base JAX CPU-only requirement
2323
],
2424
extras_require={
25-
'cuda': ['jax[cuda12]>=0.4.34'], # For CUDA installations
26-
'tpu': ['jax[tpu]>=0.4.34'], # For TPU installations
25+
"cuda": ["jax[cuda12]>=0.4.34"], # For CUDA installations
26+
"tpu": ["jax[tpu]>=0.4.34"], # For TPU installations
2727
},
28-
python_requires='>=3.10',
29-
dependency_links=[
30-
'https://storage.googleapis.com/jax-releases/libtpu_releases.html'
31-
],
28+
python_requires=">=3.10",
29+
dependency_links=["https://storage.googleapis.com/jax-releases/libtpu_releases.html"],
3230
)

xlb/operator/boundary_condition/bc_do_nothing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ def warp_implementation(self, f_pre, f_post, bc_mask, missing_mask):
7676
inputs=[f_pre, f_post, bc_mask, missing_mask],
7777
dim=f_pre.shape[1:],
7878
)
79-
return f_post
79+
return f_post

xlb/operator/boundary_condition/bc_equilibrium.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ def warp_implementation(self, f_pre, f_post, bc_mask, missing_mask):
101101
inputs=[f_pre, f_post, bc_mask, missing_mask],
102102
dim=f_pre.shape[1:],
103103
)
104-
return f_post
104+
return f_post

xlb/operator/boundary_condition/bc_extrapolation_outflow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,4 @@ def warp_implementation(self, f_pre, f_post, bc_mask, missing_mask):
205205
inputs=[f_pre, f_post, bc_mask, missing_mask],
206206
dim=f_pre.shape[1:],
207207
)
208-
return f_post
208+
return f_post

xlb/operator/boundary_condition/bc_fullway_bounce_back.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ def warp_implementation(self, f_pre, f_post, bc_mask, missing_mask):
8686
inputs=[f_pre, f_post, bc_mask, missing_mask],
8787
dim=f_pre.shape[1:],
8888
)
89-
return f_post
89+
return f_post

xlb/operator/boundary_condition/bc_grads_approximation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,4 @@ def warp_implementation(self, f_pre, f_post, bc_mask, missing_mask):
321321
inputs=[f_pre, f_post, bc_mask, missing_mask],
322322
dim=f_pre.shape[1:],
323323
)
324-
return f_post
324+
return f_post

0 commit comments

Comments
 (0)