Skip to content

Conversation

@antgonza
Copy link
Member

No description provided.

@antgonza antgonza changed the title WIP: adding tgz adding tgz Mar 29, 2016
@antgonza
Copy link
Member Author

This is ready for review. It adds the possibility of downloading all files from an analysis and the failures from close-ref-picking via a new filepath_type = tgz.

_, base_fp = qdb.util.get_mountpoint(self._table)[0]
return join(base_fp, mapping_fp[0][0])

@property
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use the function retrieve_filepaths from here ? This way it will look up the mountpoint correctly. This will fail, for example, in the test environment.

@josenavas
Copy link
Contributor

Few comments - plus still errors

@antgonza antgonza mentioned this pull request Mar 30, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 82.584% when pulling 6d8674a on antgonza:downlaod-tgz into 588f63c on biocore:artifact-study-pages.


tgz = to_tgz + '.tgz'
if not exists(tgz):
cmd = 'tar zcf %s %s' % (tgz, to_tgz)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any benefit to use a subprocess instead of the tarfile module?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so ... perhaps not loading into memory the files and let the system deal with that?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that a known issue? It just seems unnecessary to use a subprocess, since there's already a module to do this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No that I know of ... changing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ElDeveloper
Copy link
Contributor

Looks good, just two comments.

@ElDeveloper
Copy link
Contributor

👍

@josenavas josenavas merged commit 0ea7c56 into qiita-spots:artifact-study-pages Mar 30, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 82.623% when pulling ace249a on antgonza:downlaod-tgz into 588f63c on biocore:artifact-study-pages.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants