Skip to content

Commit

Permalink
Merge branch 'main' into rotation_broadening
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshields authored Jun 21, 2024
2 parents c544eb1 + 5c82a2f commit fc9e098
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: benchmarks

env:
TARDIS_VER: master # release-2023.06.18
TARDIS_VER: master

on:
push:
Expand Down
13 changes: 9 additions & 4 deletions asv.conf.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@

{
"version": 1,
"project": "stardis",
"project_url": "https://tardis-sn.github.io/tardis",
"repo": ".",
"install_command": ["in-dir={env_dir} python -mpip install {wheel_file}"],
"uninstall_command": ["return-code=any python -mpip uninstall -y {project}"],
"install_command": [
"in-dir={env_dir} python -mpip install {wheel_file}"
],
"uninstall_command": [
"return-code=any python -mpip uninstall -y {project}"
],
"build_command": [
"python setup.py build",
"PIP_NO_BUILD_ISOLATION=false python -mpip wheel --no-deps --no-index -w {build_cache_dir} {build_dir}"
],
"branches": ["main"],
"branches": [
"main"
],
"environment_type": "conda",
"show_commit_url": "https://github.com/tardis-sn/stardis/commit",
"conda_environment_file": "tardis_env3.yml",
Expand Down
2 changes: 0 additions & 2 deletions benchmarks/benchmark_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@ opacity:
line:
disable: False
broadening: [radiation, linear_stark, quadratic_stark, van_der_waals]
min: 6500 AA
max: 6600 AA
broadening_range: 3 AA
no_of_thetas: 20
3 changes: 2 additions & 1 deletion stardis/plasma/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
)

import tardis.plasma
from tardis.opacities.tau_sobolev import TauSobolev


THERMAL_DE_BROGLIE_CONST = const.h**2 / (2 * np.pi * const.k_B)
Expand Down Expand Up @@ -516,7 +517,7 @@ def create_stellar_plasma(
plasma_modules.append(
tardis.plasma.properties.partition_function.LevelBoltzmannFactorNoNLTE
)
plasma_modules.remove(tardis.plasma.properties.radiative_properties.TauSobolev)
plasma_modules.remove(TauSobolev)
plasma_modules.remove(tardis.plasma.properties.plasma_input.TimeExplosion)
plasma_modules.remove(tardis.plasma.properties.plasma_input.DilutionFactor)
plasma_modules.remove(tardis.plasma.properties.plasma_input.HeliumTreatment)
Expand Down

0 comments on commit fc9e098

Please sign in to comment.