Giter Club home page Giter Club logo

reprox's Introduction

reprox's People

Contributors

dependabot[bot] avatar faroutylq avatar joranangevaare avatar sourcery-ai[bot] avatar

Watchers

 avatar  avatar  avatar  avatar

reprox's Issues

Inconsistency between `reporx-find-data` and `reprox-submit-jobs` in argument naming

reprox-find-data --context xenonnt_online --config-kwargs '{"minimum_run_number":51379,"maximum_run_number":52358,"_rucio_path":"/project/lgrandi/rucio","output_folder":"/project2/lgrandi/xenonnt/processed"}' --targets cut_daq_vet

This will lead to TypeError: get_context() got an unexpected keyword argument '_rucio_path'. To make it work, you need to do this instead:

reprox-find-data --context xenonnt_online --context-kwargs '{"minimum_run_number":51379,"maximum_run_number":52358,"_rucio_path":"/project/lgrandi/rucio","output_folder":"/project2/lgrandi/xenonnt/processed"}' --targets cut_daq_vet

However, this will fail:

reprox-start-jobs --context xenonnt_online --context-kwargs '{"minimum_run_number":51379,"maximum_run_number":52358,"_rucio_path":"/project/lgrandi/rucio","output_folder":"/project2/lgrandi/xenonnt/processed"}' --targets cut_daq_veto

To make it work, you need to do

reprox-start-jobs --context xenonnt_online --config-kwargs '{"minimum_run_number":51379,"maximum_run_number":52358,"_rucio_path":"/project/lgrandi/rucio","output_folder":"/project2/lgrandi/xenonnt/processed"}' --targets cut_daq_veto

Seems not working in midway login node terminal

>>> from reprox import find_data, submit_jobs, validate_run
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem .
Using /home/yuanlq/software/reprox/reprox/reprocessing.ini-config. Overwrite by setting "REPROX_CONFIG" as an environment variable
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'find_data' from 'reprox' (/home/yuanlq/software/reprox/reprox/__init__.py)

Chunk merging issue

The following runs seem to be problematic in cuts computation. Example error looks like below. [45501, 44405, 46721, 47083, 47287, 47296, 47298, 46731, 45437, 45451, 045462, 045501]

ValueError: Cannot merge chunks with different number of items: [[046731.peak_positions_cnn: 1659907969sec 424508440 ns - 1659907990sec 899344920 ns, 22238 items, 0.0 MB/s], [046731.peak_positions_mlp: 1659907969sec 424508440 ns - 1659907990sec 899344920 ns, 22234 items, 0.0 MB/s], [046731.peak_positions_gcn: 1659907969sec 424508440 ns - 1659907990sec 899344920 ns, 22238 items, 0.0 MB/s]]

More details you can find logs at /project/lgrandi/xenonnt/data_management_reprocessing/job_logs. Already used --notlazy in straxer, and I am requiring single core at this point.

marshal data too short on midway3

If this is the second time you run reprox in a singularity container in midway3: this will fail.

(XENONnT_development) Singularity xenonnt-development.simg:~> ~/software/reprox/bin/reprox-start-jobs --context xenonnt_online --config-kwargs '{"_rucio_local_path":"/project/lgrandi/rucio","include_rucio_local":"true","output_folder":"/project2/lgrandi/xenonnt/processed"}' --targets cuts_basic --force-non-admin
Traceback (most recent call last):
  File "/home/yuanlq/software/reprox/bin/reprox-start-jobs", line 2, in <module>
    from reprox import core, submit_jobs
  File "/home/yuanlq/software/reprox/reprox/__init__.py", line 3, in <module>
    from . import core
  File "/home/yuanlq/software/reprox/reprox/core.py", line 12, in <module>
    from strax import to_str_tuple
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.8/site-packages/strax/__init__.py", line 13, in <module>
    from .storage.files import *
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.8/site-packages/strax/storage/files.py", line 5, in <module>
    from bson import json_util
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.8/site-packages/bson/json_util.py", line 130, in <module>
    from pymongo.errors import ConfigurationError
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.8/site-packages/pymongo/__init__.py", line 117, in <module>
    from pymongo.mongo_client import MongoClient
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.8/site-packages/pymongo/mongo_client.py", line 76, in <module>
    from pymongo.topology import Topology, _ErrorContext
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.8/site-packages/pymongo/topology.py", line 45, in <module>
    from pymongo.server import Server
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 839, in exec_module
  File "<frozen importlib._bootstrap_external>", line 971, in get_code
  File "<frozen importlib._bootstrap_external>", line 640, in _compile_bytecode
EOFError: marshal data too short

Massive failure in `cuts_basic`

/project/lgrandi/xenonnt/data_management_reprocessing/job_logs/049655.txt as an example here:

strax.mailbox.MailboxKilled: (<class 'TypeError'>, TypeError("can't unbox array from PyObject into native value.  The object maybe of a different type"), <traceback object at 0x7fef0a689640>)
strax.mailbox.MailboxKilled: (<class 'TypeError'>, TypeError("can't unbox array from PyObject into native value.  The object maybe of a different type"), <traceback object at 0x7fef0a689640>)
strax.mailbox.MailboxKilled: (<class 'TypeError'>, TypeError("can't unbox array from PyObject into native value.  The object maybe of a different type"), <traceback object at 0x7fef0a689640>)
    raise MailboxKilled(self.killed_because)
strax.mailbox.MailboxKilled: (<class 'TypeError'>, TypeError("can't unbox array from PyObject into native value.  The object maybe of a different type"), <traceback object at 0x7fef0a689640>)
    self.close()
strax.mailbox.MailboxKilled: (<class 'TypeError'>, TypeError("can't unbox array from PyObject into native value.  The object maybe of a different type"), <traceback object at 0x7fef0a689640>)
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/mailbox.py", line 361, in close
    x = next(iterable)
    self.send(StopIteration)
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/plugins/plugin.py", line 456, in iter
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/mailbox.py", line 313, in send
    raise MailboxKilled(self.killed_because)
strax.mailbox.MailboxKilled: (<class 'TypeError'>, TypeError("can't unbox array from PyObject into native value.  The object maybe of a different type"), <traceback object at 0x7fef0a689640>)
    self.input_buffer[d].split(
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/chunk.py", line 170, in split
    data1, data2, t = split_array(
TypeError: can't unbox array from PyObject into native value.  The object maybe of a different type
You specified _auto_append_rucio_local=True and you are not on dali compute nodes,so we will add the following rucio local path:  /project/lgrandi/rucio/
Traceback (most recent call last):
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/bin/straxer", line 352, in <module>
    sys.exit(main(args))
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/bin/straxer", line 299, in main
    run_make(target)
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/bin/straxer", line 268, in run_make
"050111.txt" 400L, 26916C                                                                                                            366,5         94%
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/mailbox.py", line 281, in _send_from
    raise MailboxKilled(self.killed_because)
    raise MailboxKilled(self.killed_because)
    self.close()
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/mailbox.py", line 361, in close
    x = next(iterable)
    self.send(StopIteration)
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/plugins/plugin.py", line 456, in iter
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/mailbox.py", line 313, in send
    raise MailboxKilled(self.killed_because)
strax.mailbox.MailboxKilled: (<class 'TypeError'>, TypeError("can't unbox array from PyObject into native value.  The object maybe of a different type"), <traceback object at 0x7fef0a689640>)
    self.input_buffer[d].split(
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/chunk.py", line 170, in split
    data1, data2, t = split_array(
TypeError: can't unbox array from PyObject into native value.  The object maybe of a different type
You specified _auto_append_rucio_local=True and you are not on dali compute nodes,so we will add the following rucio local path:  /project/lgrandi/rucio/
Traceback (most recent call last):
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/bin/straxer", line 352, in <module>
    sys.exit(main(args))
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/bin/straxer", line 299, in main
    run_make(target)
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/bin/straxer", line 268, in run_make
    for i, d in enumerate(get_results()):
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/bin/straxer", line 265, in get_results
    yield from st.get_iter(**kwargs)
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/context.py", line 1324, in get_iter
    generator.throw(e)
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/context.py", line 1296, in get_iter
    for n_chunks, result in enumerate(strax.continuity_check(generator), 1):
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/chunk.py", line 303, in continuity_check
    for chunk in chunk_iter:
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/processor.py", line 302, in iter
    raise exc.with_traceback(traceback)
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/mailbox.py", line 281, in _send_from
    x = next(iterable)
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/plugins/plugin.py", line 456, in iter
    self.input_buffer[d].split(
  File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.9/site-packages/strax/chunk.py", line 170, in split
    data1, data2, t = split_array(
TypeError: can't unbox array from PyObject into native value.  The object maybe of a different type

`config-kwargs` is not working

Singularity xenonnt-development.simg:~> reprox-find-data --context xenonnt_online --config-kwargs {"minimum_run_number":51381} --target cuts_basic --cmt-version False
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem .
Using /home/yuanlq/software/reprox/reprox/reprocessing.ini-config. Overwrite by setting "REPROX_CONFIG" as an environment variable
usage: reprox-find-data [-h] [--package {straxen,cutax}] [--context CONTEXT] [--context-kwargs CONTEXT_KWARGS] [--config-kwargs CONTEXT_CONFIG_KWARGS]
                        [--targets [TARGETS [TARGETS ...]]] [--ignore_runs [IGNORE_RUNS [IGNORE_RUNS ...]]] [--force-non-admin]
                        [--detectors [DETECTORS [DETECTORS ...]]] [--cmt-version CMT_VERSION]
reprox-find-data: error: argument --config-kwargs/--config_kwargs: invalid loads value: '{minimum_run_number:51381}'

Singularity xenonnt-development.simg:~> reprox-find-data --context xenonnt_online --config-kwargs {"s1_min_coincidence":2} --target cuts_basic --cmt-version False
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem .
Using /home/yuanlq/software/reprox/reprox/reprocessing.ini-config. Overwrite by setting "REPROX_CONFIG" as an environment variable
usage: reprox-find-data [-h] [--package {straxen,cutax}] [--context CONTEXT] [--context-kwargs CONTEXT_KWARGS] [--config-kwargs CONTEXT_CONFIG_KWARGS]
                        [--targets [TARGETS [TARGETS ...]]] [--ignore_runs [IGNORE_RUNS [IGNORE_RUNS ...]]] [--force-non-admin]
                        [--detectors [DETECTORS [DETECTORS ...]]] [--cmt-version CMT_VERSION]
reprox-find-data: error: argument --config-kwargs/--config_kwargs: invalid loads value: '{s1_min_coincidence:2}'

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.