Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Last active January 19, 2020 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jcoyne/e9823052f8559a960f8b to your computer and use it in GitHub Desktop.
Save jcoyne/e9823052f8559a960f8b to your computer and use it in GitHub Desktop.
Test characterization hydra pcdm goldenseal curationexperts
fs = FileSet.find('mp48sc83h')
file_name = 'tmp/uploads/mp/48/sc/83/letz_01_0020_019.tif'
service = Hydra::Works::CharacterizationService.new(fs, file_name, {})
fits_output = service.send(:extract_metadata, file_name)
terms = service.send(:parse_metadata, fits_output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment