Skip to content

Commit

Permalink
Merge pull request IQSS#9849 from IQSS/9808-fits2
Browse files Browse the repository at this point in the history
get FITS metadata extraction working again post PR 9841
  • Loading branch information
kcondon authored Aug 30, 2023
2 parents 3e46adf + 7c0c952 commit 82dc11b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
<dependency>
<groupId>gov.nasa.gsfc.heasarc</groupId>
<artifactId>nom-tam-fits</artifactId>
<version>1.18.0</version>
<version>1.12.0</version>
</dependency>
<dependency>
<groupId>net.handle</groupId>
Expand Down
1 change: 1 addition & 0 deletions src/test/java/edu/harvard/iq/dataverse/api/FitsIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void testAstroFieldsFromFits() throws IOException {
getJson.prettyPrint();
getJson.then().assertThat()
.statusCode(OK.getStatusCode())
.body("data.latestVersion.files[0].description", equalTo("FITS file, 2 HDUs total:\nThe primary HDU; 1 Table HDU(s) 1 Image HDU(s); \nThe following recognized metadata keys have been found in the FITS file:\nCRVAL2; NAXIS; INSTRUME; NAXIS1; NAXIS0; EXPTIME; CD1_1; CRVAL1; TARGNAME; DATE-OBS; \n"))
.body("data.latestVersion.metadataBlocks.astrophysics.fields[0].value[0]", equalTo("Image"));

// a bit more precise than the check for "Image" above (but annoyingly fiddly)
Expand Down

0 comments on commit 82dc11b

Please sign in to comment.