astrojarred / grbsens Goto Github PK
View Code? Open in Web Editor NEWPipeline to run ctools' cssens on different models in parellel.
License: GNU General Public License v3.0
Pipeline to run ctools' cssens on different models in parellel.
License: GNU General Public License v3.0
Implement parallelization, specifically in the execute
function of the grb
class.
multiprocess
tool
multiprocess
notes herectools
built-in parallelization commands?Once parallelization is set up (issue #1), evaluate the runtime of simulations of various observation durations.
timeit
python packageCurrently, if the output and log folders do not exist, it raises an error. This is especially a problem when running in parallel where it just starts lagging.
Solution:
Automatically create the folders if the do not already exist.
Use gammapy instead of ctools.
Add a progress bar with the tqdm
package.
It would have to play nice with multiprocessing
as well as work in both the notebook and command line.
Since the range of times that will be looped over is quite large (e.g. four orders of magnitude), we need to implement a variable time step.
Possible solutions include:
We've seen some strange fluctuations in the grbsens output.
For example, here are the sensitivities with integration times from 1-60s using the North_z60_0.5h
IRF:
There is a strange dip from 8-9s and again from 16-17s. In crosschecks by others, this issue has not been encountered.
I have a hunch it might have something to do with ctools
and python's multiprocessing
package together, as I've noticed the two don't always play nice together.
I plan to run the following tests in order to better understand the situation:
ray
packageUpdate formatting to match original outputs form B. Patricelli.
Now if you run a simulation in the same cwd, cssens
output and log files will get overwritten. This isn't great if you're running multiple similar simulations in a loop (i.e. changing one input parameter).
Let's try and add the ability to name output files manually.
Perhaps the same string can be used for both the ctools automatic outputs as for the grbsens table outputs.
What the title says. Right now, a series of functions must be called, but it would be nice to add a command line functionality as well.
In the documentation, include:
Currently there is a very simple plot_results
function. Ideally you could:
Following Issue #3, it might be useful to add an automatic log-scale time step. Perhaps the user would need to specify how many simulations to calculate within each decade.
Sometimes if you're running a large number of different simulations, some have already been run another time. Or maybe you just want to reload the classes for plotting purposes.
Add a read_results
or load_results
option to grb.execute
in order to read the a csv file matching the outfile name.
When setting the trio of input parameters related to the time steps, namely num_jobs
, total_time
and delta_t
, there should be a more consistent check between the three.
Possible solutions include:
num_jobs
parameter (leave it to be inferred by the user)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.