v1.1.1#8
Merged
Merged
Conversation
- Added queries to readers about whether they natively store the number of represented histories or the incremental history counts - Added getHistoriesRead() to ParticleBalancedParallelReader to make history accounting with this reader more straightforward - Aligned APIs between ParticleBalancedParallelReader and HistoryBalancedParallelReader - Made HIstoryBalancedParallelReader constructor more efficient
…he phase space file if all particles are consumed
…n, and cache actions
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's Changed in v1.1.1
Bug Fixes
Uninitialized Variable Fixes
PhaseSpaceFileWriter(flipXDirection_,flipYDirection_,flipZDirection_now value-initialized in constructor)IAEAHeader(constantX_throughconstantWeight_now value-initialized)latchOption_inEGSphspFile::Writer(now initialized toLATCH_OPTION_2in constructor) and added missing--EGS-latch-optionCLI parsing, which was previously ignored by the WriterParallel Reader Robustness & API Improvements
New Format Capability Queries on
PhaseSpaceFileReaderhasNativeRepresentedHistoryCount()— returnstrueif the format can provide the represented history count without scanning the file (overridden by TOPAS ASCII/BINARY)hasNativeIncrementalHistoryCounters()— returnstrueif the format directly stores incremental history numbers per-particle (overridden by IAEA, penEasy, and ROOT readers)try/catchblocks with explicit capability checks for cleaner, more predictable logicHistoryBalancedParallelReaderImprovementsgetParticlesRead(threadIndex)— new method returning the number of particles read by a specific threadgetTotalParticlesRead()— new method returning the total particles read across all threadsgetTotalHistoriesRead()— new method returning the total original histories read across all threadsgetNumberOfThreads()— new method returning the number of parallel threadsmoveToParticle()calls for more efficient initializationtotalHistoriesToRead_member variabletry/catch-based represented history detection withhasNativeRepresentedHistoryCount()checkParticleBalancedParallelReaderImprovementsgetHistoriesRead(threadIndex)— new method returning the number of original histories covered by a specific thread, using one of two computation modes:hasNativeRepresentedHistoryCount()is true)getTotalParticlesRead()— new method returning the total particles read across all threadsgetTotalHistoriesRead()— new method returning the total original histories read across all threads; returnsnumberOfOriginalHistorieswhen all particles have been consumedrepresentedHistoriesRead_andincrementalHistorySum_counters per threadtry/catch-based represented history detection withhasNativeRepresentedHistoryCount()checkPython Bindings
Parallel Reader Bindings
HistoryBalancedParallelReaderandParticleBalancedParallelReadernow fully exposed to Python with all public methods (get_next_particle,peek_next_particle,has_more_particles,get_histories_read,get_particles_read,get_total_histories_read,get_number_of_threads,close, etc.)setup.pybuildVersion Introspection
particlezoo.__version__attribute exposing the version string (e.g."1.1.1")get_version_string()function returning the full version string (e.g."ParticleZoo v1.1.1")Documentation
Full Changelog: v1.1.0...v1.1.1