Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

h2region.speck - star forming regions #27

Open
jdmcpeek opened this issue Nov 11, 2014 · 1 comment
Open

h2region.speck - star forming regions #27

jdmcpeek opened this issue Nov 11, 2014 · 1 comment

Comments

@jdmcpeek
Copy link
Contributor

This one's pretty easy, we should be able to use the general parser.

@jdmcpeek
Copy link
Contributor Author

I added the task to parser.rake, but no rake tasks are working. Every task encounters the Nil:NilClass error. I'm wondering if the rakefile just isn't getting the speck data (hence a Nil error) through Net::HTTP/ research.amnh.org. Will we need to traverse that firewall again?

(in parser.rake)
desc "Generic Parser for speck files"
task :generic, [:file_name, :model_class] => :environment do |task, args|
spec_uri = "/users/abbott/dudata/milkyway/specks/#{args.file_name}"
spec_file = Tempfile.new('speck')
Net::HTTP.start("research.amnh.org") do |http|
resp = http.get(spec_uri)
open(spec_file, "wb") do |file|
file.write(resp.body)
end
end

@surenm @wallyqs should this block of code still work?

@surenm surenm modified the milestone: Parse all speck files. May 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants