Giter Site home page Giter Site logo

grbsens's People

Contributors

astrojarred avatar codacy-badger avatar dependabot[bot] avatar

Watchers

 avatar

grbsens's Issues

Automatically create output folders

Currently, 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.

Add a visual progress bar

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.

Add variable time step

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:

  • Add a log time step (easy, consistent, but not that flexible)
  • Specify regions in the time domain and what the time step should be in each region
  • both

Fluctuations in the sensitivity vs time output curves

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:
download-60

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:

  • Try running the setup exactly as is on a different machine
  • Try running the same setup in series on the both the same and different machines
  • Try rewriting the parallelization using the ray package

Update output csv formatting

Update formatting to match original outputs form B. Patricelli.

  • include units in comment line
  • spaces, not commas
  • remove unnecessary information
  • change order of columns

Give custom names for ctools output and log files

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.

Add command line functionality

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.

Update documentation

In the documentation, include:

  • installation instructions
  • overview of simulation chain and outputs
  • use cases
  • user functions, their input parameters and outputs

Add a log-scale timestep.

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.

Load results from file instead of executing simulations again

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.

Broken handling input parameters

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:

  • Update the input checks
  • Remove the num_jobs parameter (leave it to be inferred by the user)
    • In any case, this might get confusing once parallelization is implemented (See #1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.