Skip to content

Commit

Permalink
gaia: fix bug importing more than one CUPID catalogue
Browse files Browse the repository at this point in the history
  • Loading branch information
pwdraper committed Aug 21, 2012
1 parent 6ca487a commit 7414c2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions applications/gaia/gaia.news
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
whose values are in the range 0 to 1. Colour maps should use the file
type ".lasc" and intensity maps ".iasc".

Fix a bug in the CUPID catalogue import that stopped more than one
being imported using the same session.

Kapuahi Release
===============

Expand Down
6 changes: 4 additions & 2 deletions applications/gaia/gaia/library/GaiaCupidImporter.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,10 @@ itcl::class gaia::GaiaCupidImporter {
return
}

if { [info exists tranwcs_] && $tranwcs_($catwin) != 0 } {
catch {gaiautils::astannul $tranwcs_($catwin)}
if { [info exists tranwcs_] && [info exists tranwcs_($catwin)] } {
if { $tranwcs_($catwin) != 0 } {
catch {gaiautils::astannul $tranwcs_($catwin)}
}
}
set comments [$catwin comments]
set tranwcs 0
Expand Down

0 comments on commit 7414c2b

Please sign in to comment.