Skip to content

Commit

Permalink
Merge pull request #15 from hsorby/main
Browse files Browse the repository at this point in the history
Update isSourceOf to IsSourceOf and other Datacite terms.
  • Loading branch information
hsorby authored Sep 5, 2024
2 parents 1696e62 + a3bb3a3 commit 4b2ca9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/sparc/curation/tools/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
MANIFEST_FILENAME = 'manifest.xlsx'

ADDITIONAL_TYPES_COLUMN = 'additional types'
ANATOMICAL_ENTITY_COLUMN = 'isAboutAnatomicalEntity'
DERIVED_FROM_COLUMN = 'isDerivedFrom'
ANATOMICAL_ENTITY_COLUMN = 'IsAboutAnatomicalEntity'
DERIVED_FROM_COLUMN = 'IsDerivedFrom'
FILE_LOCATION_COLUMN = 'file_location'
FILENAME_COLUMN = 'filename'
MANIFEST_DIR_COLUMN = 'manifest_dir'
SHEET_NAME_COLUMN = 'sheet_name'
SOURCE_OF_COLUMN = 'isSourceOf'
SOURCE_OF_COLUMN = 'IsSourceOf'
SUPPLEMENTAL_JSON_COLUMN = 'Supplemental JSON Metadata'

MIMETYPE_TO_FILETYPE_MAP = {
Expand Down
4 changes: 2 additions & 2 deletions tests/test_scaffold_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def test_annotate_bare_scaffold_multiple_views_thumbnails(self):

self.assertEqual(0, len(remaining_errors))
self.assertEqual('rat_brainstem_Layout1_view.json', df['filename'][1])
self.assertEqual('rat_brainstem_Layout1_thumbnail.jpeg', df['isSourceOf'][1])
self.assertEqual('rat_brainstem_Layout1_thumbnail.jpeg', df['IsSourceOf'][1])
self.assertEqual('rat_brainstem_Layout2_view.json', df['filename'][4])
self.assertEqual('rat_brainstem_Layout2_thumbnail.jpeg', df['isSourceOf'][4])
self.assertEqual('rat_brainstem_Layout2_thumbnail.jpeg', df['IsSourceOf'][4])

def test_annotate_bare_multiple_scaffolds(self):
dulwich_checkout(self._repo, b"origin/no_scaffold_annotations_multiple_scaffolds")
Expand Down

0 comments on commit 4b2ca9e

Please sign in to comment.