Skip to content

Instantly share code, notes, and snippets.

@jayanthdeejay
Forked from jcoyne/characterization.rb
Created January 19, 2020 03:52
Show Gist options
  • Save jayanthdeejay/b38e9cc7a7c35dd7c3641759be16f3f8 to your computer and use it in GitHub Desktop.
Save jayanthdeejay/b38e9cc7a7c35dd7c3641759be16f3f8 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