I hereby claim:
- I am astopy on github.
- I am astopy (https://keybase.io/astopy) on keybase.
- I have a public key whose fingerprint is CFA3 8B0E 8701 160B 96B2 5723 F592 0D1A 64A0 1E73
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
NoMethodError: undefined method `type' for main:Object | |
(root) at /rails_app/app/schemas/subject_set_create_schema.rb:1 | |
require at org/jruby/RubyKernel.java:1065 | |
require at /usr/local/lib/ruby/gems/shared/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247 | |
load_dependency at /usr/local/lib/ruby/gems/shared/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:232 | |
require at /usr/local/lib/ruby/gems/shared/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247 | |
require_or_load at /usr/local/lib/ruby/gems/shared/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:348 | |
depend_on at /usr/local/lib/ruby/gems/shared/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:307 | |
require_dependency at /usr/local/lib/ruby/gems/shared/gems/activesupport-4 |
import csv | |
import json | |
import sys | |
csv.field_size_limit(sys.maxsize) | |
with open('classifications.csv') as f: | |
r = csv.DictReader(f) | |
for row in r: |
def lookup(old_user_id, project) | |
p = Project.find(BSON::ObjectId(project)) | |
c = p.classifications.where("user_id" => BSON::ObjectId(old_user_id)).first | |
u = User.where(name: c.attributes['user_name']).first | |
if u | |
[ c.attributes['user_id'], u.id ] | |
end | |
end | |
users_and_projects = [ |
require 'json' | |
checked_subjects = [] | |
all_valid = true | |
File.open('illustrisSubjectsForActivation.json').read.each_line do |line| | |
h = JSON.parse(line) | |
s = GalaxyZooSubject.find(BSON::ObjectId(h['_id'])) | |
if not s | |
all_valid = false |
import csv | |
import json | |
import os | |
import sys | |
import time | |
from panoptes_client import Panoptes, Subject | |
# Remove admin=True if you're a project collaborator/owner | |
Panoptes.connect( |
import csv | |
import json | |
import sys | |
EXPERT_USERS = ( | |
'mutabilitie', | |
'parsfan', | |
'jules', | |
'hwolfe', |
import boto3 | |
import requests | |
from panoptes_client import Panoptes, Project, SubjectSet, Subject | |
Panoptes.connect( | |
username='', | |
password='', | |
) |
import csv | |
INCLUDED_FIELDS = ( | |
'classification_id', | |
'subject_ids', | |
'user_name', | |
'metadata', | |
'annotations' | |
) |
import csv | |
import json | |
import sys | |
csv.field_size_limit(sys.maxsize) | |
line_count = {} | |
with open('shakespeares-world-classifications.csv') as f: | |
r = csv.DictReader(f) |