Radis

Latest version: v0.15.2

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

1.0.0

Features -
- Ploting spectra
- Exporing spectra
- Overlay spectra

0.99

[362222 rows x 31 columns]



βš™οΈ[User-interface](https://github.com/radis/radis/issues?q=label%3Ainterface+milestone%3A0.13)

- 467 radiance & emisscoeff units are now consistent with waverange unit ; i.e. plotting in `cm-1` will yield a default radiance in ~`mW/cm2/sr/cm-1` while plotting in `nm` will yield a default radiance in `~mW/cm2/sr/nm` AllanHOlesenBW (major refactor under the hood)
- 448 normalize options
- 471 line-survey works for multiple molecules

python
from radis import calc_spectrum
import astropy.units as u

s4 = calc_spectrum(1950 / u.cm, 1980 / u.cm,
mole_fraction={'CH4':1900e-9, 'CO2':400e-6},
isotope='1,2,3',
pressure=1.01325 * u.bar,
Tgas=296 * u.K,
path_length=100 * u.cm,
databank='geisa',
verbose=False,
export_lines=True)

s4.line_survey(overlay='abscoeff', barwidth=0.001)




![image](https://user-images.githubusercontent.com/16088743/168693608-e3cf7578-b886-4d6d-8bba-04f50cd89fcf.png)


πŸƒ [Performance improvement](https://github.com/radis/radis/issues?q=label%3Aperformance+milestone%3A0.12)

- 464 : less RAM usage when generating ExoMol database files.

πŸ› [Bug fixes](https://github.com/radis/radis/issues?q=label%3Abug+milestone%3A0.12)

- 454
- 458
- 464 : fix ExoMol parsing errors

πŸ“ [Documentation](https://github.com/radis/radis/issues?q=label%3Adocumentation+milestone%3A0.12)

- 453
- 462 new Gallery Example : [compare CO in HITRAN and GEISA](https://radis.readthedocs.io/en/latest/auto_examples/plot_compare_CO_geisa_hitran.html)

---

Detail
* fix emisscoeff units conversion by erwanp in https://github.com/radis/radis/pull/455
* Fixes Hitemp whitespace parsing by erwanp in https://github.com/radis/radis/pull/458
* Set input field instead dropdown by arunavabasu-03 in https://github.com/radis/radis/pull/459
* Exomol api update by erwanp in https://github.com/radis/radis/pull/464
* Normalize() return norm factor and units option by CorentinGrimaldi in https://github.com/radis/radis/pull/448
* Fix/ci env by erwanp in https://github.com/radis/radis/pull/468
* update linesurvey & plot by erwanp in https://github.com/radis/radis/pull/466
* Add GEISA database by TranHuuNhatHuy in https://github.com/radis/radis/pull/462
* Updated references.rst by sonikarajesh in https://github.com/radis/radis/pull/453
* Add consistent units by erwanp in https://github.com/radis/radis/pull/467
* geisa docs & line-survey by erwanp in https://github.com/radis/radis/pull/471


**Full Changelog**: https://github.com/radis/radis/compare/0.12.1...0.13.0

0.15.1

2024 Summer release 🌞 - Bug fix and early developmentπŸ”§

Highlights

- Early release of atomic spectra using the Kurucz database (code29563 GSOC 2024 and menasrac GSOC 2023)
- Bug and development fix of 0.15

*Pull request details : https://github.com/radis/radis/pull/684*

---

πŸ”¬ Physics Features

* Adding support for the Kurucz atomic database by code29563 in https://github.com/radis/radis/pull/652
* Remove duplicate Einstein coefficient Aul in df0 by minouHub in https://github.com/radis/radis/pull/671
* Missing broad. coef. of non-air diluents, missing requirements & 4 other fix by minouHub in https://github.com/radis/radis/pull/677


πŸ› Important bug fixes and πŸ”§ internal development

* [bug fix] Interactive plotting failed by minouHub in https://github.com/radis/radis/pull/668
* [bug] S (-2) and O (+2) branchs were not converted to numeric columns - apply to N2 in HITRAN by minouHub in https://github.com/radis/radis/pull/669
* A bug related to map_add by HajimeKawahara in https://github.com/radis/radis/pull/674
* fix drop_non_numeric by code29563 in https://github.com/radis/radis/pull/675
* Missing GPU files in deploy and xsection rescaling by minouHub in https://github.com/radis/radis/pull/683


πŸ“ Documentation

βš™οΈ User-interface

πŸƒ Performance improvement


---

New Contributors
* code29563 made their first contribution in https://github.com/radis/radis/pull/652

**Full Changelog**: https://github.com/radis/radis/compare/0.15...0.15.1

0.15

2024 Summer release 🌞

Highlights

- Performance: GPU for all ! (no need for specific hardware)
- Performance: Low-memory calculations (multiple orders of magnitude improvements)
- [Docs](https://radis.readthedocs.io/en/latest/index.html) fully reorganized
- 15 new contributors!

*Pull request details : https://github.com/radis/radis/pull/667*

---

πŸ”¬ Physics Features

* Support for non air diluent by Supriya1702 in https://github.com/radis/radis/pull/495

* Multiple diluents calculation for multiple molecules in calc_spectrum by 1someshverma in https://github.com/radis/radis/pull/555

**Important notice**: multi-molecule calculations will intentionally crash if broadening coefficients are not available for all the species [according to Radis "Better Crash Than Hide" policy]. See 653 for future workarounds

* Added latest HITRAN molecules & isotopes (in update molecular parameters by nollety in https://github.com/radis/radis/pull/549 ) ; as well as latest Exomol molecules

βš™οΈUser-interface

* Add an option to normalize at one point by E-W-Jones in https://github.com/radis/radis/pull/627
* New Spectrum.fit_model() routine, s.argmax(), and s.from_mat() for Matlab interface by erwanp in https://github.com/radis/radis/pull/611

πŸƒ Performance improvement

* Calculation with Vaex (beforehand, only loading of database was performed with Vaex) : 576, 580


To use Vaex
python
from radis import config
config["DATAFRAME_ENGINE"] = "vaex"

Memory Performances


![image](https://github.com/radis/radis/assets/78527441/cd25250e-c0a9-47d0-9e36-a7c8f859ec40)



Time Performance
![image](https://github.com/radis/radis/assets/78527441/fdc4cd63-0ec9-452c-bc7a-06fa08272d16)



* Cuda driver by dcmvdbekerom in https://github.com/radis/radis/pull/604 : gets rid of `cupy` and `CUDA toolkit` dependencies.
In layman terms, this means you don't need to install excessive software just to make use of GPU capabilities. **"GPU for all"** !

An example to compare CPU and GPU codes:
python
from radis import SpectrumFactory
fixed_conditions = {
"path_length": 1,
"wmin": 2000,
"wmax": 3000,
"pressure": 0.1,
"wstep": 0.001,
"mole_fraction": 0.01,
"verbose":0}
Tgas = 1000
sf = SpectrumFactory(
**fixed_conditions,
broadening_method="fft",
molecule='CO2'
)
sf.fetch_databank("hitemp")

s1_gpu = sf.eq_spectrum_gpu(
Tgas=Tgas, K
backend="gpu-cuda", runs on GPU
diluent={'air':0.99})
s1_cpu = sf.eq_spectrum(
Tgas=Tgas, K
diluent={'air':0.99}
)

integral_GPU = s1_gpu.get_integral("absorbance")
integral_CPU = s1_cpu.get_integral("absorbance")
print(integral_GPU, integral_CPU, integral_GPU/integral_CPU)




πŸ› Important Bug fixes

* Compute power based on vacuum wavelengths - Resolution proposal for bug 460 by AllanHOlesenBW in https://github.com/radis/radis/pull/477
* fix broadening HWHM for diluent by erwanp in https://github.com/radis/radis/pull/589
* RADIS works for all modern Python version (641, 651, 656)
* Solution to rounding issue while summing mole fractions by smitsekhadiaa in https://github.com/radis/radis/pull/642
* Fix spurious download of .states.bz2 file by minouHub in https://github.com/radis/radis/pull/632
* fixes hitemp loading error by HajimeKawahara in https://github.com/radis/radis/pull/636

πŸ“ Documentation

* Additional new gallery examples by TranHuuNhatHuy in 518, 522
* Docs are fully reorganized (637655 ) : https://radis.readthedocs.io/en/latest/index.html

![image](https://github.com/user-attachments/assets/8435af18-9604-40b8-809b-53f011fcb850)

---

What's Changed
* Add some small docs/examples by TranHuuNhatHuy in https://github.com/radis/radis/pull/518
* Implement all new fitting modules and accompanied gallery examples into RADIS by TranHuuNhatHuy in https://github.com/radis/radis/pull/520
* add explicit warning/error message if line with 0-cm-1 broadening by erwanp in https://github.com/radis/radis/pull/524
* Allow astropy units to be used in crop() by TranHuuNhatHuy in https://github.com/radis/radis/pull/526
* Removing completed TODO in radis/lbl/calc.py by mdrodelo in https://github.com/radis/radis/pull/527
* Add/common api by erwanp in https://github.com/radis/radis/pull/480
* Non air diluent 2 by Supriya1702 in https://github.com/radis/radis/pull/495
* Additional illustrative gallery examples for new fitting module by TranHuuNhatHuy in https://github.com/radis/radis/pull/522
* number of trans files in H3O_p/Exomol error manually fixed by HajimeKawahara in https://github.com/radis/radis/pull/531
* added double axis and updated exomol molecules list and get_molecule method of DataFileManager class by 1someshverma in https://github.com/radis/radis/pull/537
* prevent imax index from exceeding the range by ykawashima in https://github.com/radis/radis/pull/538
* fixed black Test by 1someshverma in https://github.com/radis/radis/pull/539
* Features/exomol loading optional fields, such as quantum states, when kip_optional_data=False in api.read_states by HajimeKawahara in https://github.com/radis/radis/pull/541
* docs(radis-0.14): adding installation guide for radis for conda and mamba by arunavabasucom in https://github.com/radis/radis/pull/542
* Warn when branch data type is not int64 by nollety in https://github.com/radis/radis/pull/546
* Plots show up even if interactive mode is off by 1someshverma in https://github.com/radis/radis/pull/543
* Matlab Interface by 1someshverma in https://github.com/radis/radis/pull/547
* Update molecular parameters by nollety in https://github.com/radis/radis/pull/549
* A potential fix for the issue Docs are broken 545 by andreyscott in https://github.com/radis/radis/pull/553
* fix output format (pb change of default Pandas output) by erwanp in https://github.com/radis/radis/pull/556
* fix wrongly filtered paths in loader.py by mragank02 in https://github.com/radis/radis/pull/552
* Multiple diluents calculation for multiple molecules in calc_spectrum by 1someshverma in https://github.com/radis/radis/pull/555
* Test failing on `test_calc` by minouHub in https://github.com/radis/radis/pull/570
* updated isort for uncompatibility issue with Poetry by minouHub in https://github.com/radis/radis/pull/568
* No upper bound on numpy version by minouHub in https://github.com/radis/radis/pull/569
* Install command by menasrac in https://github.com/radis/radis/pull/560
* Added plotting options documentation by menasrac in https://github.com/radis/radis/pull/559
* Removed manual exceptions in exomolapi and fixed broadf option by YuiKasagi in https://github.com/radis/radis/pull/571
* Allowing to use non numeric columns in HITRAN by YuiKasagi in https://github.com/radis/radis/pull/574
* Compute power based on vacuum wavelengths - Resolution proposal for bug 460 by AllanHOlesenBW in https://github.com/radis/radis/pull/477
* fixes 529 by erwanp in https://github.com/radis/radis/pull/587
* Fix docs and various little things by erwanp in https://github.com/radis/radis/pull/591
* organized verbose message of hitemp by minouHub in https://github.com/radis/radis/pull/584
* Doc/test build by erwanp in https://github.com/radis/radis/pull/593
* fixing docs / try with extra_requirements by erwanp in https://github.com/radis/radis/pull/594
* trying without docs/requirements.txt by erwanp in https://github.com/radis/radis/pull/595
* fix broadening HWHM for diluent by erwanp in https://github.com/radis/radis/pull/589
* Handles division by zero by 1someshverma in https://github.com/radis/radis/pull/566
* Fixed Docs + reorganized dependencies by erwanp in https://github.com/radis/radis/pull/599
* Fetch exomol by minouHub in https://github.com/radis/radis/pull/586
* Unexpected behavior of plot_diff by minouHub in https://github.com/radis/radis/pull/607
* Spelling by jsoref in https://github.com/radis/radis/pull/608
* [Reduced Memory Use] calculating spectrum using vaex corrected by 1someshverma in https://github.com/radis/radis/pull/580
* removed engine parameter by 1someshverma in https://github.com/radis/radis/pull/609
* Cuda driver by dcmvdbekerom in https://github.com/radis/radis/pull/604
* resolves the incompatibility w ExoJAX for set_broadening_coef. See ht… by HajimeKawahara in https://github.com/radis/radis/pull/626
* New Spectrum.fit_model() routine, s.argmax(), and s.from_mat() for Matlab interface by erwanp in https://github.com/radis/radis/pull/611
* [Minor] Secondary xaxis & download of .states.bz2 file by minouHub in https://github.com/radis/radis/pull/632
* fixes hitemp loading error by HajimeKawahara in https://github.com/radis/radis/pull/636
* Fix Vaex DataFrame usage by sh-tada in https://github.com/radis/radis/pull/638
* Make codebase Pandas 2.0-ready by leroyvn in https://github.com/radis/radis/pull/641
* Solution to rounding issue while summing mole fractions by smitsekhadiaa in https://github.com/radis/radis/pull/642
* Reorganization and simplification of the doc by minouHub in https://github.com/radis/radis/pull/637
* (too) simple solution to accelerate potential halt of travis by minouHub in https://github.com/radis/radis/pull/633
* Doc changes by smitsekhadiaa in https://github.com/radis/radis/pull/644
* Resolve failing tests by minouHub in https://github.com/radis/radis/pull/648
* Remove install dependency + support Python 3.9, 3.10 by minouHub in https://github.com/radis/radis/pull/647
* Add an option to normalize at one point by E-W-Jones in https://github.com/radis/radis/pull/627
* No upper version limit in RADIS install by minouHub in https://github.com/radis/radis/pull/651
* [Minor] Typo in doc by minouHub in https://github.com/radis/radis/pull/655
* update Test environment by erwanp in https://github.com/radis/radis/pull/657
* remove vaex hard dependency by erwanp in https://github.com/radis/radis/pull/656

New Contributors
* mdrodelo made their first contribution in https://github.com/radis/radis/pull/527
* HajimeKawahara made their first contribution in https://github.com/radis/radis/pull/531
* 1someshverma made their first contribution in https://github.com/radis/radis/pull/537
* ykawashima made their first contribution in https://github.com/radis/radis/pull/538
* nollety made their first contribution in https://github.com/radis/radis/pull/546
* andreyscott made their first contribution in https://github.com/radis/radis/pull/553
* mragank02 made their first contribution in https://github.com/radis/radis/pull/552
* menasrac made their first contribution in https://github.com/radis/radis/pull/560
* YuiKasagi made their first contribution in https://github.com/radis/radis/pull/571
* AllanHOlesenBW made their first contribution in https://github.com/radis/radis/pull/477
* jsoref made their first contribution in https://github.com/radis/radis/pull/608
* sh-tada made their first contribution in https://github.com/radis/radis/pull/638
* leroyvn made their first contribution in https://github.com/radis/radis/pull/641
* smitsekhadiaa made their first contribution in https://github.com/radis/radis/pull/642
* E-W-Jones made their first contribution in https://github.com/radis/radis/pull/627

**Full Changelog**: https://github.com/radis/radis/compare/0.13.1...0.15

0.14

Description
The major release `0.14` after `0.13`, brings essential fixes to the interface, and the final implementations of the Google Summer of Code 2022 new features with gallery examples.

Main changes :
- non air mixtures automatically taken into account when using Hitran 495
- fitting modules examples 520
- Radis now uses a common API with Exojax to fetch databases

Pull Request Link: https://github.com/radis/radis/pull/532
What's Changed
Features:
* Implement all new fitting modules and accompanied gallery examples into RADIS by TranHuuNhatHuy in https://github.com/radis/radis/pull/520
* add explicit warning/error message if line with 0-cm-1 broadening by erwanp in https://github.com/radis/radis/pull/524
* Allow astropy units to be used in crop() by TranHuuNhatHuy in https://github.com/radis/radis/pull/526
* Removing completed TODO in radis/lbl/calc.py by mdrodelo in https://github.com/radis/radis/pull/527
* Add/common api by erwanp in https://github.com/radis/radis/pull/480
* Non air diluent 2 by Supriya1702 in https://github.com/radis/radis/pull/495
* number of trans files in H3O_p/Exomol error manually fixed by HajimeKawahara in https://github.com/radis/radis/pull/531

Docs:
* Additional illustrative gallery examples for new fitting module by TranHuuNhatHuy in https://github.com/radis/radis/pull/522
![Screenshot from 2022-11-08 03-18-34](https://user-images.githubusercontent.com/44584067/200422918-6c5079e0-e8e4-43b3-907a-c151386edfeb.png)
* Add some small docs/examples by TranHuuNhatHuy in https://github.com/radis/radis/pull/518


New Contributors
* mdrodelo made their first contribution in https://github.com/radis/radis/pull/527
* HajimeKawahara made their first contribution in https://github.com/radis/radis/pull/531

**Full Changelog**: https://github.com/radis/radis/compare/0.13.1...0.14

0.13.1

<!-- Please be sure to check out our contributing guidelines,
https://github.com/radis/radis/blob/develop/CONTRIBUTING.md . -->

Description
<!-- Provide a general description of what your pull request does. -->

Intermediary version between 0.13 and 0.14, brings important fixes to the experimental GPU mode, many other interface fixes, as well as the first implementations of the Google Summer of Code 2022 new features.

Pull Request : https://github.com/radis/radis/pull/517

What's Changed

Features:
* Fetch hitran update by Supriya1702 in https://github.com/radis/radis/pull/505 : you can now fetch non-air broadening parameters, as well as any other parameter available in the HITRAN database.
python
from radis.io.hitran import fetch_hitran

df = fetch_hitran("CO",["n_CO2","gamma_CO2"])
print(df)
print(df.columns)

![image](https://user-images.githubusercontent.com/38047163/179561484-c22f95ea-2411-4741-a07c-ea8ddfa6405e.png)


Performance:
* Chunk size implementation for DIT Algorithm loops for Broadening by sagarchotalia in https://github.com/radis/radis/pull/489 : allows to compute extreme amount of lines on limited RAM systems.
* update chunksize test to make it faster - and RT minor perf improvement by erwanp in https://github.com/radis/radis/pull/503

Interface:
* Added warning and help improvement for get_population, update line survey, add example by minouHub in https://github.com/radis/radis/pull/512



Fixes:
* Updated numpy<=1.22.3 and fixed linting by anandxkumar in https://github.com/radis/radis/pull/490
* fix specutils i/o when dealing with wavelngths by erwanp in https://github.com/radis/radis/pull/499
* Fix gpu by dcmvdbekerom in https://github.com/radis/radis/pull/514 : GPU sliders now work in Radiance mode
* Fix HDF5/ api issues by erwanp in https://github.com/radis/radis/pull/487
* Fixing the case when the chunksize is too small by sagarchotalia in https://github.com/radis/radis/pull/500

Docs:
* update physics constants to NIST CODATA standards, update docs by erwanp in https://github.com/radis/radis/pull/498
* Added the Radis Website Link by sonikarajesh in https://github.com/radis/radis/pull/475
* Whitespaces fix by Supriya1702 in https://github.com/radis/radis/pull/481
* Remove RTD special vaex handling by erwanp in https://github.com/radis/radis/pull/502
* ✨ we now have a [Youtube Video Channel](https://www.youtube.com/channel/UCO-7NXkubTAiGGxXmvtQlsA/featured)
[![image](https://user-images.githubusercontent.com/16088743/187095409-0d0102bc-8ce5-4f17-a14b-d0f0a8d0589d.png)](https://www.youtube.com/channel/UCO-7NXkubTAiGGxXmvtQlsA/featured)


Refactor:
* DBManager Refactor and simplification of ExoMol MdBMol by erwanp in https://github.com/radis/radis/pull/465 : first step before Common-API with Exojax.
* Refactor extra molecular parameters by erwanp in https://github.com/radis/radis/pull/516 . Simplification of the `radis.config` file.


**Full Changelog**: https://github.com/radis/radis/compare/0.13.0...0.13.1


---

πŸ“£ Other News

- Extreme amounts of change and improvement in Radis-App, have a look . Web app : https://radis.app/ ; Source Code : https://github.com/suzil/radis-app
- We presented Radis at the [ASA-HITRAN 2022](https://www.univ-reims.fr/asa-hitran/) conference. The records from the conference are not available, but a rehearsal video is available in our new Youtube channel above. We discuss the history, goals, features, algorithms, latest changes and future of Radis.

Page 1 of 5

Β© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.