Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-965

Create a "tutorials" package in /contrib

    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.

        Attachments

          Issue Links

            Activity

            Hide
            krughoff 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
            krughoff 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
            krughoff 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.

            Show
            krughoff 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
            shaw 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
            shaw 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
            krughoff 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
            krughoff 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
            swinbank John Swinbank added a comment -

            Obsolete.

            Show
            swinbank John Swinbank added a comment - Obsolete.

              People

              • Assignee:
                shaw Richard Shaw [X] (Inactive)
                Reporter:
                shaw Richard Shaw [X] (Inactive)
                Reviewers:
                Simon Krughoff
                Watchers:
                John Swinbank, Richard Shaw [X] (Inactive), Simon Krughoff
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel