CDR Tickets

Issue Number 3320
Summary [Glossary Audio] Create Audio Download Tool
Created 2011-03-10 14:32:06
Issue Type Improvement
Submitted By Englisch, Volker (NIH/NCI) [C]
Assigned To Englisch, Volker (NIH/NCI) [C]
Status Closed
Resolved 2011-05-06 11:40:27
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.107648
Description

BZISSUE::5013
BZDATETIME::2011-03-10 14:32:06
BZCREATOR::Volker Englisch
BZASSIGNEE::Volker Englisch
BZQACONTACT::William Osei-Poku

At last weeks status meeting we had discussed to create a tool similar to the Image Download tool described in OCECDR-1579 which allows us to make a copy of the terminology pronunciation files we're receiving from Vanessa.

I am thinking to create a cron job (a job that runs automatically at pre-determined times) on CIPSFTP which checks if a new audio ZIP file is available and moves it to a different location, therefore preventing it from accidentally being overwritten. I could then uncompress the ZIP file and submit an email message notifying people that a new set of audio files is available.

Comment entered 2011-03-17 16:52:34 by Juthe, Robin (NIH/NCI) [E]

BZDATETIME::2011-03-17 16:52:34
BZCOMMENTOR::Robin Juthe
BZCOMMENT::1

Added [Glossary Audio] to title.

Comment entered 2011-04-07 11:38:15 by Englisch, Volker (NIH/NCI) [C]

BZDATETIME::2011-04-07 11:38:15
BZCOMMENTOR::Volker Englisch
BZCOMMENT::2

I have created the audio download tool on MAHLER which gets any *.zip files uploaded by Vanessa and copies those to the connected CDR Server at
D:\cdr\Audio_from_CIPSFTP

The files on CIPSFTP will then be moved to a different directory so that they aren't being copied again.

The process is currently working but still needs some security checks implemented.

Robin: We would need to ask Vanessa to change the directory she's using to
upload the files. She is currently placing the files the directory
/ciat/Audio
but I would like to change it to
/ciat/Audio/Term_Audio
hoping this change is not too confusing for Vanessa.

Comment entered 2011-04-11 17:26:42 by Englisch, Volker (NIH/NCI) [C]

BZDATETIME::2011-04-11 17:26:42
BZCOMMENTOR::Volker Englisch
BZCOMMENT::3

I've set up the Audio download tool on MAHLER. It is available on the "OCCM Staff" menu under "Audio Download".
I've added a checkbox for testing which allows to run the program multiple times.
In test mode the program overwrites the files that have already been downloaded (in live mode the program will fail if a file with the same filename already exists) and it will not remove the files downloaded so that one could download a set of files multiple times.

In test mode the files will be downloaded to
d:\cdr\Testing\Audio_from_CIPSFTP
while in live mode the files will be downloaded to
d:\cdr\Audio_from_CIPSFTP

On the FTP server the files are located in test mode at
/u/ftp/qa/ciat/test/Audio/Term_Audio
and in live mode at
/u/ftp/qa/ciat/Audio/Term_Audio

After the files have been downloaded to the CDR Server they will be copied to a different location to avoid overwriting. They are then located at
/u/ftp/qa/ciat/Audio/Audio_Transferred
in live mode. In test mode they are moved back to the original location.

This is ready for review on MAHLER.

Comment entered 2011-04-12 13:39:00 by Osei-Poku, William (NIH/NCI) [C]

BZDATETIME::2011-04-12 13:39:00
BZCOMMENTOR::William Osei-Poku
BZCOMMENT::4

(In reply to comment #3)

>
> This is ready for review on MAHLER.

Verified on Mahler. Please promote to Bach.

Comment entered 2011-04-18 14:28:09 by Englisch, Volker (NIH/NCI) [C]

BZDATETIME::2011-04-18 14:28:09
BZCOMMENTOR::Volker Englisch
BZCOMMENT::5

The following programs have been copied to FRANCK and BACH:
CiatCipsStaff.py - R10064
FtpAudio.py - R10064

I have tested this on BACH by downloading the latest audio *.zip file (Week_015.zip) uploaded to the FTP server by Vanessa.

Comment entered 2011-04-20 13:22:40 by Englisch, Volker (NIH/NCI) [C]

BZDATETIME::2011-04-20 13:22:40
BZCOMMENTOR::Volker Englisch
BZCOMMENT::6

There was one minor problem which prevented the tool to use a specified alternate, local directory name. This has been fixed and copied to FRANCK and BACH.
FtpAudio.py - R10066

Since I've already used this tool to download Vanessa's audio files I think this bug could be closed.

Comment entered 2011-05-06 11:40:27 by Osei-Poku, William (NIH/NCI) [C]

BZDATETIME::2011-05-06 11:40:27
BZCOMMENTOR::William Osei-Poku
BZCOMMENT::7

(In reply to comment #6)
> There was one minor problem which prevented the tool to use a specified
> alternate, local directory name. This has been fixed and copied to FRANCK and
> BACH.
> FtpAudio.py - R10066
>
> Since I've already used this tool to download Vanessa's audio files I think
> this bug could be closed.

Closing issue. Thanks!

Elapsed: 0:00:00.000648