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

CCS fails the check for overwriting files #54

Open
jpinedaf opened this issue Oct 22, 2015 · 1 comment
Open

CCS fails the check for overwriting files #54

jpinedaf opened this issue Oct 22, 2015 · 1 comment
Labels

Comments

@jpinedaf
Copy link
Member

When calibrating data using the doPipeline function, CCS fails the check to decide if the files should be overwritten.

The problem is that CCS is observed in a single feed, while the check requires that all feeds should be reduced to skip them. A similar issue occurs should occur when a Vegas bank is missing from the observations. The relevant piece of code is here:

       for bank in BankNames:
        # First check to see if a pipeline call is necessary. 
        FilesIntact = True
        if not overwrite:
            for feed in ['0','1','2','3','4','5','6']:
                for pol in ['0','1']:
                    outputfile = Source+'_scan_{0}_{1}_window{2}_feed{3}_pol{4}_sess{5}.fits'.\
                        format(StartScan,EndScan,Window,feed,pol,SessionNumber) 
                    FilesIntact = FilesIntact and os.path.exists(OutputDirectory+'/'+outputfile)
                    if FilesIntact:
                        print('Data for Polarization {0} of Feed {1} appear on disk... skipping'.format(pol,feed))
        if (not FilesIntact) or (overwrite):
            InputFile = RawDataDir+SessionDir+'AGBT15A_430_'+\
                str(SessionNumber).zfill(2)+\
                '.raw.vegas.{0}.fits'.format(bank)

A possible solution would be to do the check for each Bank independently. Am I missing something @rfriesen @low-sky ?

@jpinedaf jpinedaf changed the title CCS fails the check kfor o CCS fails the check for overwriting files Oct 22, 2015
@jpinedaf jpinedaf added the bug label Oct 22, 2015
jpinedaf added a commit that referenced this issue Oct 28, 2015
-Check is now done in a feed and polarization basis
@jpinedaf
Copy link
Member Author

I checked, and this solution seems to solve the issue, however, OrionA seems to keep having problems on moving and renaming files. Really strange!

If you check the files present in /lustre/pipeline/scratch/GAS/OrionA you will find several files that should have been moved into the /lustre/pipeline/scratch/GAS/OrionA/OrionA_NH3_11 folder. However, when I run the same code used in the pipeline manually, then the files are moved, although I do get an exception from the so.rename() call. I am stumped!

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

No branches or pull requests

1 participant