Mercurial > repos > rv43 > chess_tomo
changeset 1:07647d52d7d3 draft
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 0814301cace61040b468d4185a9056a1aed4050d-dirty
| author | rv43 |
|---|---|
| date | Mon, 20 Mar 2023 18:06:45 +0000 |
| parents | 7cc026583189 |
| children | 3fd7398a3a7f |
| files | test.py test.xml |
| diffstat | 2 files changed, 2 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/test.py Mon Mar 20 17:54:33 2023 +0000 +++ b/test.py Mon Mar 20 18:06:45 2023 +0000 @@ -1,10 +1,7 @@ #!/usr/bin/env python3 -import logging - import sys import argparse -import numpy as np def __main__(): @@ -17,17 +14,7 @@ help='Log file') args = parser.parse_args() - # Set basic log configuration - logging_format = '%(asctime)s : %(levelname)s - %(module)s : %(funcName)s - %(message)s' - log_level = 'INFO' - level = getattr(logging, log_level.upper(), None) - if not isinstance(level, int): - raise ValueError(f'Invalid log_level: {log_level}') - logging.basicConfig(format=logging_format, level=level, force=True, - handlers=[logging.StreamHandler()]) - - logging.info(f'log = {args.log}') - logging.info(f'is log stdout? {args.log is sys.stdout}') + print('Hello world') if __name__ == "__main__": __main__()
--- a/test.xml Mon Mar 20 17:54:33 2023 +0000 +++ b/test.xml Mon Mar 20 18:06:45 2023 +0000 @@ -1,4 +1,4 @@ -<tool id="test" name="Test" version="0.1.0" python_template_version="3.9"> +<tool id="test" name="Test" version="0.1.1" python_template_version="3.9"> <description>Test</description> <command detect_errors="exit_code"><