-
Notifications
You must be signed in to change notification settings - Fork 5
Placeholder notes
Laura Trouille edited this page Jul 16, 2019
·
7 revisions
Command to update metadata:
Command to link subjects to a new subject set:
panoptes subject-set add-subjects --help panoptes subject-set add-subjects $NEW_SUBJECT_SET_ID $SUBJECT_ID_1 $SUBJECT_ID_2
cat subjects2link.csv | xargs panoptes subject-set add-subjects 15193
Note: not recommended to remove subjects:
panoptes subject-set remove-subjects --help
Command to pull credited names:
from panoptes_client import User
--> use this if you only know the login
for user in User.where(login='camallen'):
print user.login
print user.credited_name
--> use this if you know the user id
user = User.find(6)
print user.login
print user.credited_name