Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
This is a python submodule containing IO functionality for reading and writing .asc and .zmap grids.
from pygridsio.pygridsio import *
To read a grid file into the custom grid class:
grid = read_grid(filename)
To read a grid file into an xarray, with dimensions x, y, grid:
grid = read_grid_to_xarray(filename)
Or if you want to read multiple grids into an xarray provide a list of filenames:
grids = read_grids_to_xarray([file1, file2])
You can optionally provide labels fo the multiple grid:
grids = read_grids_to_xarray([file1, file2], labels=["grid1","grid2"])
pip install pygridsio
The file environment.yml
can be used to create a working python environment with the needed packages.
For this open an Anaconda Prompt
and:
conda env create -f environment.yml
Or to update the existing anaconda environment (with an updated version of theenvironment.yml
file :
conda env update -n pygridsio -f environment.yml
The environment.yml
file needs to be updated when new packages are added:
conda env export --from-history -n pygridsio > environment.yml
To connect the anaconda environment to Pycharm you can go to File
, Settings
, Project
, Python Interpreter
, add interpreter
, add local interpreter
, conda environment
and then select the environment you created using the above steps.
You can verify the installation of the different python packages by running the tests stored in tests
.
In pycharm: Right click on the folder marked tests
and click on Run python tests in test
FAQs
This is a utility package to read in .zmap and .asc grids to numpy or xarrays
We found that pygridsio 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.