Skip to content
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

Add update_environment function to manage.sh #170

Closed
wants to merge 923 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jul 19, 2017

  1. Configuration menu
    Copy the full SHA
    86d881c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    66e7c80 View commit details
    Browse the repository at this point in the history
  3. Use of DataVectors and PmapVectors in cities.

    Traffic of arguments in function events_loop for the various cities
    expressed more concisely  with the user of DataVectors and PmapVectors
    containers.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    49805dc View commit details
    Browse the repository at this point in the history
  4. Split HitCity into KrCity and HitCity

    A KrCity computes and writes KrEvents, e.g, point-like events. This
    means that the baricenter integrates all the time slices for a given
    SiPM. Instead, a HitCity computes and writes HitEvents, in which the
    baricenter (or any other position-finding algo) is computed
    slice-by-slice. A HitCity is derived from a KrCity since both of them
    use the same file_loop() function (which starts from pmaps).
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    22aa1a0 View commit details
    Browse the repository at this point in the history
  5. rebin_s2si uses new Peak class

    Alejandro Botas authored and jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    9c3aba1 View commit details
    Browse the repository at this point in the history
  6. Add traceback after printout if except

    Without the exit, the command-line test was passing with pretty greens
    when the city was not found (e.g, a captured ModuleNotFound, print
    that pytest captures and digests without telling anything and happy
    ending in spite of wrong situation). Adding traceback still gives
    printout when running in normal mode but provides diagnostics of the problem
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    75f165f View commit details
    Browse the repository at this point in the history
  7. Cosmetics

    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    752d882 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9b31ccf View commit details
    Browse the repository at this point in the history
  9. Run 10 events by dafault in Penthesilea

    The first few events are rejected by selection in the test sample in
    Penthesilea, running 10 events guarantees that the city runs fully.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    3f9eba7 View commit details
    Browse the repository at this point in the history
  10. work in progress

    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    349221c View commit details
    Browse the repository at this point in the history
  11. write sipm_ids_and_charges_in_slice with test

    this function allows takes an s2sid_peak and slice number and returns
    the sipm ids of sipms in that s2si, with their charges at slice number
    Alejandro Botas authored and jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    e6a9bb9 View commit details
    Browse the repository at this point in the history
  12. cythonize sipm_ids_and_charges_in_slice

    Alejandro Botas authored and jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    a0d3b51 View commit details
    Browse the repository at this point in the history
  13. fix tests for rebin_s2si

    Alejandro Botas authored and jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    a8a2bb1 View commit details
    Browse the repository at this point in the history
  14. Add pmaps_functions_c to base.

    This is needed to use the corresponding cython function rather than
    previous python version.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    2eb9dd7 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    1a9d5ca View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    dae8bc0 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    d6bceab View commit details
    Browse the repository at this point in the history
  18. Modify functions sipm_ids_and_charges_in_slice.

    Include in the list only slices with positive charge.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    874cf49 View commit details
    Browse the repository at this point in the history
  19. Fix function compute_xy_position

    One has to take into account the possibility that the slice results in
    an empty SiPM list. This is handled via SipmEmptyList exception.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    f5e2b05 View commit details
    Browse the repository at this point in the history
  20. Take into account that clusters for a given slice_no can be empty.

    In this case, the slice is looped away.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    4e5a0fc View commit details
    Browse the repository at this point in the history
  21. Remove Cecilia from cities.

    Cecilia is removed from cities. The simulation of the trigger will be
    done shortly in Diomira.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    f113f36 View commit details
    Browse the repository at this point in the history
  22. Add NN (NoNumber) with value -999999

    Although it may be argued that we reinvent the wheel, the use of a
    numerical NN is quite convenient when writing/reading pytables to/from
    disk, as a proxy for NaN.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    1fb9928 View commit details
    Browse the repository at this point in the history
  23. Cluster takes std (not rms) as argument.

    Cluster takes the std (not the rms) as argument. A number of
    properties (Xrm and such) are modified accordingly.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    097cdaf View commit details
    Browse the repository at this point in the history
  24. Various tests involving cluster fixed.

    The change of definition in Cluster (takes std, not rms) requires to
    fix a number of tests.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    6900bc6 View commit details
    Browse the repository at this point in the history
  25. Redefined conf. files for kr_city and hit_city.

    hit_city inherits now from kr_city. Config. files modified accordingly.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    d157523 View commit details
    Browse the repository at this point in the history
  26. Add functionality to KrCity.

    Dorothea is now derived from KrCity, which centralizes the operations
    of a city which computes and writes a KrEvent. In particular, in a
    KrCity the position of the particle is computed integrating over all
    temporal samples in SiPMs, but otherwise using the same
    reco-algorithms (configurable) that can be used in HitCity (where
    position is computed slice-by-slice).
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    2e8a2f4 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    eb1171a View commit details
    Browse the repository at this point in the history
  28. Dorothea simplified.

    Like other cities before her, Dorothea has been further simplified,
    transfering most of its functionality to the base. In particular,
    KrEvent is no longer created by Dorothea (the proper place to create a
    KrEvent is in KrCity). Tests have been modified accordingly.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    28de639 View commit details
    Browse the repository at this point in the history
  29. Move critical functionality of Penthesilea to the base.

    Penthesilea follows the same fate that other cities before, and gets
    leaner and thinner (more invisible), transfering functionality to the
    base. Following the existing model, it is the HitCity (and not a
    derived slave) the one that creates the HitEvent.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    d11efb7 View commit details
    Browse the repository at this point in the history
  30. Eliminate "Persistent" classes.

    The use of "Persistent" class is unnecessary and somewhat
    confusing. Following the model of pmap classes, all other "persistent"
    classes now include a method store that is used by the corresponding
    writer for persistent storage. Thus, classes PersistentHitCollection
    and PersistentKrEvent have been sent to Valhaya.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    f8411bf View commit details
    Browse the repository at this point in the history
  31. Propagate elimination of "Persistent".

    Several tests use now HitCollection and KrEvent rather than
    PersistentHitCollection etc. Notice that instantiation to persistent
    classes is no longer done in Dorothea or Penthesilea, but in the base.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    26698a5 View commit details
    Browse the repository at this point in the history
  32. Cosmetics and cleaning old wood.

    Dead code removed, some cosmetics applied.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    a47410c View commit details
    Browse the repository at this point in the history
  33. Fix a bug on dorothea.conf

    Dorothea must call kr_city.con (it was calling hit_city.conf)
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    56413fd View commit details
    Browse the repository at this point in the history
  34. Corona algorithm raises exceptions when needed.

    Some times Corona may find an empty list, in which case an exception
    is raised.
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    aef8abc View commit details
    Browse the repository at this point in the history
  35. Change name: test_xy_algo to xy_algo_test

    To follow the standard convention
    jjgomezcadenas committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    c931c51 View commit details
    Browse the repository at this point in the history
  36. Cities dev

    This PR simplifies the structure of the cities, making then one step
    closer to the goal of being truly invisibles. The most important
    features are:
    
      1-Most cities have the same run() method, that now goes to the
        base (only Zaira needs to re-write the run() method).
    
      2- Cities reading RWF (Isidora and Irene) have the same file_loop()
        method, that now goes to their common base.
    
      3-Cities reading PMAPS (Dorothea and Penthiselea) have the same
        file_loop() method that now goes to their common base (Dorothea
        and Penthiselea both inherit now from HitCity).
    
      4-A counter class allows easy bookeping and common go() method.
    
    Overall, the concrete cities are much thiner and simpler, with
    considerable reduction of noise and sizeable repayment of TD).
    jjgomezcadenas authored and jmbenlloch committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    c6f1377 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2017

  1. write and test func to ensure s2d, s2sid have same peaks

    s2si automatically set its peaks to be the peaks in s2d even if the
    s2sid did not have all those peaks. this has been fixed
    Alejandro Botas authored and Alejandro Botas committed Jul 20, 2017
    Configuration menu
    Copy the full SHA
    024b39e View commit details
    Browse the repository at this point in the history
  2. fixes bug in find_s12 that could poorly initialize candidate peak

    find_s12 sometimes initialized the start of the first peak to the
    incorrect time. this has been fixed and a test has been added.
    Alejandro Botas committed Jul 20, 2017
    Configuration menu
    Copy the full SHA
    314b532 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2017

  1. Configuration menu
    Copy the full SHA
    84459d1 View commit details
    Browse the repository at this point in the history
  2. make sure cython rebin_array returns nparray not memview

    Alejandro Botas committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    3581313 View commit details
    Browse the repository at this point in the history
  3. address unshared peaks in rebin_s2si_peak

    Alejandro Botas committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    7893243 View commit details
    Browse the repository at this point in the history
  4. stop penthesilea from printing garbage

    a function in pmap_functions_c was printing a few integers for each
    event
    Alejandro Botas committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    523290e View commit details
    Browse the repository at this point in the history
  5. move load_dst to io.dst_io from reco.dst_functions

    Alejandro Botas committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    1380c2c View commit details
    Browse the repository at this point in the history
  6. Cities debug

    S2Si sets its peaks to be those present in s2d. This is unacceptable
    when the sipms do not have signal during the one or more of the peaks
    in s2d. this has been fixed by check_s2d_and_s2sid_share_peaks in
    pmaps.pyx.
    Alejandro Botas authored and jmbenlloch committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    25f8d79 View commit details
    Browse the repository at this point in the history
  7. Add daemons to IC

    Daemons (see Nother Lights) are people's (external) souls in Lyra's
    world. In IC daemons are slave (or companions) objects that can be
    invoked from cities.
    
    Consider for example the problem to add monitoring histograms to a
    given city. One solution is to write all the monitoring code in the
    city itself. Master would not like that for sure. The city becomes
    immediately cumbersome, and the code booking and filling histograms
    proliferates quickly. Plus, monitoring is tipically not stable, since
    the critical histograms tend to vary with time.
    
    The alternative is that the city calls a monitoring script (ms). At init
    level, the city will call the init level of the ms (say to book
    histograms). Then, at run level the city calls the run method of the
    ms (fill histograms) and finally, at at the end level the city calls
    the end method of the ms (save histograms to disk).
    
    The scheme is quite general, and applies to any type of script that a
    given city wants to invoke to delegate any task. Thus, a daemon is
    defined as an object with an __init__() method, a run method and an
    end method.
    
    Daemons live in the new daemons directory (package) in IC. In this
    commit, we define the base class and two toy daemons (Lyra and
    Asriel). The daemons are defined by the variable deamons in the
    corresponding city, which is associated to a list of names, each name
    representing one daemon (the city will invoke all of them). The code
    for daemon invocation is also defined in this commit.
    jjgomezcadenas authored and jmbenlloch committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    b8e3dc9 View commit details
    Browse the repository at this point in the history
  8. Add daemon capability to base_cities

    Method run can now read the list of daemons, invoke them and set them
    to the class instances. In addition, run calls now the metod go and
    the method end.
    
    Method end calls the end method of all daemons and returns the counter
    dictionary.
    jjgomezcadenas authored and jmbenlloch committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    a137a26 View commit details
    Browse the repository at this point in the history
  9. Add a test to show that irene with daemons runs.

    In the spirit of testing the command line, this test runs irene with a
    configuration file that invokes two toy daemons, Lyra and Asriel.
    jjgomezcadenas authored and jmbenlloch committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    80058ff View commit details
    Browse the repository at this point in the history
  10. Several tests modified to accept new format.

    In several tests we need to change cnt = city.run() by
    city.run()
    cnt = city.end()
    jjgomezcadenas authored and jmbenlloch committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    13c07a4 View commit details
    Browse the repository at this point in the history
  11. Daemons

    Add daemons to IC
    
    Daemons (see Northern Lights) are people's (external) souls in Lyra's
    world. In IC, daemons are slave (or companions) objects that can be
    invoked from cities.
    
    Consider for example the problem to add monitoring histograms to a
    given city. One solution is to write all the monitoring code in the
    city itself. Master forbids! The city becomes
    immediately cumbersome, and the code booking and filling histograms
    proliferates quickly. Plus, monitoring is typically not stable, since
    the critical histograms tend to vary with time.
    
    The alternative is that the city calls a monitoring script (ms). At init
    level, the city will call the init level of the ms (say to book
    histograms). Then, at run level the city calls the run method of the
    ms (fill histograms) and finally, at at the end level the city calls
    the end method of the ms (save histograms to disk).
    
    The scheme is quite general, and applies to any type of script that a
    given city wants to invoke to delegate any task. Thus, a daemon is
    defined as an object with an init() method, a run method and an
    end method.
    
    Daemons live in the new daemons directory (package) in IC. In this
    PR we add to IC the functionality to handle daemons.
    
      1-The config files for cities can now define the presence of daemons
        by adding a variable called (surprise!) daemons which is set to a
        list of names (see irene_example_daemon_config.conf)
    
      2-The method drive in base city parses the names and calls function
        invoke_daemons() to return instances of the corresponding classes,
        which must be defined in the daemon directory (see examples
        lyra.py and asriel.py).
    
      3-Also in drive, the instances of the daemons are set as attributes
        of the cities, which can now call them.
    
      4-A new method, in base_cities, called end() calls the end() method
        of the daemons. The run method of the daemons are called by the
        concrete cities.
    jjgomezcadenas authored and jmbenlloch committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    e790e10 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2017

  1. Refactor base_cities:

    Base cities has been refactored to introduce three new cities:
    
    1) RawCity: a city that reads RawData.
    2) PmpCity: a city that reads PMAPS.
    3) DstCity: a city that reads DSTs (KDSts), formely called MapCity.
    
    Inheritance from those cities provides common functionality for the
    file_loop() method. Thus, Irene, Isidora and Diomira, all are
    RawCities (although Diomira reads MCRD while Irene and Isidora read
    RWF), Dorothea and Penthesilea are PmpCities and Zaira is so far the
    only example of a DstCity (but there will be likely others).
    
    The cities still keep a linear scheme of inheritance, since
    DeconvolutionCity inherits from RawDataCity propagating the
    functionality to Irene and Isidora (both of them Deconvolution cities)
    while KrCity inherits from DstCity, propagating the functionality to
    Dorothea and Penthesilea.
    
    The base clase formely called SensorResponseCity has been renamed to
    MonteCarloCity. It inherits from RawCity (since it reads raw data) and
    provides the functionality for Sensor Response Simulation AND Trigger
    simulation.
    jjgomezcadenas committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    b8b9ae4 View commit details
    Browse the repository at this point in the history
  2. Refactor configuration files.

    Configuration files have been refactored to reflect the new
    inheritance structure of cities. Thus, raw_data_city.conf includes
    city.conf while deconvolution_city.conf now includes
    raw_data_city.conf, and son on.
    jjgomezcadenas committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    abfc6e8 View commit details
    Browse the repository at this point in the history
  3. Move merge_two_dicts from base_cities to core_functions.

    This general-use function was in the wrong place and has been
    relocated.
    jjgomezcadenas committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    8367cb9 View commit details
    Browse the repository at this point in the history
  4. Add a new exception.

    There are two types of Raw Waveforms, RWF and MCRD. A RawCity defines
    by configuration which type of raw waveform is using. The exception
    UnknownRWF is raised if an unknown type of Raw Waveform (other than
     or MCRD)
    jjgomezcadenas committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    0623530 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1e0aa6c View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2017

  1. Further refactoring of base_cities

    This commits continues the refactoring of base_cities.
    The most important addition is the TriggerEmulationCity, which allows
    the emulation of the trigger. Class MonteCarloCity inherits now from
    TriggerEmulationCity (which provides the capability to read Raw
    Waveforms), and Diomira inherits from MoteCarloCity (and thus from
    TriggerEmulationCity). This scheme allows Diomira to read raw
    data (MCRD), simulate sensor response (functionality from
    MonteCarloCity) and emulate trigger (functionality from
    TriggerEmulationCity).
    
    In addition, this commit includes:
    
    1. legal and credits
    2. cosmetics
    3. re-organization of methods
    4. Class PmpCity is rebaptized PCity (to avoid confusion with
    PmapCity)
    jjgomezcadenas committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    ac74c44 View commit details
    Browse the repository at this point in the history
  2. Complete TriggerFilter module.

    The Trigger filter module selects events that pass the trigger. This
    commits fixes bugs and completes the code that is now passing tests.
    jjgomezcadenas committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    70a748c View commit details
    Browse the repository at this point in the history
  3. Add new exceptions.

    Exceptions FileLoopMethodNotSet and EventLoopMethodNotSet are added to
    the IC suite. Those exceptions are triggered if the file_loop (or
    event_loop) method defined in the base class are nor superseeded.
    jjgomezcadenas committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    3c4e710 View commit details
    Browse the repository at this point in the history
  4. find_s12 function has no optional parameters.

    All parameters in find_s12 function must be provided by the calling
    functions find_s1 and find_2. Consequently, no optional parameters
    have been left.
    jjgomezcadenas committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    0a84535 View commit details
    Browse the repository at this point in the history
  5. Refactor Diomira

    Diomira has been refactored so that, in addition to simulate sensor
    response it can now emulate the S2 trigger (and select events that
    pass the trigger). Tests have been fixed accordingly.
    jjgomezcadenas committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    59cf1be View commit details
    Browse the repository at this point in the history
  6. Configuration files adapted.

    All configuration files have been adapted to reflect the changes in
    base_cities and in Diomira and friends.
    jjgomezcadenas committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    ad01428 View commit details
    Browse the repository at this point in the history
  7. New configuration file added.

    File trigger_emulation_city.conf now defines the trigger emulation
    jjgomezcadenas committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    61e51df View commit details
    Browse the repository at this point in the history
  8. Fixed bug in diomira_test.

    PATH_OUT was pointing to the wrong spot.
    jjgomezcadenas committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    a98aded View commit details
    Browse the repository at this point in the history
  9. Diomira cecilia

    This PR transfers to Diomira the functionality intended for Cecilia
    who knows rests in peace until next incarnation. The PR introduces
    also a number of improvements, whose need has been revealed by the
    need to emulate the trigger. Specifically in this PR:
    
    Base cities has been refactored to introduce three new cities:
    
        RawCity: a city that reads RawData.
        PCity: a city that reads PMAPS.
        DstCity: a city that reads DSTs (KDSts), formely called MapCity.
    
    Inheritance from those cities provides common functionality for the
    file_loop() method. Thus, Irene, Isidora and Diomira, all are
    RawCities (although Diomira reads MCRD while Irene and Isidora read
    RWF), Dorothea and Penthesilea are PCities and Zaira is so far the
    only example of a DstCity (but there will be likely others).
    
    The cities still keep a linear scheme of inheritance, since
    DeconvolutionCity inherits from RawCity propagating the
    functionality to Irene and Isidora (both of them Deconvolution cities)
    while KrCity inherits from DstCity, propagating the functionality to
    Dorothea and Penthesilea.
    
    Furthermore this PR adds a TriggerEmulationCity, which allows
    the emulation of the trigger. The base clase formerly called
    SensorResponseCity has been renamed to MonteCarloCity and made to
    inherit from TriggerEmulationCity (which provides the capability to
    read RawWaveforms). Finally, Diomira inherits from MoteCarloCity (and
    thus from TriggerEmulationCity). This scheme allows Diomira to read
    raw data (MCRD), simulate sensor response (functionality from
    MonteCarloCity) and emulate trigger (functionality from
    TriggerEmulationCity).
    
    Configuration files have been refactored to reflect the new
    inheritance structure of cities.
    jjgomezcadenas authored and jmbenlloch committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    e6c0dca View commit details
    Browse the repository at this point in the history
  10. Take negative run numbers for MC

    If the user specifies a negative run number, the result obtained will
    be the same as the absolute value of that run number. The negative
    sign implies that config file is for MC.
    jmbenlloch committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    d3a7f8b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4af511e View commit details
    Browse the repository at this point in the history
  12. Take negative run numbers for MC

    This PR changes the way we use the DB. Instead of using just run
    number 0 for MC, now the idea is to put a negative number. The
    configuration obtained will be the same as the one from the same
    positive run number. The negative sign will indicate that is an MC
    file.
    jmbenlloch committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    6c2c593 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2017

  1. Do not take rebin defaults for S1 and S2.

    For the usual application (search for S1 and S2 over the calibrated
    sum), S1 is not rebinned and S2 is rebinned to 1 mus. However there
    are other user cases. Specifically, when emulating the trigger, the
    search for peaks over individual PMTs is done with waveforms that are
    deconvoluted but not rebinned. Thus, it is a bad idea to hard-wire the
    defaults. With this commit they are introduced as parameters.
    jjgomezcadenas committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    e04f994 View commit details
    Browse the repository at this point in the history
  2. Cosmetics

    jjgomezcadenas committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    738a91d View commit details
    Browse the repository at this point in the history
  3. Adapt configuration files for diomira and friends.

    The configuration file of diomira, pamp_city and
    trigger_emulation_city are adapted to reflect correct values for all
    parameters.
    jjgomezcadenas committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    dba9d4e View commit details
    Browse the repository at this point in the history
  4. Fix a nasty bug in diomira

    For unknown reasons, we were passing the wrong
    calibration (sipm_adc_to_pes) constant to the simulation of the
    pmts. Now fixed!
    jjgomezcadenas committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    4e10f61 View commit details
    Browse the repository at this point in the history
  5. Pass run_number to FEE and friends.

    Diomira simulates the response of the PMTs FEE. It uses the data base
    to pass the various calibration constants needed, including
    deconvolution constants. However, it was assuming that run_number for
    MC was *always* zero, as per the previous convention. This has changed
    now (MC run number is negative and will match the corresponding run
    number in data) and thus it is needed to propagate run_number all the
    way up to FEE.
    jjgomezcadenas committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    7ace9e4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    51f0f0b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b4d2a40 View commit details
    Browse the repository at this point in the history
  8. Diomira fix

    This small PR fixes a minor (major) issue.
    
    DIOMIRA simulates both the response of the sensors and the
    trigger. When emulating the response of the trigger, one is simulating
    the search on the FPGA on peaks in individual PMTs. This search is
    performed with the same algos used to search s1 and s2 in the
    calibrated sum, but the individual PMTs are neither calibrated, nor
    rebinned.
    
    Consequently, the search for s1 and s2 must allow the possibility that
    the waveform is not rebined (previously we never rebinned s1 but
    always rebinned s2). This is done in this PR, together with defining
    proper parameters for DIOMIRA.
    jjgomezcadenas authored and jmbenlloch committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    d5524c9 View commit details
    Browse the repository at this point in the history
  9. Move class Voxel to event_model.

    Class Voxel is moved to event_model where it belongs.
    jjgomezcadenas committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    644ab06 View commit details
    Browse the repository at this point in the history
  10. Re-factor Voxel-Hit-Cluster

    Voxel, Hit and Cluster are all similar beasts. This is expressed by
    defining a common ancestor BHit (actually BHit is equal to Voxel, but
    we keep a separate definition for clarity). The inheritance chain
    enhances the common structure of the objects and avoid duplications.
    jjgomezcadenas committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    86b8f8e View commit details
    Browse the repository at this point in the history
  11. Change pos to posxy in Cluster.

    The refactoring of Cluster-Hit-Voxel has shown a feature that was
    identified long ago and then forgotten. Namely, in a cluster, the
    field called pos should be called posxy (since it describes a xy
    point). This is now necessary to avoid conflict with the pos property
    which is (ast it should) xyz.
    jjgomezcadenas committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    6fdad42 View commit details
    Browse the repository at this point in the history
  12. New test of voxel class and adapt old tests.

    A new test for Voxel has been added and all the tests have been
    adapated (in particular to the change: pos to posxy in Cluster).
    jjgomezcadenas committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    f4a1e72 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    cafc475 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    5ef0daf View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    822d625 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    e937e0c View commit details
    Browse the repository at this point in the history
  17. make function compute_csum_and_pmaps private.

    This function is used internally in tests, but function
    compute_pmaps_from_rwf should be used in the API instead. Thus, it is
    made private. Tests are modified accordingly.
    jjgomezcadenas committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    291f9f9 View commit details
    Browse the repository at this point in the history
  18. Pass correct named tuple to compute_pmaps_from_rwf

    CalibVectors rather than CalibParams
    jjgomezcadenas committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    2f14396 View commit details
    Browse the repository at this point in the history
  19. Conditional emulation of trigger.

    The current version of trigger emulation only emulates trigger on
    S2. The condition of calling the emulation only if trigger_type is set
    to S2, permits NOT to call the trigger emulation if the trigger
    is set on S1 (or the user does not want to emulate the trigger)
    jjgomezcadenas committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    fdb9937 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2017

  1. Configuration menu
    Copy the full SHA
    7fcc56d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    327c737 View commit details
    Browse the repository at this point in the history
  3. Delete cecilia.conf

    Cecilia has merge her soul with that of Diomira and needs to further
    configuration.
    jjgomezcadenas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    1b37d8e View commit details
    Browse the repository at this point in the history
  4. Cosmetics

    jjgomezcadenas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    c258815 View commit details
    Browse the repository at this point in the history
  5. Protection agains empty events.

    The Monte Carlo simulation produces occasional empty events, which are
    characterized by flat waveforms running within the noise line. Irene
    had already implemented a protection against those events, which
    required that the sum of the zero-supressed waveforms were not
    zero. However, a closely related cousin is an event whose
    zero-supressed waveform yields a small number (due to noise
    fluctuations) but still yields no s1 or s2 indexes on the search (e.g,
    once a cut on 1-2 pes is imposed the waveform happens to be empty).
    
    This commit expands the defence against such type of events, organizes
    it in a function and adds counters for classification of the zombies.
    jjgomezcadenas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    79732cd View commit details
    Browse the repository at this point in the history
  6. Penthesilea extend

    This PR includes fixes needed to extend the functionality of
    Penthesilea (so that it can call Paolina). The most significant change
    is the re-factoring of the Voxel-Hit-Cluster classes that are now
    organised consistently. All classes are derived from a BHit
    class (which defines a base-hit (x,y,z,E) and is identical to Voxel,
    which keeps a different name for clarity).
    
    An old-standing issue related with Cluster has been fixed. Cluster had
    a "pos" attribute which returned an (x,y) vector, while a "pos"
    attribute of a hit should return an (x,y,z) vector, has it happens
    now. The old "pos" in Cluster has been renamed to "posxy".
    
    In addition a number of small miscellaneous fixes and improvements
    have been implemented.
    jjgomezcadenas authored and jmbenlloch committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    f5aef7b View commit details
    Browse the repository at this point in the history
  7. add class S2Pmt

    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    81f0e1f View commit details
    Browse the repository at this point in the history
  8. write _find_peaks for more modular _find_s12

    find_s12 is too big for no good reason. By splitting it up we are able
    to easily find the s2pmt (s2s of the individual pmts). The code is
    also more modular legible testable.
    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    2d958fe View commit details
    Browse the repository at this point in the history
  9. add function extract_peaks_from_waveform (last part of find_s12)

    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    e27b476 View commit details
    Browse the repository at this point in the history
  10. test select_peaks_of_allowed_length

    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    7200d24 View commit details
    Browse the repository at this point in the history
  11. test to make sure find_peaks finds the correct peak indx bounds

    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    27ee5d9 View commit details
    Browse the repository at this point in the history
  12. test find_peaks does not find_peaks when index spaced by 1 + stride

    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    f9ab034 View commit details
    Browse the repository at this point in the history
  13. test extract_peaks_from_waveforms

    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    6b8c1ff View commit details
    Browse the repository at this point in the history
  14. find_peaks does not have kwarg length

    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    22f1fea View commit details
    Browse the repository at this point in the history
  15. cythonize find_peaks

    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    c7c3edd View commit details
    Browse the repository at this point in the history
  16. find_peaks DOES have kwarg length

    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    29f646d View commit details
    Browse the repository at this point in the history
  17. cythonize the rest of the modular find_s12 functions

    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    579a35e View commit details
    Browse the repository at this point in the history
  18. test cython functions

    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    97bd553 View commit details
    Browse the repository at this point in the history
  19. write and test get_s2pmtd

    Alejandro Botas authored and Alejandro Botas committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    fdbefed View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2017

  1. imporove s2pmt methods

    Alejandro Botas authored and Alejandro Botas committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    6b2f161 View commit details
    Browse the repository at this point in the history
  2. make sure modular functions perform identically to find_s12

    Alejandro Botas authored and Alejandro Botas committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    c80aa92 View commit details
    Browse the repository at this point in the history
  3. add more tests for S2Pmt methods

    Alejandro Botas authored and Alejandro Botas committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    c9cb9bf View commit details
    Browse the repository at this point in the history
  4. improved check that s2d and s2pmtd are consistent in S2Pmt

    Alejandro Botas authored and Alejandro Botas committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    d8623b6 View commit details
    Browse the repository at this point in the history
  5. add ic exception inconsistent s2d and s2pmtd

    upon initialization of an S2Pmt, we assert that the energies in each
    s2d peak are the sum of the energies across pmts in that peak in
    s2pmtd, for each time bin.
    Alejandro Botas authored and Alejandro Botas committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    167a3dd View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2017

  1. make find_peaks, select_peaks_..., and extract_peaks... cpdef

    Alejandro Botas authored and Alejandro Botas committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    d7b44b2 View commit details
    Browse the repository at this point in the history
  2. have python find_s12 use modular functions

    Alejandro Botas authored and Alejandro Botas committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    0e5074d View commit details
    Browse the repository at this point in the history
  3. accomodate rebin flag, for now

    Alejandro Botas authored and Alejandro Botas committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    9125c07 View commit details
    Browse the repository at this point in the history
  4. make select_peaks_of_allowed_length private

    Alejandro Botas authored and Alejandro Botas committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    9e5ee94 View commit details
    Browse the repository at this point in the history
  5. Functions for finding and using s2s from individual pmts

    These additions allow IC to find and interact with the s2s of individual pmts.
    
    find_s12 has been broken up into 3 functions find_peaks,
    select_peaks_of_allowed_length, and extract_peaks_from_waveform (in
    python and cython).
    find_s12 was too big. First it found peaks, then it selected peaks of
    the correct length, then it put those peaks into a dictionary.
    Without changing the inputs/outputs, adding flags, and other technical
    debt, find_s12 would not allow us to efficiently find the s12s of
    individual pmts.
    Note finding the s2s of individual pmts is not quite as simple as it
    first appears since we need to rebin each pmt cwf in the same exact
    way we rebinned the csum, so that the rebinned time bins of the s2pmtd
    match and sum to s2d for each peak.
    Also, breaking find_s12 into modular functions allows for much better
    testing.
    
    a class, S2Pmt has been added to pmaps.pyx. It is initialized with
    dictionaries s2d and s2pmtd which maps peak_no -- > [[pmt0E], [pmt1E],
    ..., [pmtnE]]. People should look at this and make sure they like the
    basic structure.
    
    a function get_s2pmtd has been added to peak functions. It takes as
    input CWF and peak_bounds. peak_bounds is a dictionary mapping peak_no
    --> i_start, i_stop of the s2 peaks found in csum. Note peak_bounds is
    the output of find_peaks, and get_s2pmtd makes uses
    extract_peaks_from_waveform to construct s2pmtd --> tearing find_s12
    apart was worth it.
    
    tests for all this stuff
    
    -----------
    I have only created the free functions, I have not yet started messing
    around with any of the cities or base cities, so I have not deleted
    find_s12. If people are happy i or whoever can update pmap_city and
    whatever else to use the new functions.
    Alejandro Botas authored and jmbenlloch committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    2da7d24 View commit details
    Browse the repository at this point in the history
  6. get rid of redundant rebin flag, we already have rebin_stride

    our find s1/s2 algorithms took as input both the amount we wanted to
    rebin, rebin_stride, and a flag, rebin. The flag is redundant
    Alejandro Botas authored and Alejandro Botas committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    9a3ef29 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2017

  1. Configuration menu
    Copy the full SHA
    493e856 View commit details
    Browse the repository at this point in the history
  2. Check event number in mc_track_writer

    When reading MCTrack table from input file, one has to check event
    number in the input row to know when to stop copying rows.
    jmbenlloch committed Aug 9, 2017
    Configuration menu
    Copy the full SHA
    d6f37df View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2017

  1. Fix event number in MCTrack table

    There was a bug in the mc_track_writer that was setting all event
    numbers to zero. It is now fixed and one test has been updated to
    check this condition.
    
    This closes next-exp#287.
    jmbenlloch committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    2f94a6e View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2017

  1. make pf.get_s2pmtd --> pf.get_s12pmtd

    Alejandro Botas authored and Alejandro Botas committed Aug 18, 2017
    Configuration menu
    Copy the full SHA
    7f17cf0 View commit details
    Browse the repository at this point in the history
  2. change S2Pmt(S2) --> S12Pmt(S12)

    The same class can also be used to hold the S1s of individual pmts
    Alejandro Botas authored and Alejandro Botas committed Aug 18, 2017
    Configuration menu
    Copy the full SHA
    9ec76d6 View commit details
    Browse the repository at this point in the history
  3. change name of exception to InconsistentS12dPmtsd

    Alejandro Botas authored and Alejandro Botas committed Aug 18, 2017
    Configuration menu
    Copy the full SHA
    5badd04 View commit details
    Browse the repository at this point in the history
  4. add classes S1Pmt and S2Pmt

    Alejandro Botas authored and Alejandro Botas committed Aug 18, 2017
    Configuration menu
    Copy the full SHA
    c417b0f View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2017

  1. Allow icusers to study s1s of individual pmts

    Before we could only look at the s2s of individual pmts, even though
    the code had all the functionality necessary to look at the s1s of
    individual pmts.
    
    Even though we will not typically use/save this data, it is useful for
    some analysis and can help us better understand our detector and make
    cool plots, and it costs nothing.
    Alejandro Botas authored and jmbenlloch committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    9866740 View commit details
    Browse the repository at this point in the history
  2. Add methods contains and repr to minmax.

    In particular, method contains returns true if a given number is in
    the closed interval defined by the minmax
    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    695bdf5 View commit details
    Browse the repository at this point in the history
  3. Add new functions to Peak.

    total_energy (width, height) _ above_threshold return the energy,
    width and height of the peak counting only the samples above a given
    threshold.
    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    394f0c2 View commit details
    Browse the repository at this point in the history
  4. Refactor s1s2_filter.

    This filter has been refactored using the high-level interface of s1,
    s2 and s2si rather than the low-level dictionaries previously used. In
    addition, typehints have been added to some of the functions.
    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    0cfa55e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    73e4c05 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b40fef3 View commit details
    Browse the repository at this point in the history
  7. minor improvements to code.

    Added/fixed _str__ methods, fixed a parameter wrongly set in
    s12_selector.conf
    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    c0ba02c View commit details
    Browse the repository at this point in the history
  8. Import PMAPS classes to event_model.

    This is done for clarity, so that all event_model classes can be
    imported from event_model.
    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    438f5f0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    58faec3 View commit details
    Browse the repository at this point in the history
  10. Add voxels_from_track_graph function to paolina_functions.

    The function is added to return a list of voxels from the nodes of
    the (track) graph.
    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    9ba849a View commit details
    Browse the repository at this point in the history
  11. Add new classes representing Tracks and Blobs.

    Classes VoxelCollection, Track, Blob and TrackCollection have been
    added.
    
    A VoxelCollection is simply a collection of voxles.
    A Track is a subclass of VoxelCollection defined by two features:
    a collection of connected voxels and a pair of blobs,
    defining its extremes.
    
    A Blob is also a VoxelCollection, defining the set of Voxels in a
    given radius near the extrema of the track.
    
    A TrackCollection is a (writable) collection of Voxels.
    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    7f96996 View commit details
    Browse the repository at this point in the history
  12. Add a text to function voxels_from_track_graph.

    Test checks correct behaviour of the function (which has been fixed
    thanks to test).
    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    4fa461b View commit details
    Browse the repository at this point in the history
  13. Improvements and additions to paolina_functions.

    function voxels_within_radius returns a list of voxels whose distances
    are small than radius.
    
    function blobs return a list of voxels within a radius of the
    extrema.
    
    corrected the type of find_extrema.
    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    c227982 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d6e0ac7 View commit details
    Browse the repository at this point in the history
  15. Improve definition of Blob class.

    Blob takes now a list of voxels (just like track) and computes the
    energy directly from the list.
    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    b299de7 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    e0ca8bb View commit details
    Browse the repository at this point in the history
  17. Expand paolina_functions.

    Add two new functions and complete annotation.
    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    946e71d View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6f2d8ae View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    e537be2 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    6890a87 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    8805cef View commit details
    Browse the repository at this point in the history
  22. Minor fix in test.

    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    711bd2b View commit details
    Browse the repository at this point in the history
  23. Disable temporarilty ISIDORA execution line test.

    Isidora is giving a failure in Travis that cannot be reproduced
    locally. Since Isidora is essentially a fossil we disable this test
    for the moment, to be reviewed asap.
    jjgomezcadenas committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    32ec7d8 View commit details
    Browse the repository at this point in the history
  24. Paolina dev

    Refactors s12_filter so that it uses the high-level interface.
    Adds new classes representing Tracks and Blobs (as well as their containers)
    Adds new functionality to paolina_functions
    Add new helper functions (e.g, functions to draw voxels and tracks).
    Adds type hints (to Paolina functions, the idea is to add type
    hints to all functions in IC).
    jjgomezcadenas authored and jmbenlloch committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    f712cf4 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    ab917b0 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    703b0cf View commit details
    Browse the repository at this point in the history
  27. Raise new exception where needed

    paolafer authored and jmbenlloch committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    030e3d3 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    62940b5 View commit details
    Browse the repository at this point in the history
  29. Eliminate empty line

    paolafer authored and jmbenlloch committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    c9614be View commit details
    Browse the repository at this point in the history
  30. Corona improvements part 1: exceptions

    Improves the management of exceptions in the corona algorithms
    paolafer authored and jmbenlloch committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    03d7bb1 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2017

  1. Add more documentation to Corona

    Alejandro Botas authored and jjgomezcadenas committed Aug 22, 2017
    Configuration menu
    Copy the full SHA
    a0542b5 View commit details
    Browse the repository at this point in the history
  2. Imports SipmZeroCharge exception

    jerenner authored and jjgomezcadenas committed Aug 22, 2017
    Configuration menu
    Copy the full SHA
    a515161 View commit details
    Browse the repository at this point in the history
  3. Extend functionality of corona algorithm.

    corona is modified so that a global baricenter is called if the corona
    algorithm is called with a negative value of the lm_radius. This
    permits the use of corona as a general algorithm, avoiding some of the
    bookeeping issues associated with the use of two different
    reconstruction algorithms.
    jjgomezcadenas committed Aug 22, 2017
    Configuration menu
    Copy the full SHA
    cb5cedc View commit details
    Browse the repository at this point in the history
  4. Add base class XYRecoFail.

    The various exceptions associated with a failure in the tracking plane
    reconstruction are now derived from a base class XYRecoFail, allowing
    a more uniform treatment.
    jjgomezcadenas committed Aug 22, 2017
    Configuration menu
    Copy the full SHA
    17af3dc View commit details
    Browse the repository at this point in the history
  5. Adapt configuration files for Penthesilea.

    Penthesilea depends on kr_city and hit_city configuration files. All
    of them have been adapted so that:
    
    1) the reconstruction algorithm (barycenter or corona) is no longer
    called. We use *always* corona.
    2) corona depends of a number of parameters which are now passed
    through the configuration files.
    3) the default for kr_city is to pass lm_radius = -1, in which case an
    overall barycenter is computed.
    4) the default for hit_city is to pass a 3 x 3 corona, using lm_radius
    = 0 and new_lm_radius = 15.
    jjgomezcadenas committed Aug 22, 2017
    Configuration menu
    Copy the full SHA
    e3ba289 View commit details
    Browse the repository at this point in the history
  6. Refactor reconstruction algorithms.

    1.- The code no longer calls two algorithms (barycenter or corona)
    which had to be selected by card, but a single algorithm (corona) with
    a number of parameters. In particular, lm_radius can be set to a
    negative number in which case corona will return an overall
    barycenter (using all SiPms above Qthr threshold).
    
    2. The condition imposing a single cluster when filling a kr_event has
    been removed. That condition assumed that an overall barycenter
    returning a single cluster *had to be used* in kr_city (e.g, to
    compute KDSTs and maps). However, this is not a must and in fact,
    better (less biased) results can in principle be obtained using a
    corona algorithm which uses a limited number of SiPms around the local
    maximum. On the other hand, the use of a corona may result in more
    than one cluster in the tracking plane, even in the case of
    single-particles (e.g, X-rays or Krypton), due, for example, to noisiy
    SiPMs. However, the energy of the "true cluster" will be closer to the
    energy of the S2 than the energy of any fake cluster. This criterium
    is used to decide among clusters if there is more than one.
    
    3. In the case of hit_city, if there is a reconstruction failure a hit
    is still formed using a "NN cluster" (a Non-Numeric cluster). This
    allows to keep track of the energy of the slice that failed to produce
    a cluster.
    jjgomezcadenas committed Aug 22, 2017
    Configuration menu
    Copy the full SHA
    6cc8959 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2017

  1. Configuration menu
    Copy the full SHA
    dc95417 View commit details
    Browse the repository at this point in the history
  2. Fixed assorted issues in xy_algorithms.

    A number of issues have been fixed in xy_algorithms, including a bug
    introduced by accident and now fixed. The most important change is
    that dummy clusters are written even when the XY algorithm (corona)
    fails to find them, so that one can keep track of those cases.
    jjgomezcadenas committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    4d08d66 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2017

  1. Configuration menu
    Copy the full SHA
    0ad518d View commit details
    Browse the repository at this point in the history
  2. Cosmetics

    jjgomezcadenas committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    671fce8 View commit details
    Browse the repository at this point in the history
  3. Small fixes in Dorothea.

    A counter is introduced In order to keep track of the
    number of times that we produce two clusters when
    running Corona for Krypton events. At the same time, further counters
    are introduced for better book-keeping.
    jjgomezcadenas committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    ea39de4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7de77e2 View commit details
    Browse the repository at this point in the history
  5. Small fixes for Dorothea

    jjgomezcadenas authored and gonzaponte committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    20802d3 View commit details
    Browse the repository at this point in the history
  6. Add a new test file (with hits).

    This test file is used to test reading of hits. It is very small and
    so it won't overload our data storage
    jjgomezcadenas committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    e203220 View commit details
    Browse the repository at this point in the history
  7. Refactor dst_io splitting hits_io. Add tests.

    dst_io has been refactored. The file dst_io contains now only general
    reading functions (e.g, load_dst), while hits_io now contains all the
    functionality related with reading and writing hits.
    
    Tests have been added to exercize the new reading functionality.
    jjgomezcadenas committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    2a01e94 View commit details
    Browse the repository at this point in the history
  8. Add function to read hits skiping NN and test.

    Hits can be of type "NN" (No number), when the cluster algorithm fails
    to find a XY position. Depending on the application the user may be
    interested in skipping completely such hits. Thus, a function to
    return only hits which are not of type NN has been added, plus the
    corresponding test.
    jjgomezcadenas committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    de6f999 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9b94cbf View commit details
    Browse the repository at this point in the history
  10. add several functions

    gonzaponte committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    c31d566 View commit details
    Browse the repository at this point in the history
  11. cosmetics and docs

    gonzaponte committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    f5ed894 View commit details
    Browse the repository at this point in the history
  12. errorbar function

    gonzaponte committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    1b95784 View commit details
    Browse the repository at this point in the history
  13. remove obsolete function

    gonzaponte committed Aug 24, 2017
    Configuration menu
    Copy the full SHA
    45284fd View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    ebb168b View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2017

  1. Configuration menu
    Copy the full SHA
    6980e2e View commit details
    Browse the repository at this point in the history
  2. Add extra option to profile functions

    now they can return standard deviation instead of mean error
    gonzaponte committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    bb4a387 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2017

  1. Add functions to load MC traks and hits.

    A new module mchits_io containing functions
    to read the MCTraks pytable and return event dictionaries is added.
    Event dictionaries for MCTrks are provided by function read_mctracks
    while event dictionaries for all the hits produced by and electron
    or a positron in the event are produced by load_mchits.
    
    A simple test that checks that the hits readout in one event
    correspond to those in disk (hard wired in the code) is added.
    jjgomezcadenas committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    d930e9f View commit details
    Browse the repository at this point in the history
  2. Minor fixes in pmpas_functions_c.pyx

    Minor fixes (e.g, definition of type for max_events) added to
    function.
    jjgomezcadenas committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    6910642 View commit details
    Browse the repository at this point in the history
  3. New classes defining MCParticle and MCHit.

    High level classes defining MCParticle and MCHit have been added. The
    functions in module mchit_io file dictionary events of instances of
    these classes, e.g, {event_no:MCParticle}, {event_no:MCHit}
    jjgomezcadenas committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    9cce4c0 View commit details
    Browse the repository at this point in the history
  4. Add a fixture to test MC particle and hits.

    The fixture takes a MCRD file with MCTRK data and passes the data
    corresponding to the first particle (with 4 hits) in the table.
    jjgomezcadenas committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    aae7313 View commit details
    Browse the repository at this point in the history
  5. Refactor mchits_io and add a second test.

    A minor refactoring to return data in a more consistent way.
    
    load_mcparticles(file_name) --> returns event_dicts for particles
    load_mchits(file_name) --> returns event_dicts for hits.
    
    In addition a second test has been added. The test checks that the
    first particle and all its hits in disk is correctly loaded into the
    high level class.
    
    The two existing tests, while simple, check that the data format is
    correct and the high level classes are correctly instantiated.
    jjgomezcadenas committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    a0e2637 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2017

  1. MC hits and particles functions and classes

    A new module mchits_io containing functions
    to read the MCTraks pytable and return high level event dictionaries is added.
    
    Two high level classes are added to the event_model module.
    
    MCParticle defines a MC particle
    
    MCHit defines a MC hit.
    
    functions in mchits_io module:
    
    oad_mcparticles(file_name) --> returns event_dicts for particles : {event_no:MCParticle}
    load_mchits(file_name) --> returns event_dicts for hits: {event_no:MCHit}
    
    Two tests have been added. The test check that the
    first particle and all its hits in disk is correctly loaded into the
    high level class (for for MCParticle and for MCHit)
    
    The tests, while simple, check that the data format is
    correct and the high level classes are correctly instantiated.
    jjgomezcadenas authored and Alejandro Botas committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    8b765e5 View commit details
    Browse the repository at this point in the history
  2. delete correct_s1_ene from base_cities

    Alejandro Botas authored and Alejandro Botas committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    bdcbe9f View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2017

  1. add functions for increasing s2si thresholds + tests

    Alejandro Botas authored and Alejandro Botas committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    19d4e57 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2017

  1. make raise_s2si_thresholds non-destructive

    Alejandro Botas authored and Alejandro Botas committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    cd4fcce View commit details
    Browse the repository at this point in the history
  2. cythonize raise s2si thresholds functions

    Alejandro Botas authored and Alejandro Botas committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    351ea82 View commit details
    Browse the repository at this point in the history
  3. add type hints for raise sipm threshold functions

    Alejandro Botas authored and Alejandro Botas committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    bab781f View commit details
    Browse the repository at this point in the history
  4. have raise_s2si_thresholds call cython functions

    Alejandro Botas authored and Alejandro Botas committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    876a0c0 View commit details
    Browse the repository at this point in the history
  5. replace py impose_thr_sipm and thr_sipm_s2 functions with cython

    Alejandro Botas authored and Alejandro Botas committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    a559671 View commit details
    Browse the repository at this point in the history
  6. replace py delete_empty_s2si_peaks and _events with cython functions

    Alejandro Botas authored and Alejandro Botas committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    c6f64eb View commit details
    Browse the repository at this point in the history
  7. Add funtions or increasing s2si thresholds

    These are functions we can use to increase the cuts on the SiPMs: thr_sipm and thr_sipm_s2
    
    The idea is that maybe we could initially run irene with cuts on the
    SiPMs on the low side, and have the ability to quickly increase them
    whenever we want without having to rerun all of irene.
    Alejandro Botas authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    febecbe View commit details
    Browse the repository at this point in the history
  8. Add new functions to handle operations on empty arrays

    gonzaponte authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    87ebaa6 View commit details
    Browse the repository at this point in the history
  9. fix overflow issues

    gonzaponte authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    2debd48 View commit details
    Browse the repository at this point in the history
  10. fix division by 0 when computing chi2

    gonzaponte authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    3e10e1a View commit details
    Browse the repository at this point in the history
  11. fix import in zaira

    gonzaponte authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    79d1aed View commit details
    Browse the repository at this point in the history
  12. fix division by 0 warnings

    gonzaponte authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    96007b4 View commit details
    Browse the repository at this point in the history
  13. restore unintended deletion

    gonzaponte authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    3f83125 View commit details
    Browse the repository at this point in the history
  14. Revert to official style in multiple-line expressions

    gonzaponte authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    358800d View commit details
    Browse the repository at this point in the history
  15. Ensure normalization value makes sense

    gonzaponte authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    7d51a93 View commit details
    Browse the repository at this point in the history
  16. fix Zaira tests

    gonzaponte authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    0a3a050 View commit details
    Browse the repository at this point in the history
  17. delete unused file

    gonzaponte authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    14a8b41 View commit details
    Browse the repository at this point in the history
  18. Fix numpy warnings

    This PR fixes a number of warnings issued when running tests. There were 3 types:
    
    1. Operations on empty arrays. This has been fixed by introducing new
       functions to handle that particular case.
    
    2. Overflow. Hypothesis floats were running up to 10**20, which caused
       overflow when calling np.std (which at some point squared the
       number).
    
    3. Division by 0. This has been avoided by either removing those
       elements from the operation or treating the case separately.
    
    Closes next-exp#310.
    gonzaponte authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    2217c62 View commit details
    Browse the repository at this point in the history
  19. Fix degrees of freedom in reduced chi2

    gonzaponte authored and Jacek Generowicz committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    121f176 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2017

  1. Cosmetics

    Jacek Generowicz committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    d5ddfc8 View commit details
    Browse the repository at this point in the history
  2. Rename test_utils to testing_utils

    gonzaponte authored and jacg committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    5e353d2 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2017

  1. fix find_peaks to avoid error when no pmt signal after tmin

    Alejandro Botas authored and Alejandro Botas committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    25388dc View commit details
    Browse the repository at this point in the history
  2. fix typo trheshold --> threshold

    This fixes a typo propagated from pmaps.peak to a few different places
    in the repo. It is tested
    Alejandro Botas authored and Alejandro Botas committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    a6b8cd0 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2017

  1. Typo in return np.array(qs_slice)

    ansimez authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    3411410 View commit details
    Browse the repository at this point in the history
  2. Removed func _sipms_ids_and_charges_in_slice from pmaps_functions.py

    ansimez authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    c481c97 View commit details
    Browse the repository at this point in the history
  3. delete _sipm_ids_and_charges_in_slice'

    ansimez authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    fc8ab51 View commit details
    Browse the repository at this point in the history
  4. Rename std to var

    gonzaponte authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    544badd View commit details
    Browse the repository at this point in the history
  5. index kr table

    gonzaponte authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    433ccef View commit details
    Browse the repository at this point in the history
  6. Add test to ensure tables indexation

    gonzaponte authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    86383ca View commit details
    Browse the repository at this point in the history
  7. index hdf5 tables

    This PR indexes the kr table currently produced by Dorothea and adds a test to ensure all tables produced are properly indexed.
    gonzaponte authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    7d7be45 View commit details
    Browse the repository at this point in the history
  8. ipmt pmap writers

    add some writers to write s1pmt and s2pmt pmaps
    Alejandro Botas authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    8d86286 View commit details
    Browse the repository at this point in the history
  9. Add ipmt read functions

    Alejandro Botas authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    0576b08 View commit details
    Browse the repository at this point in the history
  10. load ipmt pmap tests

    Alejandro Botas authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    dffa163 View commit details
    Browse the repository at this point in the history
  11. add test data file

    Alejandro Botas authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    057834f View commit details
    Browse the repository at this point in the history
  12. write and load ipmts together or separately

    Alejandro Botas authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    d5698d4 View commit details
    Browse the repository at this point in the history
  13. update and debug S12Pmt class

    Alejandro Botas authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    4033146 View commit details
    Browse the repository at this point in the history
  14. pmap writers need not store empty si peaks

    Alejandro Botas authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    503219f View commit details
    Browse the repository at this point in the history
  15. flush h5out before closing in city.run()

    Alejandro Botas authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    d89fe62 View commit details
    Browse the repository at this point in the history
  16. Add __str__ ___repr__ fto S12Pmt.

    jjgomezcadenas authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    e4b9f0a View commit details
    Browse the repository at this point in the history
  17. Add set_plot_labels to signal_functions.

    Needed for plotting.
    jjgomezcadenas authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    1129471 View commit details
    Browse the repository at this point in the history
  18. pmap writers and loaders for the individual pmts

    With these modifications we can write and load the s1 and s2 of
    individual pmts. The ipmt pmaps can be written and loaded separately
    or together with the traditional pmaps.
    
    There are a few things we need to be aware of:
    
    We've found we must flush the pytables after writing to avoid data
    losses at least when writing all the ipmt + pmaps
    simultaneously. we flush the entire h5out file now, in
    city.run() in base_cities.py
    
    One change implemented in this PR is not backwards
    compatible. s12pmt.pmtsd has been replaced by s12pmt.ipmtd because
    this naming is more descriptive, more consistent with the nomenclature
    necessary to distinguish between different pmap writers/loaders, and
    because I think no one is using the ipmt pmaps yet so hopefully there
    won't be many complaints.
    
    All the write pmap functions (old and new) now accept None as an
    argument instead of an s1, s2, s2si s1pmt s2pmt or any combination of
    these. Before if there was an event without an s-whatever the writer
    had to be given an empty instance of that class, call the store
    method, and then do nothing. Now they store an si peak when there is
    an si peak for that event. I am also eager to (in a separate PR) have
    the pmap constructors do something intelligent when they are given
    empty dictionaries in initialization. All of this will hopefully also
    speed irene up a little bit.
    Alejandro Botas authored and Alejandro Botas committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    894e08c View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2017

  1. put InitializedEmptyPmapObject in pmap classes

    Alejandro Botas authored and abotas committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    c3d6c78 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a59f2e8 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2017

  1. Configuration menu
    Copy the full SHA
    266a915 View commit details
    Browse the repository at this point in the history
  2. Raise exception when constructing empty pmaps

    Close next-exp#315.
    
    Pmap constructors: S1, S2, S2Si, S1Pmt, S2Pmt will now raise an
    exception when given empty dicts to initialize. Previously if we had
    an empty s2, we would call and initialize an empty S2Pmt --> S2 -->
    S12. This is now avoided.
    
    If the constructor is called to build a peaks out of empty
    dictionaries, the constructor now raises InitializeEmptyPmapObject
    which must be caught.
    
    The general flow of things has changed such that where previously if
    there were no s2 in an event, IC would pass around empty s2, s2si, and
    s2pmt, Now we just pass around None.
    
    This PR merely creates this exception and catches it throughout the
    codebase where necessary.
    Alejandro Botas authored and Jacek Generowicz committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    53faf4b View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2017

  1. Configuration menu
    Copy the full SHA
    6dac1ad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e6a565 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    85c726d View commit details
    Browse the repository at this point in the history
  4. first functional ipmt irene

    abotas committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    15816a8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8bb93ef View commit details
    Browse the repository at this point in the history
  6. cythonize get_ipmtd

    abotas committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    84e9fdb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    de96b52 View commit details
    Browse the repository at this point in the history
  8. Allow irene to find ipmt pmaps

    This pr will allow irene to make use of the ipmt pmap finders and
    writers in order to save ipmt pmaps. I've run this irene in my
    notebook a few times and everything looks good so far.
    
        In order to tell irene to write ipmt pmaps (or not) I had to put a
        flag compute_ipmt_pmaps in pmap_city.conf. This means that
        previous irene config files will not work without first adding the
        flag. This may be kind of annoying for people running productions
        @jmbenlloch @jerenner @gonzaponte. If there is a better way of
        doing this, please let me know, and I will implement it. The only
        alternative I could think of would be to create another city, but
        that sounds potentially even more annoying for you guys.
    
        I did some time/memory profiling for on Kr data. From run 4446
        with thr_sipm = 1pes and 'thr_sipm_s2 = 2pes' and found after
        running 1k events:
        speed
        1.92 evt / sec with IPMT
        2.06 evt / sec without
        file size
        2.37 x larger than without IPMT
        So, time does not appear to be an issue, but the file size does
        grow substantially...
    
        @jjgomezcadenas I don't remember if we decided we wanted to put
        the ipmt pmaps in a different group, called IPMT in the hdf5
        file... did we?
    Alejandro Botas authored and jmbenlloch committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    bc9f5fc View commit details
    Browse the repository at this point in the history
  9. Use event numbers from input files for MC

    We were computing a new event number in Diomira because in the
    previous MC production, each file restarted the event counter to
    zero. This is not the case anymore, each file has a unique event
    number. Since this was a patch intended to use that old production, it
    could be removed now.
    jmbenlloch committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    25248a4 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2017

  1. Configuration menu
    Copy the full SHA
    ff58314 View commit details
    Browse the repository at this point in the history
  2. Test implemented to deal with 1 hit case

    paolafer authored and Jacek Generowicz committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    2d9235a View commit details
    Browse the repository at this point in the history
  3. Test return an assertion

    paolafer authored and Jacek Generowicz committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    5b49eae View commit details
    Browse the repository at this point in the history
  4. Fix broken test (voxelize_single_hit)

    Jacek Generowicz committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    96543f9 View commit details
    Browse the repository at this point in the history
  5. Add missing whitespace in return type annotations

    Jacek Generowicz committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    fa27747 View commit details
    Browse the repository at this point in the history
  6. Sanitize docstrings

    Jacek Generowicz committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    5f33f69 View commit details
    Browse the repository at this point in the history
  7. Clean up implementation of shortest_paths

    Jacek Generowicz committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    aacd947 View commit details
    Browse the repository at this point in the history
  8. Shorten voxelize_hits

    Jacek Generowicz committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    7d09020 View commit details
    Browse the repository at this point in the history
  9. Ensure that at least one bin is required

    Jacek Generowicz committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    aa3ca94 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2017

  1. Deal with 1 hit in voxelize_hits

    Closes next-exp#328
    
    Previously, the code was crashing when a hit collection contained only
    one item.
    Jacek Generowicz committed Sep 8, 2017
    Configuration menu
    Copy the full SHA
    7817404 View commit details
    Browse the repository at this point in the history
  2. Add update_environment function to manage.sh

    jmbenlloch authored and Jacek Generowicz committed Sep 8, 2017
    Configuration menu
    Copy the full SHA
    4a68042 View commit details
    Browse the repository at this point in the history
  3. Add update all

    jmbenlloch authored and Jacek Generowicz committed Sep 8, 2017
    Configuration menu
    Copy the full SHA
    e0680b7 View commit details
    Browse the repository at this point in the history