Skip to content

Instantly share code, notes, and snippets.

@jean
Created November 27, 2012 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jean/4153656 to your computer and use it in GitHub Desktop.
Save jean/4153656 to your computer and use it in GitHub Desktop.
Logging attainment
ratings_per_output:
{'def077b2d8a9623f66e9d14b569e977f': {'2010/11-4': {'attained': 0, 'total': 2, 'not_attained': 2, 'attained_late': 0},
'2010/11-2': {'attained': 0, 'total': 2, 'not_attained': 2, 'attained_late': 0}},
'd05cfa5ffe2340421dcfdfcf5b32020c': {'2010/11-4': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0},
'2010/11-5': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0}},
'343706558fd8d80ae5b6d9ea1edfcd2d': {'2010/11-4': {'attained': 0, 'total': 2, 'not_attained': 0, 'attained_late': 2}},
'df133063aae4429bff44e23c9a97ea69': {'2010/11-4': {'attained': 1, 'total': 1, 'not_attained': 0, 'attained_late': 0},
'2010/11-2': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0},
'2010/11-3': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0}},
'd48f1ce97cc2182c98080a6ce1465008': {'2010/11-2': {'attained': 0, 'total': 1, 'not_attained': 0, 'attained_late': 1}},
'4fae84d9aced9d9e5c228966c1701f63': {'2010/11-4': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0},
'2010/11-1': {'attained': 0, 'total': 5, 'not_attained': 5, 'attained_late': 0},
'2010/11-2': {'attained': 0, 'total': 3, 'not_attained': 3, 'attained_late': 0}},
'fd7df7be368024cdf05ae0c3a6677292': {'2010/11-4': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0},
'2010/11-3': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0}},
'e0604c7ef97cfa5ce53813a31454085a': {'2010/11-3': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0}},
'17b206edb37dd028f157d815f7a127f2': {'2010/11-1': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0},
'2010/11-2': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0}},
'e523e37b2b830f8174a19d1ec236296f': {'2010/11-4': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0},
'2010/11-2': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0},
'2010/11-3': {'attained': 0, 'total': 2, 'not_attained': 2, 'attained_late': 0}},
'e2e873db78d5bd6ee9e05fe1aca11178': {'2010/11-4': {'attained': 1, 'total': 1, 'not_attained': 0, 'attained_late': 0}},
'3ad38498073db7e4f2d2da50073f1529': {'2010/11-4': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0},
'2010/11-3': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0}}}
ratings_per_period: {'attained': 0, 'total': 6, 'not_attained': 6, 'attained_late': 0}
@jean
Copy link
Author

jean commented Nov 27, 2012

In this case we are looking at '2010/11-1' so there are two relevant lines:

'2010/11-1': {'attained': 0, 'total': 5, 'not_attained': 5, 'attained_late': 0},
'2010/11-1': {'attained': 0, 'total': 1, 'not_attained': 1, 'attained_late': 0},

Together they make up the total:
{'attained': 0, 'total': 6, 'not_attained': 6, 'attained_late': 0}

@jean
Copy link
Author

jean commented Nov 27, 2012

Here we have two outputs with ratings in the period we're looking at:
4fae84d9aced9d9e5c228966c1701f63 and 17b206edb37dd028f157d815f7a127f2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment