semvec/pypi-packages huggingface dataset:
ref_index 1.0
Refractive index of air, and vacuum-air wave length conversion.
License: BSD

Refractive index of air
=======================

.. _NIST online refractive index of air calculator: 
    http://emtoolbox.nist.gov/Wavelength/Documentation.asp
.. _pip: http://pypi.python.org/pypi/pip
.. _easy_install: packages.python.org/distribute/easy_install.html

Code for calculating refractive index of air, under varying atmospheric
conditions, is provided in this module. Functions for conversion of
wave length of light in vacuum to that in air, and vice-versa are also
defined.

The code is based on the documentation for the `NIST online refractive
index of air calculator`_.

Examples
--------

Refractive index can be calculated using two different equations: one
due to Edlén and another due to Ciddor.

::

  >>> ref_index.ciddor(wave=633.0, t=20, p=101325, rh=20)
  1.0002716285340578
  >>> ref_index.edlen(wave=633.0, t=20, p=101325, rh=20)
  1.0002716291691649
  >>> ref_index.edlen(wave=633.0, t=20, p=101325, rh=80)
  1.0002711197635226
  >>> ref_index.ciddor(wave=633.0, t=20, p=101325, rh=80)
  1.0002711183472626
  >>> ref_index.edlen(wave=633.0, t=60, p=101325, rh=80)
  1.0002339748542823
  >>> ref_index.ciddor(wave=633.0, t=60, p=101325, rh=80)
  1.0002340241754055

Conversion of wave length of light in vacuum to that in air, and
vice-versa. Both of these functions use the Ciddor equation, as
implemented in ``ciddor_ri()`` and ``ciddor()``.

::

  >>> ref_index.vac2air(633.0)
  632.82500476826874
  >>> ref_index.air2vac(632.82500476826874)
  633.00000139949032

  >>> ref_index.vac2air(np.array([633.0, 550.0, 400.0]))
  array([ 632.82500477,  549.84723175,  399.88692724])
  >>> x = ref_index.vac2air(np.array([633.0, 550.0, 400.0]))
  >>> ref_index.air2vac(x)
  array([ 633.0000014 ,  550.00000164,  400.00000243])


Note that the reversibility of ``air2vac()`` is ~1e-5nm.

Default temperature is 15∘C, pressure is 101325Pa, relative humidity is
0, and CO2 concentration is 450µmole/mole. All these can be changed.

::

  >>> ref_index.vac2air(633.0, t=20, p=100000.0, rh=50)
  632.83051710791892
  >>> ref_index.air2vac(632.83051710791892, t=20, p=100000.0, rh=50)
  633.00000131884678


For more details please see the docstring for the module. Detailed
description of the equations can be found in the `NIST documentation`__.

__ `NIST online refractive index of air calculator`_

Installation
------------

The module can be installed using `pip`_ and `easy_install`.

::

  $ pip install ref_index

or, 

::

  $ easy_install ref_index


Credits
-------

All equations used in this module come from the documentation for the
`NIST online refractive index calculator`__, written by Jack A. Stone
and Jay H. Zimmerman. 

__ `NIST online refractive index of air calculator`_

Please send comments and suggestions to the email id `prasanthhn` in
the ``gmail.com`` domain.
django-multiple-email-backends 0.1a4
Want to send through more than one interface? E.g. SMTP and database? This is your solution
License: BSD
Keywords: django email backend multiple

django-multiple-email-backends
==============================

An easy solution to send your email to more than one backend, e.g. if you want to send it to the user via SMTP but also log it to keep the record of send' emails.

Usage
-----

This example.py will output your emails to the console and save it in a folder on your filesystem. You could ofcourse combine this as you want, e.g. the SMTP backend and the filebackend.

::

  EMAIL_BACKEND = "django_multiple_email_backends.backend.CombinedEmailBackend"
  EMAIL_BACKEND_LIST = ['django.core.mail.backends.console.EmailBackend',
                        'django.core.mail.backends.filebased.EmailBackend']


License
-------

BSD
django-cerial 0.0.4
UNKNOWN
License: BSD

django-cerial
=============
Fields for storing serializable data.

What makes this different from other implementations available?

* This implementation deserializes only when necessary. Deserializing is done on
  field access rather than on model instance creation. Serializing is done right
  before saving the model instance.

* There is a test suite


Requirements
------------
* 2.5 <= Python < 3
* Django


Installation
------------
::

    pip install django-cerial



JSONField
---------
Serializes data as `JSON`_. Example::

    from django.db import models
    from cerial import JSONField

    class Entry(models.Model):
        data = JSONField()


PickleField
-----------
Serializes data using `cPickle`_. Example::

    from django.db import models
    from cerial import PickleField

    class Entry(models.Model):
        data = PickleField()


.. _JSON: http://www.json.org/
.. _cPickle: http://docs.python.org/library/pickle.html#module-cPickle