Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Sections" sometimes does not work #284

Open
olebole opened this issue Apr 12, 2023 · 1 comment
Open

"Sections" sometimes does not work #284

olebole opened this issue Apr 12, 2023 · 1 comment

Comments

@olebole
Copy link
Member

olebole commented Apr 12, 2023

Taken from #276 (comment) (@fakahle):

Building a file list from sections is sometimes buggy:

if ( images != "" ) {
                sections (images, option="fullname", > tmpin)
        } else {

Verifiying tmpin (below you'll find partial output from tmpin:

60EDf5.5_G2-1600_GCVS5_GM____Com_00013508_V_1x1.fit
60EDf5.5_G2-1600_GCVS5_GM____Com_00013509_R_1x1.fit
60EDf5.5_G2-1600_GCVS5_GM____Com_00013510_R_1x1.fit
**60EDf5.5_G2-1600_GCVS5_GM____Com_0001351**
Warning: Cannot open image (60EDf5.5_G2-1600_GCVS5_GM____Com_00013423_R_1x1.fi)
Warning: Cannot open image (60EDf5.5_G2-1600_GCVS5_GM____Com_0001351)
60EDf5.5_G2-1600_GCVS5_AR____Ari_00011679_V_1x1.fit
60EDf5.5_G2-1600_GCVS5_AR____Ari_00011680_V_1x1.fit

against ls -al *.fit in the source-directory shows, that individual lines sometimes get truncated:

-rw-r--r--     1 frank  staff  3153600 28 Feb  2022 60EDf5.5_G2-1600_GCVS5_GM____Com_00013508_V_1x1.fit
-rw-r--r--     1 frank  staff  3153600 28 Feb  2022 60EDf5.5_G2-1600_GCVS5_GM____Com_00013509_R_1x1.fit
-rw-r--r--     1 frank  staff  3153600 28 Feb  2022 60EDf5.5_G2-1600_GCVS5_GM____Com_00013510_R_1x1.fit
**-rw-r--r--     1 frank  staff  3153600 28 Feb  2022 60EDf5.5_G2-1600_GCVS5_GM____Com_00013511_R_1x1.fit**

Don't know, if the sections-cmd has been touched by the latest changes?

@olebole
Copy link
Member Author

olebole commented Apr 13, 2023

@fakahle The whole imutil subpackage is basically untouched since 2.17 (except for some documentation formatting).
Can you create a self-containing example here? I tried to create a number of copies from dev$pix and there it worked well:

ecl> imcopy dev$pix 60EDf5.5_G2-1600_GCVS5_GM____Com_00013508_V_1x1.fit
dev$pix -> 60EDf5.5_G2-1600_GCVS5_GM____Com_00013508_V_1x1.fit
ecl> imcopy dev$pix 60EDf5.5_G2-1600_GCVS5_GM____Com_00013509_V_1x1.fit
dev$pix -> 60EDf5.5_G2-1600_GCVS5_GM____Com_00013509_V_1x1.fit
ecl> imcopy dev$pix 60EDf5.5_G2-1600_GCVS5_GM____Com_00013510_V_1x1.fit
dev$pix -> 60EDf5.5_G2-1600_GCVS5_GM____Com_00013510_V_1x1.fit
ecl> imcopy dev$pix 60EDf5.5_G2-1600_GCVS5_GM____Com_00013511_V_1x1.fit
dev$pix -> 60EDf5.5_G2-1600_GCVS5_GM____Com_00013511_V_1x1.fit
ecl> imcopy dev$pix 60EDf5.5_G2-1600_GCVS5_GM____Com_00013512_V_1x1.fit
dev$pix -> 60EDf5.5_G2-1600_GCVS5_GM____Com_00013512_V_1x1.fit
ecl> imcopy dev$pix 60EDf5.5_G2-1600_GCVS5_GM____Com_00013513_V_1x1.fit
dev$pix -> 60EDf5.5_G2-1600_GCVS5_GM____Com_00013513_V_1x1.fit
ecl> imcopy dev$pix 60EDf5.5_G2-1600_GCVS5_GM____Com_00013514_V_1x1.fit
dev$pix -> 60EDf5.5_G2-1600_GCVS5_GM____Com_00013514_V_1x1.fit
ecl> imcopy dev$pix 60EDf5.5_G2-1600_GCVS5_GM____Com_00013515_V_1x1.fit
dev$pix -> 60EDf5.5_G2-1600_GCVS5_GM____Com_00013515_V_1x1.fit
ecl> imcopy dev$pix 60EDf5.5_G2-1600_GCVS5_GM____Com_00013516_V_1x1.fit
dev$pix -> 60EDf5.5_G2-1600_GCVS5_GM____Com_00013516_V_1x1.fit
ecl> sections *.fit option='fullname'
60EDf5.5_G2-1600_GCVS5_GM____Com_00013508_V_1x1.fit
60EDf5.5_G2-1600_GCVS5_GM____Com_00013509_V_1x1.fit
60EDf5.5_G2-1600_GCVS5_GM____Com_00013510_V_1x1.fit
60EDf5.5_G2-1600_GCVS5_GM____Com_00013511_V_1x1.fit
60EDf5.5_G2-1600_GCVS5_GM____Com_00013512_V_1x1.fit
60EDf5.5_G2-1600_GCVS5_GM____Com_00013513_V_1x1.fit
60EDf5.5_G2-1600_GCVS5_GM____Com_00013514_V_1x1.fit
60EDf5.5_G2-1600_GCVS5_GM____Com_00013515_V_1x1.fit
60EDf5.5_G2-1600_GCVS5_GM____Com_00013516_V_1x1.fit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant