Skip to content

Releases: tardis-sn/tardis

TARDIS v2022.2.27

27 Feb 00:17
e86ade3
Compare
Choose a tag to compare
Continuum branch [attempted merge with master] (#1886)

* Add calculation of bound-free opacity for numba MC

* Fix bound-free frequency sorting error

* Add determination of macro atom activation level after bound-free absorption

skip-checks: true

* Fix sorting error in bound-free opacity interpolator

* Calculate factor used in free-free cooling from fundamental constants

* Add determination of macro atom activation level after continuum absorption

* Fix renaming bug

* Add calculation of free-free opacity

* Add note about free-free Gaunt factor

* Add function for combined bf and ff opacity calculation

* Make it easier to retrieve the transition_idx of a MA deactivation channel

* Swap level order in transition_idx references to deactivation

* Reformat some lines

* Add transition_types and idxs for MA deactivation by cooling

* Add mask for retrieving transition probabilities of non continuum species

* Combine the Markov chain and normal transition probabilities

* Reformat some lines

* Replace dummy k-packet idx in interaction handling

* Change output name of combined continuum transition probabilities

* Add block references for combined continuum transition probabilities

* Activate macro atom by level idx instead of line idx

* Make macro atom data a plasma property to enable modularity

* Split transition probabilities and transition info

* Fix macro atom test

* Adapt transition types in plasma to match the ones in the numba macro atom

* Make the macro atom return the transition type

* Add individual fb cooling probabilities to MC transition probabilities

* Make bound-free cross sections available in the MC calculation

* Initialize the arrays for the continuum estimators

* Convert continuum estimator arrays to DataFrames

* Make t_electrons available in MC calculation

* Propagate continuum estimators into plasma

* Add continuum estimators to Numba estimators

* Reformat some lines

* Made path selection a little bit faster and simplifiedw

* Add sorted list of threshold frequencies for photoionization to Numba MC

* Added selection fucntion for continuum process, WIP

* Moved continuum selection inside of tracepacket, still need a docstring

* added plasma properties that perform the sampling of the free-free and free-bound emission processes

* restrcited sampling range between continuum ids

* Record bound-free estimators during Numba MC

* Began work on Continuum jitclass

* Implemented the Continuum as a jitclass which caches the state at a given shell_id and fequency

* Added the continuum samplers to the  attribute of the continuum processes file.  Fixed implementation after merge

* Added temporary change to make all continuum processes thomson scatter so that the simulation finished in a finite amount of time for testing during development

* fixed the continuum samplers so they are now properly processed.  Also fixed some bugs in the samplers

* Reworked the continuum process selection function a little bit to work with the new continuum jitclass

* started addition of free-free emission handler

* Add calculation of bound-free opacity for numba MC

* Fix bound-free frequency sorting error

* Add determination of macro atom activation level after bound-free absorption

skip-checks: true

* Fix sorting error in bound-free opacity interpolator

* Calculate factor used in free-free cooling from fundamental constants

* Add determination of macro atom activation level after continuum absorption

* Fix renaming bug

* Add calculation of free-free opacity

* Add note about free-free Gaunt factor

* Add function for combined bf and ff opacity calculation

* Make it easier to retrieve the transition_idx of a MA deactivation channel

* Swap level order in transition_idx references to deactivation

* Reformat some lines

* Add transition_types and idxs for MA deactivation by cooling

* Add mask for retrieving transition probabilities of non continuum species

* Combine the Markov chain and normal transition probabilities

* Reformat some lines

* Replace dummy k-packet idx in interaction handling

* Change output name of combined continuum transition probabilities

* Add block references for combined continuum transition probabilities

* Activate macro atom by level idx instead of line idx

* Make macro atom data a plasma property to enable modularity

* Split transition probabilities and transition info

* Fix macro atom test

* Adapt transition types in plasma to match the ones in the numba macro atom

* Make the macro atom return the transition type

* Add individual fb cooling probabilities to MC transition probabilities

* Make bound-free cross sections available in the MC calculation

* Initialize the arrays for the continuum estimators

* Convert continuum estimator arrays to DataFrames

* Make t_electrons available in MC calculation

* Propagate continuum estimators into plasma

* Add continuum estimators to Numba estimators

* Reformat some lines

* Add sorted list of threshold frequencies for photoionization to Numba MC

* Record bound-free estimators during Numba MC

* Add estimator for stimulated recombination cooling rate

* Add column name to estimator DataFrames

* updated interactions to work with new macroatom

* Added continuum process frquency samplers to the continuum jitclass constructor

* Fixed typo from merge conflict

* Fixed spacing

* small formatting updates to get the changes to track

* propagated continuum through single packet loop

* Cleaned up file, bound-free and free-free emission pathways should be in the correct place now

* added fixture for a new continuum object

* Added placeholder test for calculating the continuum opacities.  I'm weary to put in exact values until we're done

* reworked the contruction of the continuum class so that only a plasma object needs to be passed

* Updated interaction to now get the macro activation level from the continuum object

* refer to previous commit

* Added the continuum_process into the single packet loop so packets can now actually interact with the contniuum

* various small bugfixes to get the numba funcs to compile properly

* Removed extra functions

* Merge pull request #5 from chvogl/monte-carlo-continuum (#4)

* Reworked the continuum process selection function a little bit to work with the new continuum jitclass

* started addition of free-free emission handler

* updated interactions to work with new macroatom

* Added continuum process frquency samplers to the continuum jitclass constructor

* Fixed typo from merge conflict

* Fixed spacing

* small formatting updates to get the changes to track

* propagated continuum through single packet loop

* Cleaned up file, bound-free and free-free emission pathways should be in the correct place now

* added fixture for a new continuum object

* Added placeholder test for calculating the continuum opacities.  I'm weary to put in exact values until we're done

* reworked the contruction of the continuum class so that only a plasma object needs to be passed

* Updated interaction to now get the macro activation level from the continuum object

* refer to previous commit

* Added the continuum_process into the single packet loop so packets can now actually interact with the contniuum

* various small bugfixes to get the numba funcs to compile properly

* Removed extra functions

* Fix bug in calculation of corrected photoionization rate coefficient

* Format some lines

* Update tardis/montecarlo/montecarlo_numba/interaction.py

Co-authored-by: Christian Vogl <[email protected]>

* No longer recalculate the local continuum opacities before interacting

* Resolved comment from Christian, do the same process for BF cooling as BF emission

* Minor formatting, currently we still don't actually run through any continuum processes because the new macroatom is not in

* Resolved a couple of comments. (#5)

* Reworked the continuum process selection function a little bit to work with the new continuum jitclass

* started addition of free-free emission handler

* updated interactions to work with new macroatom

* Added continuum process frquency samplers to the continuum jitclass constructor

* Fixed typo from merge conflict

* Fixed spacing

* small formatting updates to get the changes to track

* propagated continuum through single packet loop

* Cleaned up file, bound-free and free-free emission pathways should be in the correct place now

* added fixture for a new continuum object

* Added placeholder test for calculating the continuum opacities.  I'm weary to put in exact values until we're done

* reworked the contruction of the continuum class so that only a plasma object needs to be passed

* Updated interaction to now get the macro activation level from the continuum object

* refer to previous commit

* Added the continuum_process into the single packet loop so packets can now actually interact with the contniuum

* various small bugfixes to get the numba funcs to compile properly

* Removed extra functions

* No longer recalculate the local continuum opacities before interacting

* Resolved comment from Christian, do the same process for BF cooling as BF emission

* Minor formatting, currently we still don't actually run through any continuum processes because the new macroatom is not in

* Switch to macro atom data and probabilities with continuum processes

* Raise an exception if more than one two-photon decays are requested

* Add transition info for two-photon decays to numba macro atom data

* Add frequency sampler for two-photon emission

* Updated the bound-free frequency sampler.  Fixed an issue arising from the indexing

* Now allows for continuum processes to occur

* Added proper interaction type to r_packet for continuum processes

* Added bound-free cooling and adiabatic cooling, debugging in progress.  Current issue with macroatom running out of the block

* fixed updatin gof distance_continuum in r_packet, set the chi_bf to zero when there's no cuirrent continuum

* removed print statements for packet index

* Removed excess print statements, added some comments for clarity

* removed a couple commented-out print statements

* added docstrings

* fixed error from typo

* Added conditional compilation of the Continuum jitclass such that normal methods are replaces with dummy methods when we are not worrying about the continuum opacities.  Updated the conditional initialization of the plasma as well accordingly

* updated docstring for montecarlo main loop, should be noted that passing a CPUDispatcher used as a constructor to the main loop function is slow according to numba docs, in the future a factory function should generate the main loop

* added some fixed for running without continuum species

* Added proper flag for adiabatic cooling

* removed extra print statement to check for continuum processes in testing

* removed commented out print statements

* Added configuration parameter for inclusion of continuum processes and had it set during the initialization of the simulation object.  Will be useful for future numba optimization as a compile-time constant

* switched check for continuum processes to rely on config parameter

* Added conditional paths for continuum interactions in the macroatom events based upon compile time constant

* Fixed vpackets throwing a close line error

* Implimented partial fixed for formal integral, development ongoing

* Fixed merge issues

* Fix treatment at end of line list

* Updated continuum interactions to appropriately use comoving frequencies when exciting a macroatom

* added copy method to continuum class

* Added continuum interactions to vpacket

* added continuum interactions to vpacket

* Fixed arg ordering so args come before kwargs, removed conversion of lists to numpy arrays before concatenations

* Vpackets now all share one continuum object since they go sequentially

* decided to go with copies of continuum

* Defer updating continuum if parameters have not changed since last call

* removed check for updating continuum since vpackets always cross a shell boundary before updating

* went back to single instance of continuum to share among vpackets since deffering updating of the continuum is unneccesary

* realtivity check

* Added a step to recompile the main_loop to make sure things get properly set on new runs

* Removed reindexing of photoionization data to be compatable with carsus

* Added fix from chvogl for handling duplicate lines

* Removed the recompile since it caused issues with the lifetimes of some objects

* Fixed bug introduced by relativity fix.  Now recompiling the main loops works and the relativity flag has a namespace

* fixed problems
Co-authored-by: Andreas Flörs <[email protected]>
Co-authored-by: Christian Vogl <[email protected]>

* fixed tracker

* Added

Co-authored-by: Jack O'Brien <[email protected]>

* trying to fix the tests

Co-authored-by: Jack O'Brien <[email protected]>

* remove recompile step due to some numba screwup related #1908

Co-authored-by Jack O'Brien <[email protected]>

Co-authored-by: Christian Vogl <[email protected]>
Co-authored-by: rodot- <[email protected]>
Co-authored-by: Jack O'Brien <[email protected]>
Co-authored-by: Sona Chitchyan <[email protected]>

TARDIS v2022.2.2

20 Feb 00:11
69b433c
Compare
Choose a tag to compare
CUDA Version of the Formal Integral (#1837)

* Current work on the formal integral

* Work on cuda

* Work on the formal integral

* Work on cuda

* Removed units on inu when inputted to the formal integral

* Modified the trapz to take the correct input, and removed all comments and atomic add

* Changes to formal_integral to try and find the differences

* Uncommented a part of code regarding Jkkp, reduced error from 24% to 12%

* Removed random ;

* Initial unit tests for formal integral

* Added more tests, found error

* Fixed calculate_z to be the correct equation

* Made most functions test the number version against cuda

* First stage of adding full formal integral test

* Fixed test parameters as well as condensed them

* Remove unnecessary imports, improve tests

* Fixed call to points

* Slight changes trying to debug memory error

* First working test

* Implemented working CUDA formal_integral

* Clean up formal_integral and tests

* First idea for testing for GPUs

* Fixed name of dependency

* First method for automatically applying GPU, add dependency

* Add check for GPU for pytest tests

* Cleaning up the formal integral

* Remove outdated file

* Removed dependency, changed method for GPU detection

* Refactor to remove extra code

* Removed unnecessary imports

* Updates to test to match refactor

* Clean up imports

* Re-add pdb

* Removed wrapper for non-cuda test

* Black formatting

* Make docstrings match

* Updates to docstrings

* Add docstrings and update tests

* added docstring

* Fixed tests

* Add docstring to bound error

Co-authored-by: Kevin Cawley <[email protected]>

TARDIS v2022.2.6

06 Feb 00:12
c705946
Compare
Choose a tag to compare
Pin Black (#1888)

* Pin black to v21.12b0

* Update 'black-check' workflow

TARDIS v2022.1.3

30 Jan 00:13
Compare
Choose a tag to compare
release-2022.1.3

fix import for vscode

TARDIS v2022.1.23

23 Jan 00:13
bf9b708
Compare
Choose a tag to compare
release-2022.1.23

fixing links (#1865)

TARDIS v2022.1.16

16 Jan 00:13
6649e68
Compare
Choose a tag to compare
Adding Explanations to Spectrum Configuration (#1827)

* Added Explanations to Parameters and Examples of Code

* Added Links to Referenced Docs

* [build docs]

* [build docs]

* Added recommmended changes [build docs]

* Added Explanations Regarding Frequency Space and the Method Parameter [build docs]

* Further Wording Changes [build docs]

* Further Wording Changes [build docs]

* Revised Wording for Spectrum.rst Filee

TARDIS v2022.1.9

09 Jan 00:10
cafbed8
Compare
Choose a tag to compare
Fix Virtual Packet Logging Bug (#1846)

* Pass virtual_packet_logging as an argument in montecarlo main loop

* Add docstring

TARDIS v2021.12.19

19 Dec 00:11
f24be9a
Compare
Choose a tag to compare
release-2021.12.19

Adding Luminosity Integral Explanation to Supernova Configuration (#1…

TARDIS v2021.12.12

12 Dec 00:12
48f56f1
Compare
Choose a tag to compare
Reorganizing docs for website release (#1835)

* restructuring docs for new website release

* moving quickstart

* removing unnecessary images

* fixing quickstart links

* fixing tardis example symlink in development directory

* fixing hyperlinks

* changing grid page name and linking website

* Jaladh's comments

TARDIS v2021.12.5

05 Dec 00:11
f52044a
Compare
Choose a tag to compare
Convert quantities to arrays when plotting in SDEC plot (#1832)

* Convert quantities to arrays when plotting

* [build docs]