Skip to content

Commit

Permalink
run DS9Utils before loading analysis file
Browse files Browse the repository at this point in the history
  • Loading branch information
vpicouet committed Jun 15, 2021
1 parent 8516b25 commit e1dd503
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6,145 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pyds9plugin/Images/m33_hi2.fits
pyds9plugin/Images/HorseHead.fits

pyds9plugin/Images/G_Trimm.fits
pyds9plugin/Images/*modified*.fits

pyds9plugin/doc/ref/old_only_ok/

Expand Down Expand Up @@ -64,3 +65,13 @@ pyds9plugin/Macros/Plot_filters.py
.coverage

*.dat

sex.xml

htmlcov/

pyds9plugin/testing/profiles/

pyds9plugin/testing/files/

report/coverage.xml
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ To install pyds9plugin for general purposes use Pip:
```
pip install pyds9plugin
```
Then load the analysis file in DS9 by running:

Finish the installation and see the different functions by running:

```
DS9Utils
```

Finally, load the analysis file in DS9 by running:

```
DS9Utils LoadDS9QuickLookPlugin
Expand Down
3 changes: 3 additions & 0 deletions pyds9plugin/testing/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def main():
Profile(command="lock('%s',argv='-f none -c none -l 1 -l 0 -m 1')"%(name),functions=[lock,])

Profile(command="setup(argv='-x %s')"%(name),functions=[setup,])
# sys.exit()
d=DS9n()
d.set('regions command "circle 100 100 20"')
d.set('regions select all')
Expand Down Expand Up @@ -174,6 +175,8 @@ def main():

if __name__ == '__main__':
try:
os.system('DS9Utils')
os.system('DS9Utils setup -h ')
os.system('echo 0 > %s'%(DS9_BackUp_path + '/.verbose.txt'))
os.system('echo 0 > %s'%(DS9_BackUp_path + '/.message.txt'))
copyfile(im, test_folder + '/files/' + os.path.basename(im))
Expand Down
Loading

0 comments on commit e1dd503

Please sign in to comment.