Comments (2)
just remember that if you use ctapipe Components and Tools as base classes, you get logging for free. That is the final goal in protopipe, so do not spend much time implementing anything fancy in protopipe.
- make sure all output uses python's logging system (no print statements), using a separate logger for each file:
import logging
logger = logging.getLogger(__name__)
...
#later in code:
logger.warning("this is bad")
- use the logging levels (info, debug, warning) correctly
- in any executable script you have now that does not use ctapipe's Tool/Component framework, add a line to set up the logger, like
logging.defaultConfig(level=INFO)
(don't worry too much about getting the format or making it user-configurable, that will come when you use ctapipe more).
A better goal would just be to convert protopipe scripts to use ctapipe.core.Tool, like what was recently done for lstchain
from protopipe.
A better goal would just be to convert protopipe scripts to use ctapipe.core.Tool, like what was recently done for lstchain
this is part of the refactoring, but until it's completely done there are many prints here and there
of course what is already logged from ctapipe and pyirf shows up already when launching protopipe's scripts
from protopipe.
Related Issues (20)
- [WRONG BEHAVIOUR] Incorrect impact distances
- Add image extraction status
- Add tables attributes
- Merge DIRAC grid interface
- Containerization
- How to handle performance showcasing in the future HOT 1
- Refactoring of the TRAINING stage HOT 3
- Add analysis book template
- [BUG] Notebooks should try to import uproot only if ROOT-based data is required
- Add a benchmarking notebook template
- Should not transform the Geometry for each event (slow) HOT 1
- Number of recorded SST telescopes is miscalculated or missing
- Remove dangerous fall-back to MARS cuts if there is a typo in the config file HOT 2
- Some broken benchmarks HOT 1
- Update integration test pipeline with (diffuse) Prod5b data from CTAN and CTAS
- Native parallelization
- Make conda package
- PyPI upload doesn't work anymore HOT 2
- Dropdown menu to switch between docs versions doesn't work HOT 2
- Automate documentation of CLI scripts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protopipe.