-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Refactor as Single Program and add Sampler for Multiple Simulations #112
Open
XanthronWriter
wants to merge
23
commits into
FireDynamics:SingleProgramAndSampler
Choose a base branch
from
XanthronWriter:add-sampler
base: SingleProgramAndSampler
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature: Refactor as Single Program and add Sampler for Multiple Simulations #112
XanthronWriter
wants to merge
23
commits into
FireDynamics:SingleProgramAndSampler
from
XanthronWriter:add-sampler
Conversation
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
Now, executing the sup programs is as simple as typing propti run <args>. To enable this functionality, the folder structure has been modified. The library and sub programs have been relocated to their respective folders. As a result, minor changes were made to the imports. Furthermore, a setup file has been included for future program distribution.
Removed requirements.txt since it is redundant because of setup.py.
Moved main() in __init__ to __main__ so the whole library does not have to be loaded. This improves performances.
Create, start, cancel and monitor jobs created with the sampler with ease. It currently only works for Slurm jobs.
- Setup now reads the __init__ file to retrieve the version number. So the the library does not get loaded and ask for packages that may not have been installed yet. - The package can now be installed properly.
rework of the job system by making it more modular so it is easier to implement a different scheduler.
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.
Changes Proposed:
Simplified Command Execution:
The command structure for propti has been enhanced to offer greater ease of use. Users can now initiate the program by simply entering
propti
followed by the desired subcommand name in the terminal. These changes have been implemented while maintaining the integrity of the existing codebase.Introduction of Sampler Functionality:
This pull request introduces an advanced sampler feature that enables the creation of multiple simulations using a single input file. Users can define various parameters to be utilized in the simulations. The sampler functionality is designed to enhance user convenience and efficiency.
Features:
The sampler feature allows the generation of multiple simulations, each with different parameters. The values of these parameters are determined by the chosen algorithm.
For each simulation created, customized job files are generated. These job files can incorporate varying settings tailored to the specific simulation.
Templates can now be copied from the provided jobs directory.
A unified command has been added to initiate and monitor all jobs simultaneously. This enhancement simplifies the management of simulation execution.