Giter Site home page Giter Site logo

Comments (2)

kosack avatar kosack commented on June 22, 2024

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.

  1. 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")
  1. use the logging levels (info, debug, warning) correctly
  2. 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.

HealthyPear avatar HealthyPear commented on June 22, 2024

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)

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.