From 7a626f6e242adf473184d4c0bb06929e5ce2fb43 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 20 Oct 2019 22:32:02 +0800 Subject: astro/sfr_chandra.pl: Fix bug of creating region file --- astro/spectrum/sfr_chandra.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- cgit v1.2.2