Skip to main content

Dealing with isotopic inventories.

Project description

Installation

To install this package it is best to use pip3.

In order to install this package type: pip3 install lib-kaasknak

Usage

In order to use the package import lib in your python editor of choice.

The commands that can be used are:

  • ElementZ(input) which gives the Z-value of the corresponding element.
  • ElementN(input) which gives the name of the element corresponding to this Z-value.
  • NatComp(input) which gives the isotopes in nature and their fractions.

Example

import lib
a=lib.ElementZ("Gd")
b,c=lib.NatComp("Gd")
print(a)
print(b)
print(c)
64
[152, 154, 155, 156, 157, 158, 160]
[0.002, 0.0218, 0.148, 0.2047, 0.1565, 0.2484, 0.2186]

Sidenote

If the element has no natural occuring isotopes it will return a list with one 0 in it. If the element only has traces of an isotope occuring in nature it will return the mass numbers of these traces. In both cases the fractions list will contain a single 0.

Data is gather from the wikipedia page for every individual element.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lib-kaasknak-0.1.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

lib_kaasknak-0.1.0-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page