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

Use mode='denywrite' in FITS data factory #1884

Merged
merged 1 commit into from
Oct 21, 2018

Conversation

astrofrog
Copy link
Member

@astrofrog astrofrog commented Oct 19, 2018

This is because the default mode ('readonly') results in files being opened with mmap with the ACCESS_COPY flag, which doesn't work properly on some platforms when the available address space is less than the file size.

cc @Cadair

@astrofrog astrofrog added the io label Oct 19, 2018
@astrofrog astrofrog added this to the v0.14.0 milestone Oct 19, 2018
@codecov
Copy link

codecov bot commented Oct 19, 2018

Codecov Report

Merging #1884 into master will increase coverage by 0.17%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1884      +/-   ##
==========================================
+ Coverage    85.5%   85.68%   +0.17%     
==========================================
  Files         235      235              
  Lines       20875    21087     +212     
==========================================
+ Hits        17850    18068     +218     
+ Misses       3025     3019       -6
Impacted Files Coverage Δ
glue/core/data_factories/fits.py 89.06% <75%> (ø) ⬆️
glue/core/data.py 92.71% <0%> (+3.5%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b2c81b3...22e9d4c. Read the comment docs.

This is because the default mode ('readonly') results in files being opened with mmap with the ACCESS_COPY flag, which doesn't work properly on some platforms when the available address space is less than the file size.
@astrofrog astrofrog merged commit c3d970e into glue-viz:master Oct 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant