-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
fix sciserver downloads in heasarc (#3182) #3183
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, one minor thing with the changelog though.
CHANGES.rst
Outdated
@@ -13,6 +13,18 @@ Infrastructure, Utility and Other Changes and Additions | |||
------------------------------------------------------- | |||
|
|||
|
|||
0.4.9 (TBD) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These sections exits above
@@ -692,16 +692,17 @@ def _copy_sciserver(self, links, location='.'): | |||
Users should be using `~self.download_data` instead | |||
|
|||
""" | |||
if not (os.path.exists('/FTP/') and os.environ['HOME'].split('/')[-1] == 'idies'): | |||
if not os.path.exists('/FTP/'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not relevant to this PR, but slowly we should move along to use pathlib
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3183 +/- ##
==========================================
+ Coverage 67.57% 67.62% +0.04%
==========================================
Files 229 229
Lines 18593 18594 +1
==========================================
+ Hits 12565 12574 +9
+ Misses 6028 6020 -8 ☔ View full report in Codecov by Sentry. |
I've rebased this to get rid of the conflict and now will merge once CI is all green. Thanks @zoghbi-a! |
Addresses #3182
This ensures the folder is create if it does not exist. Downloading a
foo/bar
folder now copies the data todownload_location/bar
instead ofdownload_location
.A unit test is added for cases of downloaded folders and files.
closes #3182