nkphysics / autoNICER

A program that automates the data retrieval and data reduction of observational data gathered by NASA's NICER x-ray mission
Apache License 2.0
6 stars 0 forks source link

Unix pass in for --inlist #35

Closed nkphysics closed 1 year ago

nkphysics commented 1 year ago

It would be useful not to have to make an inlist file every time. Instead consider navigating to a dir containing all NICER OBSID datasets and the running either --inlist=* or --inlist=/PATH-TO-DIR/*

nkphysics commented 1 year ago

Need to add error handling for other non OBSID components of a dir:

NotADirectoryError: [Errno 20] Not a directory: 'tmp2.lis'

nkphysics commented 1 year ago

Also need to address handling for the following case:

autonicer --checkcal --inlist * usage: autonicer [-h] [-src SRC] [-checkcal] [-reprocess] [-bc] [-compress] [-inlist INLIST] autonicer: error: unrecognized arguments: 2050260102 2050260103 2050260104 2050260105 2050260106 2050260107 2050260108 2050260109 2050260110 2584010101 2584010102 2584010103 2584010104 2584010105 2584010106 2584010107 2584010108 2584010109 2584010110 2584010111 2584010112 2584010201 2584010301 2584010501 2584010502 2584010601 2584010701 2584010801 2584010901 2584011001 2584011101 2584011102 2584011201 2584011301 2584011401 2584011501 2584011502 2584011601 2584011701 2584011702 2584011801 2584011901 2584012102 2584012201 2584012301 2584012401 2584012501 2584012601 2584012701 2584012801 2584012901 2584013001 2584013101 2584013201 2584013301 2584013401 2584013501 2584013601 2584013701 2584013801 2584013901 2584014001 2584014101 2584014201 2584014301 2584014701 2584014901 2584014902 2584015001 tmp2.lis

nkphysics commented 1 year ago

Need to add error handling for other non OBSID components of a dir:

NotADirectoryError: [Errno 20] Not a directory: 'tmp2.lis'

Addressed in 01eb2c7ad8c8411904fa64e3b4b4839f951fa5bf

nkphysics commented 1 year ago

Also need to address handling for the following case:

autonicer --checkcal --inlist * usage: autonicer [-h] [-src SRC] [-checkcal] [-reprocess] [-bc] [-compress] [-inlist INLIST] autonicer: error: unrecognized arguments: 2050260102 2050260103 2050260104 2050260105 2050260106 2050260107 2050260108 2050260109 2050260110 2584010101 2584010102 2584010103 2584010104 2584010105 2584010106 2584010107 2584010108 2584010109 2584010110 2584010111 2584010112 2584010201 2584010301 2584010501 2584010502 2584010601 2584010701 2584010801 2584010901 2584011001 2584011101 2584011102 2584011201 2584011301 2584011401 2584011501 2584011502 2584011601 2584011701 2584011702 2584011801 2584011901 2584012102 2584012201 2584012301 2584012401 2584012501 2584012601 2584012701 2584012801 2584012901 2584013001 2584013101 2584013201 2584013301 2584013401 2584013501 2584013601 2584013701 2584013801 2584013901 2584014001 2584014101 2584014201 2584014301 2584014701 2584014901 2584014902 2584015001 tmp2.lis

Addressed in a910cd9eae197f48fcf0724c88b4206106e64fd5

nkphysics commented 1 year ago

Finished off with #40