[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62674] Column arithmetic can't use columns from --catcolumnfile
From: |
Mohammad Akhlaghi |
Subject: |
[bug #62674] Column arithmetic can't use columns from --catcolumnfile |
Date: |
Sat, 25 Jun 2022 21:27:07 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62674>
Summary: Column arithmetic can't use columns from
--catcolumnfile
Project: GNU Astronomy Utilities
Submitter: makhlaghi
Submitted: Sun 26 Jun 2022 02:27:05 AM BST
Category: Table
Severity: 3 - Normal
Item Group: Crash
Status: In Progress
Privacy: Public
Assigned to: makhlaghi
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sun 26 Jun 2022 02:27:05 AM BST By: Mohammad Akhlaghi <makhlaghi>
In a scenario like below, Table will complain that column 'g' doesn't exist:
$ cat table-1.txt
# Column 1: a [f,f32] Test column 1
# Column 2: b [f,f32] Test column 2
# Column 3: c [f,f32] Test column 3
# Column 4: d [f,f32] Test column 4
1 2 3 4
10 20 30 40
11 21 31 41
12 22 32 42
$ cat table-2.txt
# Column 1: e [f,f32] Test column 1
# Column 2: f [f,f32] Test column 2
# Column 3: g [f,f32] Test column 3
# Column 4: h [f,f32] Test column 4
5 6 7 8
50 60 70 80
51 61 71 81
52 62 72 82
$ asttable table-1.txt --catcolumnfile=table-2.fits -c'arith a g +' \
--catcolumnrawname
asttable: table-1.txt: 'g' didn't match any of the column names.
The problem happens because the sanity checks for which files to use in Table
occurs before the new columns are inserted during '--catcolumnfile'!
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62674>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #62674] Column arithmetic can't use columns from --catcolumnfile,
Mohammad Akhlaghi <=