From velasnr at gmail.com Fri May 14 15:42:00 2010 From: velasnr at gmail.com (Michelle Dolan) Date: Fri, 14 May 2010 15:42:00 -0400 Subject: [Tioga-users] tioga with mesa star Message-ID: I have installed mesa/star on OSX, and it runs fine. I wanted to view the star history using Tioga. Tioga seemed to install fine using both the QUICKINSTALL and the HOMEINSTALL. However, when I run the star history ruby script I get the following error: /Users/shelley/Research/MESA/mesa/star/test/star_history/lib/history_logs.rb:8: uninitialized constant HistoryLogs::Tioga (NameError) from /Users/shelley/Research/MESA/mesa/star/test/star_history/load_star_history.rb:5:in `load' from /Users/shelley/Research/MESA/mesa/star/test/star_history/load_star_history.rb:5 from ./load.rb:8:in `load' from ./load.rb:8 from history_by_age.rb:4:in `load' from history_by_age.rb:4 Then I tried some of the tioga samples, which work if I give the full path to the Tioga executable. So it seems like the Tioga library for Ruby isn't installed. But it gave no errors when installed, and I created the RUBYLIB MacOS environment variable, so I don't know what to do now. Has anyone seen this error before? Thanks. ~Shelley -- Michelle Dolan Ph.D Graduate Student Department of Physics 341 Nieuwland Science Hall University of Notre Dame (574) 520-3188 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paxton at kitp.ucsb.edu Fri May 14 16:36:27 2010 From: paxton at kitp.ucsb.edu (Bill Paxton) Date: Fri, 14 May 2010 13:36:27 -0700 Subject: [Tioga-users] tioga with mesa star In-Reply-To: References: Message-ID: <12C44CC2-69EF-4418-8977-D2A56330F6D6@kitp.ucsb.edu> On May 14, 2010, at 12:42 PM, Michelle Dolan wrote: > when I run the star history ruby script If I do ruby history_by_step.rb I get an error like the one you reported. But if I do tioga history_by_step.rb it seems to work okay. Let me know if that works for you too. Cheers, Bill From paxton at kitp.ucsb.edu Fri May 14 16:08:18 2010 From: paxton at kitp.ucsb.edu (Bill Paxton) Date: Fri, 14 May 2010 13:08:18 -0700 Subject: [Tioga-users] tioga with mesa star In-Reply-To: References: Message-ID: <4B147290-D2CB-400D-8650-D889DDAF3DBF@kitp.ucsb.edu> Hi Shelley, Are you able to use tioga independently of mesa? Try this: cd tioga/samples/plots ruby plots It should write a line saying it is loading plots.rb, followed by a line saying 'Blues_figure.pdf' Also, it all goes well, it should open the pdf in Preview. It will look like this: -------------- next part -------------- A non-text attachment was scrubbed... Name: Blues.pdf Type: application/pdf Size: 13131 bytes Desc: not available URL: -------------- next part -------------- Once that works, then we can deal with using the mesa scripts. Cheers, Bill On May 14, 2010, at 12:42 PM, Michelle Dolan wrote: > I have installed mesa/star on OSX, and it runs fine. I wanted to view the star history using Tioga. Tioga seemed to install fine using both the QUICKINSTALL and the HOMEINSTALL. However, when I run the star history ruby script I get the following error: > > /Users/shelley/Research/MESA/mesa/star/test/star_history/lib/history_logs.rb:8: uninitialized constant HistoryLogs::Tioga (NameError) > from /Users/shelley/Research/MESA/mesa/star/test/star_history/load_star_history.rb:5:in `load' > from /Users/shelley/Research/MESA/mesa/star/test/star_history/load_star_history.rb:5 > from ./load.rb:8:in `load' > from ./load.rb:8 > from history_by_age.rb:4:in `load' > from history_by_age.rb:4 > > Then I tried some of the tioga samples, which work if I give the full path to the Tioga executable. So it seems like the Tioga library for Ruby isn't installed. But it gave no errors when installed, and I created the RUBYLIB MacOS environment variable, so I don't know what to do now. Has anyone seen this error before? Thanks. > > ~Shelley > > -- > Michelle Dolan > Ph.D Graduate Student > Department of Physics > 341 Nieuwland Science Hall > University of Notre Dame > (574) 520-3188 > _______________________________________________ > Tioga-users mailing list > Tioga-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/tioga-users From jschwab at gmail.com Mon May 24 17:56:06 2010 From: jschwab at gmail.com (Josiah Schwab) Date: Mon, 24 May 2010 14:56:06 -0700 Subject: [Tioga-users] Populate a Dvector over an Interval Message-ID: Greetings, What's the Ruby-est way to populate a Dvector with N values evenly spaced in an interval [lower, upper]? Currently I'm doing something like this def drange(npts, min, max) return Dvector.new(npts) {|i| min + i/(npts-1e0) * (max - min)} end which works just fine, but feels not so great. Is there a cute built-in I'm missing? Thanks, Josiah