Giter Site home page Giter Site logo

Comments (4)

ZhiXuanLai avatar ZhiXuanLai commented on June 18, 2024

There is an eCode called Esf0042 in gff3.py line #866 with the message 'Unresolved forward reference.' However, the eCode Esf0042 is currently not documented in gff3_QC full documentation and not listed in the dictionary of ERROR.py as well. It might need to be documented.

from gff3toolkit.

ZhiXuanLai avatar ZhiXuanLai commented on June 18, 2024

Attached is the documentation for three categories of general error handling in gff3QC codes (function4gff.py, intra_model.py, inter_model.py, gff3_QC.py, and gff3.py).
error handling in gff3_QC.docx

from gff3toolkit.

ZhiXuanLai avatar ZhiXuanLai commented on June 18, 2024

Since both gff3 QC errors and program errors are handled with pre-defined log levels of the logging module, we considered defining separate levels for gff3 QC errors (like gff3_ERROR). The way to do this is to use the logging.addLevelName function and setup like the following example.

import logging
DEBUG_LEVELV_NUM = 9 
logging.addLevelName(DEBUG_LEVELV_NUM, "DEBUGV")
def debugv(self, message, *args, **kws):
    if self.isEnabledFor(DEBUG_LEVELV_NUM):
        # Yes, logger takes its '*args' as 'args'.
        self._log(DEBUG_LEVELV_NUM, message, args, **kws) 
logging.Logger.debugv = debugv

(reference: https://newbedev.com/how-to-add-a-custom-loglevel-to-python-s-logging-facility)

However, we decided not to do it. Because gff3 QC errors are already put in the QC report with clear error messages for each eCode, defining new error levels adds unnecessary complications. In addition, custom levels are not recommended for developing a library in the python document. As a result, the error update for this issue will use the current handling method.

from gff3toolkit.

mpoelchau avatar mpoelchau commented on June 18, 2024

Closed via #116 .

from gff3toolkit.

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.