-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reproducing Screening and Correlation * Reproducing Hit Validation * Remove checkbox changning * Change gitignore * Add alerts * Resolve
- Loading branch information
1 parent
0c37bf2
commit 0037dad
Showing
11 changed files
with
456 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ tmp/ | |
**/out/ | ||
|
||
# Data | ||
data | ||
./data | ||
data/raw/* | ||
!data/raw/.gitkeep | ||
notebooks/data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import base64 | ||
import io | ||
import json | ||
|
||
|
||
def load_data_from_json(content: str | None, name: str | None) -> dict | None: | ||
if content is None: | ||
return None | ||
file = None | ||
|
||
_, extension = name.split(".") | ||
if extension == "json": | ||
_, content_string = content.split(",") | ||
decoded = base64.b64decode(content_string) | ||
file = io.StringIO(decoded.decode("utf-8")) | ||
|
||
loaded_data = None | ||
if file: | ||
loaded_data = json.load(file) | ||
|
||
return loaded_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.