sot / mica

Microscope on Chandra aspect
https://sot.github.io/mica
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

starcheck subpackage: apply black and isort, fix line lengths, remove unused imports #277

Closed taldcroft closed 2 years ago

taldcroft commented 2 years ago

Description

This tidies up the mica.starcheck subpackage in advance of removing the timelines database dependence.

Interface impacts

None

Testing

Unit tests

Independent check of unit tests by Jean

Functional tests

The only non-automated check was fixing the regex expression in 26d18a4c108265998ead30b7a8827e86e73d90c0. (The forward slash / is not a special character and should not be escaped). I tested this with:

In [4]: st = '/data/mpcrit1/mplogs/2020/APR2020/oflsa/starcheck.txt'

In [5]:         mp_dir = re.search(
   ...:             r"/data/mpcrit1/mplogs(/\d{4}/\w{7}/\w{5}/)starcheck.txt", st
   ...:         ).group(1)
   ...: 

In [6]: mp_dir
Out[6]: '/2020/APR2020/oflsa/'