Skip to content

Commit af1382e

Browse files
authored
Merge pull request #82 from cainrinkMac/main
improve compatibility with GitHub Codespaces
2 parents 090b85a + 7a90551 commit af1382e

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@
3232
}
3333
}
3434
}
35-
}
35+
36+
},
37+
"features": {
38+
"ghcr.io/devcontainers/features/github-cli:1": {}
39+
}
3640
}

pyscope/observatory/simulator_server.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ def __init__(self):
6060
stdout=subprocess.DEVNULL,
6161
shell=True,
6262
)
63+
elif platform.system() == "Linux":
64+
self.process = subprocess.Popen(
65+
("sudo " + dirname + "/ascom.alpaca.simulators"),
66+
start_new_session=True,
67+
stderr=subprocess.DEVNULL,
68+
stdout=subprocess.DEVNULL,
69+
shell=True,
70+
)
6371
else:
6472
self.process = subprocess.Popen(
6573
(dirname + "/ascom.alpaca.simulators"),

pyscope/reduction/calib_images.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from ..observatory import AstrometryNetWCS
1212
from .ccd_calib import ccd_calib
1313

14+
1415
logger = logging.getLogger(__name__)
1516

1617

0 commit comments

Comments
 (0)