# Create a "tutorials" package in /contrib

XMLWordPrintable

#### Details

• Type: Story
• Status: Won't Fix
• Resolution: Done
• Fix Version/s: None
• Component/s: None
• Labels:
• Sprint:
DevOps Sprint 3
• Team:
SQuaRE

#### Description

Create a "tutorials" package with helper scripts, configurations, and data files, and place under version control (git). Upload the package to the LSST cgit repository (in /contrib). Update the tutorials to instruct users how to download and use this package, and remove references to scripts attached directly to the tutorials pages.

#### Activity

Hide
Simon Krughoff added a comment -

Btw, I'm sure there is a better way to do #2 than the hacky awk script I wrote. I don't think it would be too hard to write a little python script to spit out the correct urls for all the data products. I avoided getting wget, and I think others will too.

Show
Simon Krughoff added a comment - Btw, I'm sure there is a better way to do #2 than the hacky awk script I wrote. I don't think it would be too hard to write a little python script to spit out the correct urls for all the data products. I avoided getting wget, and I think others will too.
Hide
Simon Krughoff added a comment -

Actually, adding the filter=r to the end of the lines in patches_r.txt broke the sed command you use later to create patches_r_runs.txt. If I put the filter=r earlier in the id it works fine.

I tried the following and get an error:
mysql $DB_NAME -h lsst10.ncsa.illinois.edu -u krughoff -p <$TUT_DIR/enable_keys.sql
ERROR 1347 (HY000) at line 6: 'krughoff_Stripe82_demo.Object' is not BASE TABLE
The error is because Object and Source are views so cannot have keys defined on it. I think the thing to do is to just remove Object and Source from the list in the sql file.

This tutorial is a fantastically comprehensive piece of work. As such it took me quite a long time to work my way through. The sections divide the steps nicely, but it may be more tractable to split it into separate single sitting pieces of the tutorial. Great work on this! It is very thorough.

Show
Simon Krughoff added a comment - In Assemble the Co-Adds: Actually, adding the filter=r to the end of the lines in patches_r.txt broke the sed command you use later to create patches_r_runs.txt. If I put the filter=r earlier in the id it works fine. In Loading the Science Database: I tried the following and get an error: mysql $DB_NAME -h lsst10.ncsa.illinois.edu -u krughoff -p <$TUT_DIR/enable_keys.sql Enter password: ERROR 1347 (HY000) at line 6: 'krughoff_Stripe82_demo.Object' is not BASE TABLE The error is because Object and Source are views so cannot have keys defined on it. I think the thing to do is to just remove Object and Source from the list in the sql file. General comments: This tutorial is a fantastically comprehensive piece of work. As such it took me quite a long time to work my way through. The sections divide the steps nicely, but it may be more tractable to split it into separate single sitting pieces of the tutorial. Great work on this! It is very thorough.
Hide
Richard Shaw [X] (Inactive) added a comment -

Simon, thanks for reviewing, and I'm flattered that you find this (looong) tutorial useful. It's very helpful to have someone who works on a different platform test this in detail. I'll work through the issues you identified in the next couple of days.

BTW, I didn't see any comments re: difficulty with fetching and using the tutorials package (of helper scripts). I take it that went smoothly, then.

Show
Richard Shaw [X] (Inactive) added a comment - Simon, thanks for reviewing, and I'm flattered that you find this (looong) tutorial useful. It's very helpful to have someone who works on a different platform test this in detail. I'll work through the issues you identified in the next couple of days. BTW, I didn't see any comments re: difficulty with fetching and using the tutorials package (of helper scripts). I take it that went smoothly, then.
Hide
Simon Krughoff added a comment -

That's right. I had no problem cloning or using the tutorial package. I don't know if it would be worth moving some of the cut and paste work into the tutorial package so that it could be versioned. There's tradeoff because the point is to get people familiar with how the command line tools work.

Show
Simon Krughoff added a comment - That's right. I had no problem cloning or using the tutorial package. I don't know if it would be worth moving some of the cut and paste work into the tutorial package so that it could be versioned. There's tradeoff because the point is to get people familiar with how the command line tools work.
Hide
John Swinbank added a comment -

Obsolete.

Show
John Swinbank added a comment - Obsolete.

#### People

Assignee:
Richard Shaw [X] (Inactive)
Reporter:
Richard Shaw [X] (Inactive)
Reviewers:
Simon Krughoff
Watchers:
John Swinbank, Richard Shaw [X] (Inactive), Simon Krughoff