Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sniffer #5

Open
6 tasks done
frnhr opened this issue Sep 21, 2018 · 4 comments
Open
6 tasks done

Sniffer #5

frnhr opened this issue Sep 21, 2018 · 4 comments

Comments

@frnhr
Copy link
Member

frnhr commented Sep 21, 2018

  • python skripta / modul
  • traži sve .fits slike unutar direktorija i novije od datog timestamp-a (CLI params)
  • otvara slike i traži custom header
  • ako header nije prisutan, ispisuje path u stdout
  • max batch size
  • logging
@frnhr
Copy link
Member Author

frnhr commented Dec 31, 2018

CLI argumenti:

  • optarg molim ne
  • argparse molim ne
  • docopt (google it)

Sve pod Linuxom.

@ghost ghost self-assigned this Jan 1, 2019
@ghost
Copy link

ghost commented Jan 3, 2019

Što si mislio pod 'logging?'

@frnhr
Copy link
Member Author

frnhr commented Jan 3, 2019

https://docs.python.org/3/library/logging.html

Za to postoji prilično standardna shema, kod importa:

import logging

# ispod importa:
log = logging.getLogger(__name__)

Onda na raznim mjestima u skripti npr:

log.info('processing %s', neki_fits_file)
...
log.debug('skipping %s', neki_fits_file) 
...
log.warning('cannot read headers in %s', neki_fits_file)
...
log.exception('unexpected error')

@ghost
Copy link

ghost commented Jan 3, 2019

bug fix, bila je neka greska u logici

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant