Skip to content

Commit

Permalink
Add streaming flag when slicing from compressed HDU.
Browse files Browse the repository at this point in the history
  • Loading branch information
at88mph committed Aug 10, 2022
1 parent 0470483 commit 00406d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cadc-data-ops-fits/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repositories {

sourceCompatibility = 1.8
group = 'org.opencadc'
version = '0.2.5'
version = '0.2.6'

description = 'OpenCADC FITS cutout library'
def git_url = 'https://github.com/opencadc/dal'
Expand All @@ -23,7 +23,7 @@ dependencies {
compile 'org.opencadc:cadc-soda-server:[1.2.1,2.0)'
compile 'org.opencadc:cadc-wcs:[2.0,3.0)'
compile 'org.opencadc:jsky:[1.0.0,2.0.0)'
compile 'org.opencadc:nom-tam-fits:[1.16.4,1.17.0)'
compile 'org.opencadc:nom-tam-fits:[1.16.5,1.17.0)'

// Use JUnit test framework
testCompile 'junit:junit:[4.13,5.0)'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private void writeSlices(final BasicHDU<?> hdu, List<ExtensionSlice> extensionSl
final boolean mefOutput, final boolean firstHDUAlreadyWritten, final int nextEndSize)
throws FitsException, NoOverlapException {
final ImageHDU imageHDU = (hdu instanceof CompressedImageHDU)
? ((CompressedImageHDU) hdu).asImageHDU() : (ImageHDU) hdu;
? ((CompressedImageHDU) hdu).asImageHDU(true) : (ImageHDU) hdu;
final Header header = imageHDU.getHeader();
final int[] dimensions = imageHDU.getAxes();

Expand Down

0 comments on commit 00406d9

Please sign in to comment.