-
-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add montecarlo_seed value to global module * Add user-input seed to each seed setting * Make sure montecarlo_seed for global module is set during configuration * Include packet_seeds within montecarlo_configuration module * Initialize packet seeds * Set user seed before instantiating *any* random process! * Pass packet seeds to montecarlo_main_loop; use said seeds * Bring rpacket creation outside of if/else * Initialize seeds within initialize_packets * Set mu and nu sampling on a per-seed basis * Use single_packet_seed to index existing packet_seeds array * Perform packet-by-packet creation of trajectories, nu in packet_source * Try initializing xis outside of blackbody function * Remove print statements * Do not concatenate arrays in packet_source running; add njit * Name create_array more explicitly * Make montecarlo seeds attributes of r_packet * Add rationale for size of random array * Clean up documentation of blackbody sampling * Remove extraneous numba import * Remove extra kwarg in basepacket create_packets * Add packet_source docstrings * Justify and change MAX_SEED_VAL * Refactor packet_source so that all packet properties are made in the same func * Attach seed to r_packet * Clean up create_packets func * Clean up docstrings for packet_source * @jitclass BlackBodySimpleSource * Ensure that the iteration is added to the seed each time montecarlorunner is run * jitclass uniform packets * Pass iteration to montecarlorunner * Remove njit from uniform packet energies * Provide a better-motivated upper bound for the seed value * Use random.sample instead of np.random.randint to prevent possible repetitions * Raise more explicit error if too many packets * Set seed of random module before calling random.sample * Address merge error in montecarlo_main_loop * Clarify ValueError for seeds * Do not generate packet properties on a seed-by-seed basis * Remove seeds from create_packets function call * use new random number generator to make packet seeds * Bump numpy version to 1.19.0 * Pass rng to packet source functions for randomness * actually define rng in montecarlo/base * Delete error raised for too many packets * Allow packet seeds to overlap * Remove random module import * Clarify C comparison * Include numba comparison plots * Add Testing TARDIS section to docs * Make sure custom packet source works * Add disabling to yml file * Make changes to mc_config_module when necessary * Add scatter-disabling functionality to global module * Set tau_sobolev to 0 in plasma setting * Add rudimentary last_interaction_type * Address combined > event for tau_trace * reference module for sigma_thomson * Explicitly pass sigma_thomson * Only reset nu for e-scatter * Split thomson_scatter and line_scatter entirely * check doppler factor * Account for interaction type * Do not hardcode the array size anymore * Remove extra commented statments * Remove reference to flag
- Loading branch information
1 parent
73ba9db
commit 5d6b790
Showing
18 changed files
with
220 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ to the Astropy team for designing it. | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
running_tests | ||
issues | ||
debug_numba | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
from tardis import constants as const | ||
|
||
full_relativity = True | ||
single_packet_seed = -1 | ||
temporary_v_packet_bins = None | ||
number_of_vpackets = 0 | ||
line_interaction_type = None | ||
montecarlo_seed = 0 | ||
line_interaction_type = None | ||
packet_seeds = [] | ||
disable_electron_scattering = False | ||
disable_line_scattering = False |
Oops, something went wrong.