Skip to content

Commit

Permalink
Merge pull request #40 from caracal-pipeline/rfin_mode
Browse files Browse the repository at this point in the history
Update rfi mode and enable param
  • Loading branch information
Athanaseus authored Jul 31, 2024
2 parents 4f0d3e7 + 16c1f8e commit f1831e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: '3.x'
python-version: '3.10'

- name: Install latest setuptools, wheel, pip
run: python3 -m pip install -U pip setuptools wheel
Expand Down Expand Up @@ -53,17 +53,9 @@ jobs:
- name: Build distribution
run: poetry build

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
continue-on-error: true

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_TOKEN_RFINDER }}
3 changes: 2 additions & 1 deletion rfinder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,9 @@ def setArgs(self,args):
else:
self.cfg_par['general']['outlabel'] = '_'+self.cfg_par['general']['outlabel']

if (args.rfimode == 'rms_clip' or args.rfimode == 'use_flag'):
if (args.rfimode == 'rms_clip' or args.rfimode == 'use_flags'):
self.cfg_par['rfi']['RFInder_mode'] = args.rfimode
self.cfg_par['rfi']['rfi_enable'] = True
if args.sigma_clip:
self.cfg_par['rfi']['rms_clip'] = args.sigma_clip
if args.frequency_interval:
Expand Down

0 comments on commit f1831e9

Please sign in to comment.