Skip to content

Commit

Permalink
decrease scanning frequency of codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
jcreinhold committed Jan 3, 2022
1 parent a66b572 commit 7e87bc6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: "CodeQL"

on:
push:
branches: [ master ]
release:
types: [ published ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '22 1 * * 0'
- cron: '22 1 15 */2 *'

jobs:
analyze:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
9 changes: 9 additions & 0 deletions intensity_normalization/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
"""Top-level package for intensity-normalization."""

import logging

__title__ = "intensity-normalization"
__description__ = "normalize the intensities of various MR image modalities"
__url__ = "https://github.com/jcreinhold/intensity-normalization"
__author__ = """Jacob Reinhold"""
__email__ = "[email protected]"
__version__ = "2.1.2"
__license__ = "Apache-2.0"
__copyright__ = "Copyright 2021 Jacob Reinhold"

PEAK = {
"last": ["t1", "other", "last"],
Expand All @@ -11,3 +18,5 @@
}
VALID_PEAKS = {m for modalities in PEAK.values() for m in modalities}
VALID_MODALITIES = VALID_PEAKS - {"last", "largest", "first"}

logging.getLogger(__name__).addHandler(logging.NullHandler())

0 comments on commit 7e87bc6

Please sign in to comment.