Skip to main content

Python

🌐 BiFIS

Signed Distance Function-biased flow importance sampling for implicit neural compression of flow fields
Omar A. Mures, Miguel Cid Montoya

Usage

Installation

The bifis library is available using pip. We recommend using a virtual environment to avoid conflicts with other software on your machine.

pip install bifis

Example

from bifis.utils import Config, console
from bifis.sampling import Uniform, VariableDensity, BiFIS
from scipy.interpolate import griddata

# Load configuration
config = Config("config.json")

# Build toy deck
points, deck, path = build_toy_deck()

uniform = Uniform(config, args.resolution[0], args.resolution[1], np.arange(len(points)))
uniform.show(points[:, 0], points[:, 1], write=False)

variable_density = VariableDensity(config, args.resolution[0], args.resolution[1], np.arange(len(points)))
variable_density.show(points[:, 0], points[:, 1], write=False)

bifis = BiFIS(config, args.resolution[0], args.resolution[1], np.arange(len(points)), samples=points, surface=deck, surface_idx=np.arange(len(deck)))
bifis.show(points[:, 0], points[:, 1], write=False)

# Use resulting grid
interp_var_dens = griddata((points[:, 0], points[:, 1]), p_original, (variable_density.grid_x, variable_density.grid_y), method=interpolation_method)

# BiFIS uses cell ids instead of interpolation to get pixel data
fields_b_i = p_original[bifis.idx].reshape(bifis.img_shape)

📢 News

May 2025

  • Initial code version published.

March 2025

  • Code coming soon.

🎯 TODO

The repo is still under construction, thanks for your patience.

  • Release pip package.
  • Release of the sampling code.

📜 Citation

@Article{montoya2024aeroelastic,
  author = {Mures, Omar A. and Cid Montoya, Miguel},
  title = {Signed Distance Function-biased flow importance sampling for implicit neural compression of flow fields},
  journal = {Computer-Aided Civil and Infrastructure Engineering},
  volume = {n/a},
  number = {n/a},
  pages = {},
  doi = {n/a},
  url = {n/a},
}

Metadata

Release files for bifis 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bifis 0.1.0
File Size Uploaded Provenance Actions
bifis-0.1.0.tar.gz 23.6 kB With provenance Details for bifis-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bifis 0.1.0
File Interpreter ABI Platform Actions
bifis-0.1.0-py3-none-any.whl Python 3 none any Details for bifis-0.1.0-py3-none-any.whl

Total release size: 44.0 kB

Release files / bifis-0.1.0.tar.gz

Download URL bifis-0.1.0.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
785edd07a22b023e295947b8db6c9a65090e5dc106860fd55e739370fe54fe27
BLAKE2b-256 checksum
How to use checksums
9f4350fa97dd7eba5e7126d5e2f31f35e6f53bdad22cf5be9bef3e9f7268f392
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 29, 2025.

Transparency log

Release files / bifis-0.1.0-py3-none-any.whl

Download URL bifis-0.1.0-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b13825b0c9f11bef255d962fc0b0703a2e8756b1d3b0497be79468029509c69a
BLAKE2b-256 checksum
How to use checksums
27c2d5f1d127e6685eadf2c51b18f449da9fd9025b42b72fd7586ceabf21971f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 29, 2025.

Transparency log

Security for bifis 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bifis-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 29, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page