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

Remove use of Ska.Shell #269

Merged
merged 1 commit into from
May 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions mica/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from astropy.time import Time
import astropy.units as u

from Ska.Shell import bash
import agasc
import Ska.DBI
from Chandra.Time import DateTime
Expand Down Expand Up @@ -652,7 +651,7 @@ def main(obsid):
newfile = os.path.join(outdir, os.path.basename(file))
if not os.path.exists(newfile):
logger.debug("linking {} into {}".format(file, outdir))
bash("ln -s {} {}".format(file, outdir))
os.symlink(file, newfile)
asp_dir = asp_l1.get_obs_dirs(obsid)['last']
asp_logs = sorted(glob(os.path.join(asp_dir, "asp_l1_f*log*gz")))
for log, interval in zip(asp_logs, vv['intervals']):
Expand Down
1 change: 0 additions & 1 deletion mica/starcheck/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from six.moves import zip
from Chandra.Time import DateTime
import Ska.Shell
import Ska.DBI

from starcheck.parser import read_starcheck
Expand Down
4 changes: 2 additions & 2 deletions mica/starcheck/tests/make_database.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import os
import shutil
import tempfile
from Chandra.Time import DateTime
from Ska.Shell import bash
import mica.common

# Override MICA_ARCHIVE with a temporary directory
Expand All @@ -17,4 +17,4 @@
config['start'] = DateTime() - 30
mica.starcheck.process.update(config)
# Cleanup manually
bash("rm -r {}".format(TESTDIR))
shutil.rmtree(TESTDIR)