Skip to content

Commit

Permalink
Add USPTO-480K dataset from https://doi.org/10.1039/C8SC04228D (#61) (#…
Browse files Browse the repository at this point in the history
…64)

* Add USPTO-480K dataset from https://doi.org/10.1039/C8SC04228D (#61)

* Add USPTO-480K dataset from https://doi.org/10.1039/C8SC04228D

* trigger

* bump ord-schema version

* update to just use reaction smiles

* bump ord-schema version

* trigger

* remove LFS placeholder

* REACTION_SMILES

* fix typo

* Update submission

* Update badges

* Update validation.yml

* Update submission

* bump ord-schema version

* Update submission

Co-authored-by: github-actions <[email protected]>
  • Loading branch information
skearnes and github-actions authored Feb 18, 2021
1 parent 87a64b9 commit b8ec3a8
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ord_data-* filter=lfs diff=lfs merge=lfs -text
*.pb filter=lfs diff=lfs merge=lfs -text
*.pb.gz filter=lfs diff=lfs merge=lfs -text
8 changes: 4 additions & 4 deletions .github/workflows/submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: Submission
on: [pull_request, push]

env:
ORD_SCHEMA_TAG: v0.2.7
ORD_SCHEMA_TAG: v0.2.12

jobs:
count_reactions:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
run: |
cd "${GITHUB_WORKSPACE}"
git diff --name-only upstream/main > changed_files.txt
grep -vE '\.pb(txt)?$' changed_files.txt && \
grep -vE '\.pb(txt)?(.gz)?$' changed_files.txt && \
echo "Error: submissions must only contain *.pbtxt or *.pb files" && \
exit 1 || true
if: >-
Expand All @@ -78,7 +78,7 @@ jobs:
run: |
cd "${GITHUB_WORKSPACE}"
git diff --name-only upstream/main > changed_files.txt
grep -vE '\.pbtxt$|\.pb$|\.svg$' changed_files.txt && \
grep -vE '\.pbtxt(.gz)?$|\.pb(.gz)?$' changed_files.txt && \
echo "Error: submission contains unusual file types" && \
exit 1 || true
if: >-
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
echo "Found $(wc -l < changed_files.txt | tr -d ' ') changed files"
cat changed_files.txt
# Use `|| (( $? == 1 ))` in case no lines match (exit code is nonzero).
grep -E "\.pb$" changed_files.txt > changed_pb_files.txt || (( $? == 1 ))
grep -E "\.pb(.gz)?$" changed_files.txt > changed_pb_files.txt || (( $? == 1 ))
# Use LOCAL_NUM_CHANGED since ::set-env values are not available immediately.
LOCAL_NUM_CHANGED="$(wc -l < changed_pb_files.txt | tr -d ' ')"
echo "NUM_CHANGED_FILES=${LOCAL_NUM_CHANGED}" >> $GITHUB_ENV
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ on:
push:
branches:
- main
schedule:
# Runs every night at midnight.
- cron: '0 0 * * *'
pull_request:
paths:
# Runs when this file is modified in a PR.
- '.github/workflows/validation.yml'

env:
ORD_SCHEMA_TAG: v0.2.7
ORD_SCHEMA_TAG: v0.2.12

jobs:
validate_database:
Expand Down Expand Up @@ -45,4 +42,4 @@ jobs:
run: |
cd "${GITHUB_WORKSPACE}"
python ./ord-schema/ord_schema/scripts/process_dataset.py \
--input_pattern="data/*/*.pb"
--input_pattern="data/*/*.pb*"
2 changes: 1 addition & 1 deletion badges/reactions.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions data/48/ord_dataset-488402f6ec0d441ca2f7d6fabea7c220.pb.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/54/ord_dataset-5481550056a14935b76e031fb94b88be.pb.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/de/ord_dataset-de0979205c84441190feef587fef8d6d.pb.gz
Git LFS file not shown
3 changes: 0 additions & 3 deletions ord_data-lfs_temp.txt

This file was deleted.

0 comments on commit b8ec3a8

Please sign in to comment.