bugGNU Astronomy Utilities - Bugs: bug #62636, Table ignoring '--range' when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #62636: Table ignoring '--range' when '--head' is also called

Submitter:  Sepideh Eskandarlou <sepideh>
Submitted:  Wed 15 Jun 2022 05:17:42 PM UTC
   
 
Category:  Table Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Wed 15 Jun 2022 07:14:20 PM UTC, comment #1: 

This bug has been fixed in Commit 5c891c20f.

Thanks a lot Sepideh and Raul for the nice bug report that was very useful in helping me easily reproduce and fix the problem.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Wed 15 Jun 2022 05:17:42 PM UTC, original submission:  

In 'asttaable' when we we put the '--sort' and '--head' option before the '--range' option, the final result is not between the special range which has been determined by user.

By below command you can see the contents of table.


$ cat catalog.txt
# Column 1: counter         [counter, i8] counter
# Column 2: phot_g_mean_mag [log, f32] magnitude
1  5.64544
2  6.66823
3  8.58895


By this command line I have expected just object in range of magnitude between 4 to 6 printed.
While you can see it printed magnitude which are not between 4 to 6.


$ asttable test.txt --sort=phot_g_mean_mag --head=3 --range=phot_g_mean_mag,4,6
1      5.64544
2      6.66823
3      8.58895


Sepideh Eskandarlou <sepideh>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Posted a comment)
  • -email is unavailable- added by sepideh (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-06-15 makhlaghi SummaryWhen in 'asttable' has been used '--head' option before '--range' the result is mistake Table ignoring '--range' when '--head' is also called
    2022-06-15 makhlaghi StatusNone Fixed
        Assigned toNone makhlaghi
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code