Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
torque-sites
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
MediaWiki
torque-sites
Commits
eb07a2b4
Commit
eb07a2b4
authored
3 years ago
by
Frank Duncan
Browse files
Options
Downloads
Patches
Plain Diff
Add wildcard LFC Analysis pages to RE2030
parent
a163c829
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
competitions/RacialEquity2030/etl/compose-and-upload
+16
-0
16 additions, 0 deletions
competitions/RacialEquity2030/etl/compose-and-upload
competitions/RacialEquity2030/etl/deploy
+3
-0
3 additions, 0 deletions
competitions/RacialEquity2030/etl/deploy
with
19 additions
and
0 deletions
competitions/RacialEquity2030/etl/compose-and-upload
+
16
−
0
View file @
eb07a2b4
...
...
@@ -64,6 +64,9 @@ Command-line options:
between experts and the proposals they evaluated,
with the extra data being their evaluation
--wildcards FILE FILE is a simle newline separated list of proposal keys
for the wildcard proposals.
--pare ARG If ARG is a number, reduce the number of items to 1/ARG. If
ARG begins with +, then ARG is a comma separated list of
keys to include. If ARG begins with @, then ARG is a
...
...
@@ -120,6 +123,7 @@ def main():
"
correction-file=
"
,
"
peer-to-peer-review=
"
,
"
expert-panel-review=
"
,
"
wildcards=
"
,
"
pare=
"
,
"
csv-only
"
,
],
...
...
@@ -135,6 +139,7 @@ def main():
correction_file
=
None
peer_to_peer_review_csv
=
None
expert_panel_review_csv
=
None
wildcards
=
None
pare
=
None
csv_only
=
False
for
o
,
a
in
opts
:
...
...
@@ -156,6 +161,8 @@ def main():
peer_to_peer_review_csv
=
a
elif
o
==
"
--expert-panel-review
"
:
expert_panel_review_csv
=
a
elif
o
==
"
--wildcards
"
:
wildcards
=
a
else
:
sys
.
stderr
.
write
(
"
ERROR: unrecognized option
'
%s
'
\n
"
%
o
)
sys
.
exit
(
2
)
...
...
@@ -395,6 +402,15 @@ def main():
"
{{ #tdcrender:RacialEquity2030/id/
"
+
key
+
"
.mwiki|LFCAnalysis }}
"
,
)
with
open
(
wildcards
)
as
f
:
for
key
in
f
.
read
().
splitlines
():
if
key
in
comp
.
proposals
:
proposal
=
comp
.
proposals
[
key
]
my_wiki
.
create_page
(
"
LFC Analysis of %s
"
%
proposal
.
cell
(
"
MediaWiki Title
"
),
"
{{ #tdcrender:RacialEquity/id/
"
+
key
+
"
.mwiki|LFCAnalysis }}
"
,
)
if
__name__
==
"
__main__
"
:
main
()
This diff is collapsed.
Click to expand it.
competitions/RacialEquity2030/etl/deploy
+
3
−
0
View file @
eb07a2b4
...
...
@@ -35,6 +35,7 @@ BASE_ATTACHMENTS="RE2020_Registration_Application_exports_2021-03-24_08-08-31.zi
FINALIST_ATTACHMENTS
=
"Finalist Attachments.zip"
CORRECTION_FILE
=
"OTS_Corrections.csv"
ADMIN_REVIEW_CSV
=
"Kellogg-AdminReview.csv"
WILDCARDS
=
"wildcards.dat"
TMP_ATTACHMENTS_DIR
=
"
${
DATA_DIR
}
/tmpattachments"
ATTACHMENTS_DIR
=
"
${
DATA_DIR
}
/attachments/"
...
...
@@ -73,6 +74,7 @@ if [ ! -d "${DATA_DIR}" ] ; then
decrypt
"
${
DATA_DIR
}
/
${
CORRECTION_FILE
}
"
"
${
ENCRYPTED_DIR
}
/
${
CORRECTION_FILE
}
.gpg"
"
${
GPG_PASSPHRASE
}
"
decrypt
"
${
DATA_DIR
}
/
${
P2P_RANKING_CSV
}
"
"
${
ENCRYPTED_DIR
}
/
${
P2P_RANKING_CSV
}
.gpg"
"
${
GPG_PASSPHRASE
}
"
decrypt
"
${
DATA_DIR
}
/
${
EP_RANKING_CSV
}
"
"
${
ENCRYPTED_DIR
}
/
${
EP_RANKING_CSV
}
.gpg"
"
${
GPG_PASSPHRASE
}
"
decrypt
"
${
DATA_DIR
}
/
${
WILDCARDS
}
"
"
${
ENCRYPTED_DIR
}
/
${
WILDCARDS
}
.gpg"
"
${
GPG_PASSPHRASE
}
"
mkdir
-p
${
TDC_CONFIG_DIR
}
...
...
@@ -113,6 +115,7 @@ ${RUNNER} --proposals-csv="${DATA_DIR}/${PROPOSALS_CSV}" \
--peer-to-peer-review
=
"
${
DATA_DIR
}
/
${
P2P_RANKING_CSV
}
"
\
--expert-panel-review
=
"
${
DATA_DIR
}
/
${
EP_RANKING_CSV
}
"
\
--correction-file
=
"
${
DATA_DIR
}
/
${
CORRECTION_FILE
}
"
\
--wildcards
=
"
${
DATA_DIR
}
/
${
WILDCARDS
}
"
\
$PARE
\
$CSV_ONLY
\
--tdc-config-dir
=
"
${
TDC_CONFIG_DIR
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment