NUCWF
Library for online accessing, reading and writing A=3 and A=4 wave functions.
When using the data files or software, please cite the original work:
Installation
The source code and examples are available at https://jugit.fz-juelich.de/a.nogga/nucwavef.git
The easiest way to install is using pip:
pip install nucwf
Usage
The package provides an interface to download the data files from our repository and to read the files and test.
More advanced options will be documented elsewhere.
Jupyter notebook downloading an example data base in examples.
This directory also includes some example scripts to modify the database locally.
For downloading specific files to a local directory, e.g., $HOME/work/wftest use
import os
from nucwf import access
testdf=access.database(workdir=os.environ["HOME"]+"/work/wftest")
This downloads a pandas dataframe with the available wave function files and stores it into testdf . The pandas dataframe can be printed using
import pandas as pd
pd.set_option('display.max_columns', None)
print(testdf.pddf)
Downloading wave function files of, e.g., row 4 of the table is done by
import os
# get file info from table
row=testdf.pddf.loc[[4]]
wfid=row.to_dict('records')[0]
# retrieve file
hashname,uniquename=testdf.get_file(**wfid)
# print name and file size
print("hashname: ",hashname)
print("filesize: ",os.path.getsize(hashname))
print("uniquename: ",uniquename)
The files are downloaded and gunzipped. They are partly also compressed using the ZFP compressors (see https://github.com/LLNL/zfp).
Using the files might require to install the corresponding HDF plugins (https://github.com/LLNL/H5Z-ZFP).
The local files will be first stored under their hashname.
However, the python method also returns a suggestion for a unique file name uniquename
that includes the parameters of the file. If wanted, users may rename the file using the provided uniquename.
The database contains two kinds to files: A=3 and A=4 wave functions. You can read in and get some basic properties using the wavefilea4 constructor
wfa4=access.wavefilea4(hashname,printlevel=1)
A=3 wave functions can be tested similarly using the wavefilea3 constructor
wfa3=access.wavefilea3(hashname,printlevel=1)
Metadata
Release files for nucwf 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nucwf-1.1.0.tar.gz | 4.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nucwf-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.1 MB
Release files / nucwf-1.1.0.tar.gz
| Download URL | nucwf-1.1.0.tar.gz |
|---|---|
| Size | 4.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
779a8510c6ac4ba233556144d3cdb4f2dd548e83903d5246d96f6d893b9cfd94
|
|
BLAKE2b-256 checksum How to use checksums |
b92b72824010eb2d298ea3328c7c2bd461c4e984fdb863736fc878a769ead1f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / nucwf-1.1.0-py3-none-any.whl
| Download URL | nucwf-1.1.0-py3-none-any.whl |
|---|---|
| Size | 40.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
002f3e3b80449a6a863a853ec85a4dc0a69238f9e47f9b5b86d8ae010c690104
|
|
BLAKE2b-256 checksum How to use checksums |
a020a2af622a3dc2229575e3fdcd359011af2d7826dbf073d9ed3d6ae933cd7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|