Skip to content

Commit

Permalink
Rename Repository to quicknxs (#119)
Browse files Browse the repository at this point in the history
Rename repository to quicknxs
  • Loading branch information
ktactac-ornl authored Jan 13, 2025
1 parent 6e5bccb commit 4792eb7
Show file tree
Hide file tree
Showing 180 changed files with 415 additions and 983 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
id: cache-lfs
uses: actions/cache@v4
with:
path: test/data/reflectivity_ui-data/
path: test/data/quicknxs-data/
key: submodule-${{ env.SUBMODULE_KEY }}

- name: Pull LFS files for the submodule
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Unit test with code coverage
run: |
# run tests requiring git lfs (may need to switch to a self-hosted runner)
xvfb-run -a python -m pytest -vv --cov=reflectivity_ui --cov-report=xml --cov-report=term
xvfb-run -a python -m pytest -vv --cov=quicknxs --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand All @@ -61,12 +61,12 @@ jobs:
- name: Build Wheel
run: |
python -m build --wheel --no-isolation
check-wheel-contents dist/reflectivity_ui-*.whl
check-wheel-contents dist/quicknxs-*.whl
- name: Build Conda package
run: |
conda mambabuild --output-folder . . -c mantid
conda verify noarch/reflectivity_ui-*.tar.bz2
conda verify noarch/quicknxs-*.tar.bz2
- name: Deploy to Anaconda
if: startsWith(github.ref, 'refs/tags/v')
Expand All @@ -80,7 +80,7 @@ jobs:
if [ "${IS_RC}" = "true" ]; then CONDA_LABEL="rc"; fi
if [ "${IS_DEV}" = "true" ]; then CONDA_LABEL="dev"; fi
echo pushing ${{ github.ref }} with label $CONDA_LABEL
anaconda upload --label $CONDA_LABEL noarch/reflectivity_ui-*.tar.bz2
anaconda upload --label $CONDA_LABEL noarch/quicknxs-*.tar.bz2
trigger-deploy:
runs-on: ubuntu-22.04
Expand Down
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "test/data/reflectivity_ui-data"]
path = test/data/reflectivity_ui-data
url = https://code.ornl.gov/sns-hfir-scse/infrastructure/test-data/reflectivity_ui-data.git
[submodule "test/data/quicknxs-data"]
path = test/data/quicknxs-data
url = https://code.ornl.gov/sns-hfir-scse/infrastructure/test-data/quicknxs-data.git
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File introduces automated checks triggered on git events
# to enable run `pip install pre-commit && pre-commit install`
exclude: ^reflectivity_ui/interfaces/generated/
exclude: ^quicknxs/interfaces/generated/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
Expand Down
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include README.md
include reflectivity_ui/*
recursive-include reflectivity_ui/icons *.png *.svg *.ico
include quicknxs/*
recursive-include quicknxs/icons *.png *.svg *.ico
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!-- Badges -->

![Build Status](https://github.com/neutrons/reflectivity_ui/actions/workflows/actions.yml/badge.svg)
![Build Status](https://github.com/neutrons/quicknxs/actions/workflows/actions.yml/badge.svg)
[![Documentation Status](https://readthedocs.org/projects/reflectivity-ui/badge/?version=latest)](https://reflectivity-ui.readthedocs.io/en/latest/?badge=latest)
[![codecov](https://codecov.io/gh/neutrons/reflectivity_ui/branch/master/graph/badge.svg)](https://codecov.io/gh/neutrons/reflectivity_ui)
[![codecov](https://codecov.io/gh/neutrons/quicknxs/branch/master/graph/badge.svg)](https://codecov.io/gh/neutrons/quicknxs)

<!-- End Badges -->

Expand Down Expand Up @@ -40,7 +40,7 @@ python -m build --no-isolation --wheel
now you can install QuickNXS via the generated wheel on other system

```bash
python3 -m pip install reflectivity_ui*.whl
python3 -m pip install quicknxs*.whl
```

## Run
Expand Down
10 changes: 5 additions & 5 deletions bin/RefRedM
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ sys.excepthook = no_abort_excepthook

# Avoid clash with user-installed packages
for item in sys.path:
if ".local" in item and "reflectivity_ui" not in item:
if ".local" in item and "quicknxs" not in item:
sys.path.remove(item)
for item in sys.modules:
m = sys.modules.setdefault(item, types.ModuleType(item))
if m is not None:
mp = m.__dict__.setdefault("__path__", [])
for loc in mp:
if ".local" in loc and "reflectivity_ui" not in loc:
if ".local" in loc and "quicknxs" not in loc:
logging.warning("Removing local reference to %s" % loc)
mp.remove(loc)

Expand All @@ -51,15 +51,15 @@ import matplotlib
matplotlib.use("Qt5Agg")

import mantid
import reflectivity_ui
import quicknxs

print("##################################################")
print("# QuickNXS %s " % reflectivity_ui.__version__)
print("# QuickNXS %s " % quicknxs.__version__)
print("# with Mantid: %s " % mantid.__version__)
print("##################################################")

from PyQt5.QtWidgets import QApplication
from reflectivity_ui.interfaces.main_window import MainWindow
from quicknxs.interfaces.main_window import MainWindow


def main():
Expand Down
6 changes: 3 additions & 3 deletions bin/quicknxs2
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ import matplotlib
matplotlib.use("Qt5Agg")

import mantid
import reflectivity_ui
import quicknxs

print("##################################################")
print("# QuickNXS %s " % reflectivity_ui.__version__)
print("# QuickNXS %s " % quicknxs.__version__)
print("# with Mantid: %s " % mantid.__version__)
print("##################################################")

from PyQt5.QtWidgets import QApplication
from reflectivity_ui.interfaces.main_window import MainWindow
from quicknxs.interfaces.main_window import MainWindow


def main():
Expand Down
Loading

0 comments on commit 4792eb7

Please sign in to comment.