-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added new categories (#1478) * added new categories * added try-except * bugfix list to dictionary * added output consistency field and blackened code * Update columns_information.py * Generalize Standard Run (#1411) * Modify header calculation to choose from predefined example output file or standard example output file * Remove the readiness function from SCRA because it is redundant, since those checks are also performed by the amenable function * Remove unused method * Make csv serialization work for any kind of model api response * Remove the standard flag from the CLI since it is now the default run * Update tests * Add Ruff as Linter and Formatter * Unnecessary files removed * Unnecessary files removed * Merge sample command with the example command (#1422) * Merge sample command with the example command * Fix example command usage * Unnecessary files removed * Unnecessary files removed * Unnecessary files removed * Generalize Standard Run (#1411) * Modify header calculation to choose from predefined example output file or standard example output file * Remove the readiness function from SCRA because it is redundant, since those checks are also performed by the amenable function * Remove unused method * Make csv serialization work for any kind of model api response * Remove the standard flag from the CLI since it is now the default run * Update tests * Unnecessary files removed * Unnecessary files removed * Unnecessary files removed * Unnecessary files removed * Unnecessary files removed * Generalize Standard Run (#1411) * Modify header calculation to choose from predefined example output file or standard example output file * Remove the readiness function from SCRA because it is redundant, since those checks are also performed by the amenable function * Remove unused method * Make csv serialization work for any kind of model api response * Remove the standard flag from the CLI since it is now the default run * Update tests * Unnecessary files removed * Unnecessary files removed * Unnecessary files removed * Unnecessary files removed * Unnecessary files removed * Reconfiguring ruff to make it simple * Generalize Standard Run (#1411) * Modify header calculation to choose from predefined example output file or standard example output file * Remove the readiness function from SCRA because it is redundant, since those checks are also performed by the amenable function * Remove unused method * Make csv serialization work for any kind of model api response * Remove the standard flag from the CLI since it is now the default run * Update tests * Unnecessary files removed * Unnecessary files removed * Unnecessary files removed * Unnecessary files removed * Unnecessary files removed * Upstream merge * Ruff importing sorting * updating readme for linting guidline * circular import fix * example command fix * few code fix * few code fix * few code fix * few code fix * few code fix * few code fix * few code fix * few code fix * few code fix * few code fix * few code fix * Code fix * Code fix * Code fix * Code fix * Code fix * Update close.py * Update test.py * Update information.py * Update test.py --------- Co-authored-by: Miquel Duran-Frigola <[email protected]> Co-authored-by: Dhanshree Arora <[email protected]>
- Loading branch information
1 parent
bc98caf
commit c41fb34
Showing
213 changed files
with
3,093 additions
and
1,127 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import sys | ||
import os | ||
import shutil | ||
import subprocess | ||
import sys | ||
|
||
model_repo = sys.argv[1] | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import sys | ||
|
||
from ersilia.publish.s3 import S3BucketRepoUploader | ||
|
||
model_id = sys.argv[1] | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import collections | ||
import json | ||
import os | ||
import collections | ||
|
||
OUTPUT = "secrets.json" | ||
|
||
|
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ on: | |
branches: [ master ] | ||
push: | ||
branches: [ master ] | ||
|
||
workflow_dispatch: | ||
|
||
permissions: | ||
|
@@ -14,42 +13,39 @@ permissions: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # [email protected] | ||
|
||
- name: Add conda to system path | ||
run: echo $CONDA/bin >> $GITHUB_PATH | ||
|
||
- name: Set Python to 3.10.10 | ||
run: | ||
conda install -y python=3.10.10 | ||
|
||
- name: Source conda | ||
run: source $CONDA/etc/profile.d/conda.sh | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
auto-update-conda: true | ||
python-version: "3.10.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
source activate | ||
conda init | ||
conda install git-lfs -c conda-forge | ||
git-lfs install | ||
conda install gh -c conda-forge | ||
- name: Install Ersilia | ||
run: | | ||
source activate | ||
python --version | ||
echo "After conda init" | ||
conda init | ||
python -m pip install -e .[test] | ||
- name: Run Ruff | ||
run: ruff check --output-format=github . | ||
|
||
- name: Hub catalog | ||
run: | | ||
ersilia catalog --hub | ||
- name: Fetch model from GitHub | ||
run: | | ||
source activate | ||
ersilia -v fetch molecular-weight --from_github | ||
echo "Serving molecular-weight model." | ||
ersilia serve molecular-weight --track | ||
|
@@ -59,7 +55,6 @@ jobs: | |
- name: Fetch model from S3 | ||
run: | | ||
source activate | ||
ersilia -v fetch molecular-weight --from_s3 | ||
echo "Serving molecular-weight model." | ||
ersilia serve molecular-weight --track | ||
|
@@ -69,7 +64,6 @@ jobs: | |
- name: Fetch model from DockerHub | ||
run: | | ||
source activate | ||
ersilia -v fetch molecular-weight --from_dockerhub | ||
echo "Serving molecular-weight model." --track | ||
ersilia serve molecular-weight | ||
|
@@ -79,4 +73,4 @@ jobs: | |
- name: Local catalog | ||
run: | | ||
ersilia catalog --local | ||
ersilia catalog --local |
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,7 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.8.4 | ||
hooks: | ||
- id: ruff | ||
args: [--fix] | ||
- id: ruff-format |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# External imports | ||
# ruff: noqa | ||
import os | ||
from ._version import __version__ | ||
import warnings | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
from ..utils.session import create_session_dir | ||
from .create_cli import create_ersilia_cli | ||
from .echo import echo | ||
from ..utils.session import create_session_dir | ||
|
||
cli = create_ersilia_cli() | ||
create_session_dir() | ||
if __name__ == "__main__": | ||
cli() | ||
|
||
__all__ = ["echo"] |
Oops, something went wrong.