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

Applying ruff format to the all repo. #84

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"],

Check notice on line 29 in setup.py

View check run for this annotation

Autodesk Chorus / privacy/bearer

external_service.third_party: Google Cloud APIs

This check is currently in beta. - Personal Data at Autodesk: https://share.autodesk.com/:b:/r/sites/LegalTopicsToolkits/Shared%20Documents/Personal%20Data%20at%20Autodesk.pdf - Data Privacy & Governance Policies at Autodesk: https://share.autodesk.com/sites/DPG/SitePages/Policies-%26-Guidelines.aspx
)
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
Loading