
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
dhybridrpy
allows you to easily load and plot data from dHybridR
simulations. It provides programmatic access to simulation input and output data and the ability to quickly visualize that data.
dask
.To install dhybridrpy
, clone the repository and pip-install:
git clone https://github.com/bwostler/dhybridrpy.git
pip install ./dhybridrpy
Basic usage of the package:
from dhybridrpy import DHybridrpy
# Enter your input file and output folder paths here
input_file = "examples/data/inputs/input"
output_folder = "examples/data/Output"
dpy = DHybridrpy(input_file=input_file, output_folder=output_folder)
# Print simulation timesteps
print(dpy.timesteps())
# Access an input variable
print(f"Timestep = {dpy.inputs['time']['dt']}")
# Access data at a specific timestep
ts = 1
Bx = dpy.timestep(ts).fields.Bx()
print(Bx.data)
# Plot data
import matplotlib.pyplot as plt
Bx.plot()
plt.show()
Further examples can be found in the examples
folder.
Project licensed under the GNU Affero General Public License v3.0. See the LICENSE file for details.
FAQs
A Python package to easily read input + output data from dHybridR.
We found that dhybridrpy-test demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.