aboutsummaryrefslogtreecommitdiffstats
path: root/astro/spectrum
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-10-20 22:32:02 +0800
committerAaron LI <aly@aaronly.me>2019-10-20 22:32:02 +0800
commit7a626f6e242adf473184d4c0bb06929e5ce2fb43 (patch)
tree3453bd19cf432a6c2dda3ecc1033acbf2bd59cce /astro/spectrum
parent30f17b89f09b8f531a9fb61175b4c456ded3b843 (diff)
downloadatoolbox-7a626f6e242adf473184d4c0bb06929e5ce2fb43.tar.bz2
astro/sfr_chandra.pl: Fix bug of creating region file
Diffstat (limited to 'astro/spectrum')
-rwxr-xr-xastro/spectrum/sfr_chandra.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/astro/spectrum/sfr_chandra.pl b/astro/spectrum/sfr_chandra.pl
index 010c7cd..aa8cd59 100755
--- a/astro/spectrum/sfr_chandra.pl
+++ b/astro/spectrum/sfr_chandra.pl
@@ -637,8 +637,8 @@ foreach my $line (@region_lines) {
foreach my $reg (@cur_regs) {
print $FIT_REG "$reg\n"
}
+ close($FIT_REG);
}
- close($FIT_REG);
# Prepare source and background spectra {{{
print "Prepare source and background spectra \.\.\.\n";