-
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.
Merge pull request #84 from flatironinstitute/83-add-linting-test-enf…
…orce-pre-commit-definitions add linting check
- Loading branch information
Showing
23 changed files
with
398 additions
and
217 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Runs the Ruff linter and formatter. | ||
|
||
name: Lint | ||
|
||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: chartboost/ruff-action@v1 |
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 +1,3 @@ | ||
from cryo_challenge.__about__ import __version__ | ||
from cryo_challenge.__about__ import __version__ | ||
|
||
__all__ = ["__version__"] |
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,6 +1,7 @@ | ||
import numpy as np | ||
|
||
|
||
def res_at_fsc_threshold(fscs, threshold=0.5): | ||
res_fsc_half = np.argmin(fscs > threshold, axis=-1) | ||
fraction_nyquist = 0.5*res_fsc_half / fscs.shape[-1] | ||
return res_fsc_half, fraction_nyquist | ||
fraction_nyquist = 0.5 * res_fsc_half / fscs.shape[-1] | ||
return res_fsc_half, fraction_nyquist |
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,18 @@ | ||
from ._validation.config_validators import validate_input_config_disttodist as validate_input_config_disttodist | ||
from ._validation.config_validators import validate_config_dtd_optimal_q_kl as validate_config_dtd_optimal_q_kl | ||
from cryo_challenge.data._validation.output_validators import DistributionToDistributionResultsValidator as DistributionToDistributionResultsValidator | ||
from cryo_challenge.data._validation.output_validators import MetricDistToDistValidator as MetricDistToDistValidator | ||
from cryo_challenge.data._validation.output_validators import ReplicateValidatorEMD as ReplicateValidatorEMD | ||
from cryo_challenge.data._validation.output_validators import ReplicateValidatorKL as ReplicateValidatorKL | ||
from ._validation.config_validators import ( | ||
validate_input_config_disttodist as validate_input_config_disttodist, | ||
) | ||
from ._validation.config_validators import ( | ||
validate_config_dtd_optimal_q_kl as validate_config_dtd_optimal_q_kl, | ||
) | ||
from cryo_challenge.data._validation.output_validators import ( | ||
DistributionToDistributionResultsValidator as DistributionToDistributionResultsValidator, | ||
) | ||
from cryo_challenge.data._validation.output_validators import ( | ||
MetricDistToDistValidator as MetricDistToDistValidator, | ||
) | ||
from cryo_challenge.data._validation.output_validators import ( | ||
ReplicateValidatorEMD as ReplicateValidatorEMD, | ||
) | ||
from cryo_challenge.data._validation.output_validators import ( | ||
ReplicateValidatorKL as ReplicateValidatorKL, | ||
) |
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.