Skip to content

Commit

Permalink
Logging level and tutorial (#132)
Browse files Browse the repository at this point in the history
* logging level

* readme
  • Loading branch information
FaroutYLq authored Apr 29, 2024
1 parent 16b0297 commit f5d7194
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions jobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ Update `config.ini` and run this in a container
```
python submit.py
```

## Logging
When submitting jobs, you might want to have a bit more information for debugging. To do that, please do this before job submission:
- Copy the default xenon config to your home or somewhere safe `/project2/lgrandi/xenonnt/xenon.config`
- Keep everything else the same, and then modify the logging level there by `logging_level=debug` (or `info` should also work). See [here](https://github.com/XENONnT/utilix/blob/b94ef41851e437efa35ae9dc82c6fcdfca77b88c/utilix/config.py#L95) for details.
- Then export the config by `export XENON_CONFIG=<YOUR_DIR_TO_NEW_CONFIG>`.
- Submit jobs as usual.


## Tips
- You need to download yourself `raw_records` and `raw_records_aqmon` before submission!
- Unless you are working on AmBe, put `mem_per_cpu = 45000` (MB) should be enough. Otherwise please do `55000`.
Expand Down
2 changes: 1 addition & 1 deletion saltax/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from utilix import xent_collection


logging.basicConfig(handlers=[logging.StreamHandler()])
logging.basicConfig(level=logging.INFO, handlers=[logging.StreamHandler()])
log = logging.getLogger("fuse.context")


Expand Down
2 changes: 1 addition & 1 deletion saltax/plugins/f_raw_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

export, __all__ = strax.exporter()

logging.basicConfig(handlers=[logging.StreamHandler()])
logging.basicConfig(level=logging.INFO, handlers=[logging.StreamHandler()])
log = logging.getLogger("fuse.detector_physics.csv_input")


Expand Down
2 changes: 1 addition & 1 deletion saltax/plugins/s_raw_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
)

export, __all__ = strax.exporter()
logging.basicConfig(handlers=[logging.StreamHandler()])
logging.basicConfig(level=logging.INFO, handlers=[logging.StreamHandler()])
log = logging.getLogger("wfsim.interface")
log.setLevel("WARNING")

Expand Down

0 comments on commit f5d7194

Please sign in to comment.