nmrglue-ng 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nmrglue_ng-1.0.0/.github/scripts/check_installed_wheel.py +100 -0
- nmrglue_ng-1.0.0/.github/scripts/check_test_report.py +22 -0
- nmrglue_ng-1.0.0/INSTALL.txt +54 -0
- nmrglue_ng-1.0.0/LICENSE.txt +38 -0
- nmrglue_ng-1.0.0/MANIFEST.in +10 -0
- nmrglue_ng-1.0.0/PKG-INFO +224 -0
- nmrglue_ng-1.0.0/README.rst +184 -0
- nmrglue_ng-1.0.0/maintainer/testdata-manifest.toml +1867 -0
- nmrglue_ng-1.0.0/nmrglue/__init__.py +6 -0
- nmrglue_ng-1.0.0/nmrglue/analysis/__init__.py +8 -0
- nmrglue_ng-1.0.0/nmrglue/analysis/analysisbase.py +387 -0
- nmrglue_ng-1.0.0/nmrglue/analysis/helpers.py +58 -0
- nmrglue_ng-1.0.0/nmrglue/analysis/integration.py +207 -0
- nmrglue_ng-1.0.0/nmrglue/analysis/leastsqbound.py +342 -0
- nmrglue_ng-1.0.0/nmrglue/analysis/linesh.py +809 -0
- nmrglue_ng-1.0.0/nmrglue/analysis/lineshapes1d.py +603 -0
- nmrglue_ng-1.0.0/nmrglue/analysis/peakpick.py +561 -0
- nmrglue_ng-1.0.0/nmrglue/analysis/segmentation.py +563 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/__init__.py +16 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/bruker.py +2911 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/convert.py +618 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/fileiobase.py +797 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/glue.py +254 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/jcampdx.py +1148 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/jeol.py +768 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/nmrml.py +81 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/pipe.py +2613 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/rnmrtk.py +819 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/rs2d.py +256 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/simpson.py +407 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/sparky.py +1751 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/spinsolve.py +306 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/table.py +429 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/tecmag.py +535 -0
- nmrglue_ng-1.0.0/nmrglue/fileio/varian.py +2112 -0
- nmrglue_ng-1.0.0/nmrglue/process/__init__.py +5 -0
- nmrglue_ng-1.0.0/nmrglue/process/nmrtxt/__init__.py +1 -0
- nmrglue_ng-1.0.0/nmrglue/process/nmrtxt/rance_kay.py +38 -0
- nmrglue_ng-1.0.0/nmrglue/process/pipe_proc.py +3328 -0
- nmrglue_ng-1.0.0/nmrglue/process/proc_autophase.py +286 -0
- nmrglue_ng-1.0.0/nmrglue/process/proc_base.py +2780 -0
- nmrglue_ng-1.0.0/nmrglue/process/proc_bl.py +424 -0
- nmrglue_ng-1.0.0/nmrglue/process/proc_lp.py +1210 -0
- nmrglue_ng-1.0.0/nmrglue/util/__init__.py +1 -0
- nmrglue_ng-1.0.0/nmrglue/util/misc.py +212 -0
- nmrglue_ng-1.0.0/nmrglue/util/xcpy.py +469 -0
- nmrglue_ng-1.0.0/nmrglue/util/xcpy_test.py +31 -0
- nmrglue_ng-1.0.0/nmrglue_ng.egg-info/PKG-INFO +224 -0
- nmrglue_ng-1.0.0/nmrglue_ng.egg-info/SOURCES.txt +338 -0
- nmrglue_ng-1.0.0/nmrglue_ng.egg-info/dependency_links.txt +1 -0
- nmrglue_ng-1.0.0/nmrglue_ng.egg-info/requires.txt +18 -0
- nmrglue_ng-1.0.0/nmrglue_ng.egg-info/top_level.txt +1 -0
- nmrglue_ng-1.0.0/pyproject.toml +68 -0
- nmrglue_ng-1.0.0/pytest.ini +11 -0
- nmrglue_ng-1.0.0/scripts/generate_testdata_manifest.py +1538 -0
- nmrglue_ng-1.0.0/scripts/verify_testdata.py +606 -0
- nmrglue_ng-1.0.0/setup.cfg +4 -0
- nmrglue_ng-1.0.0/tests/analysis/test_analysis_integration.py +137 -0
- nmrglue_ng-1.0.0/tests/analysis/test_analysis_linesh.py +34 -0
- nmrglue_ng-1.0.0/tests/analysis/test_peakpick.py +245 -0
- nmrglue_ng-1.0.0/tests/conftest.py +79 -0
- nmrglue_ng-1.0.0/tests/fileio/_dataset_paths.py +7 -0
- nmrglue_ng-1.0.0/tests/fileio/test_agilent.py +176 -0
- nmrglue_ng-1.0.0/tests/fileio/test_bruker.py +387 -0
- nmrglue_ng-1.0.0/tests/fileio/test_bruker_pdata.py +464 -0
- nmrglue_ng-1.0.0/tests/fileio/test_bruker_with_test_data.py +140 -0
- nmrglue_ng-1.0.0/tests/fileio/test_convert.py +1893 -0
- nmrglue_ng-1.0.0/tests/fileio/test_convert_csdm.py +116 -0
- nmrglue_ng-1.0.0/tests/fileio/test_data_nd_subclasses.py +98 -0
- nmrglue_ng-1.0.0/tests/fileio/test_fileiobase.py +319 -0
- nmrglue_ng-1.0.0/tests/fileio/test_jcampdx.py +180 -0
- nmrglue_ng-1.0.0/tests/fileio/test_jcampdx_fixtures.py +1060 -0
- nmrglue_ng-1.0.0/tests/fileio/test_jcampdx_structure.py +68 -0
- nmrglue_ng-1.0.0/tests/fileio/test_jeol.py +151 -0
- nmrglue_ng-1.0.0/tests/fileio/test_jeol_2d_fixtures.py +97 -0
- nmrglue_ng-1.0.0/tests/fileio/test_jeol_fixtures.py +166 -0
- nmrglue_ng-1.0.0/tests/fileio/test_pipe.py +703 -0
- nmrglue_ng-1.0.0/tests/fileio/test_pipe_with_test_data.py +602 -0
- nmrglue_ng-1.0.0/tests/fileio/test_rnmrtk.py +37 -0
- nmrglue_ng-1.0.0/tests/fileio/test_rnmrtk_generated.py +225 -0
- nmrglue_ng-1.0.0/tests/fileio/test_rs2d.py +110 -0
- nmrglue_ng-1.0.0/tests/fileio/test_simpson.py +108 -0
- nmrglue_ng-1.0.0/tests/fileio/test_simpson_errors.py +32 -0
- nmrglue_ng-1.0.0/tests/fileio/test_simpson_shapes.py +240 -0
- nmrglue_ng-1.0.0/tests/fileio/test_sparky.py +89 -0
- nmrglue_ng-1.0.0/tests/fileio/test_spinsolve.py +57 -0
- nmrglue_ng-1.0.0/tests/fileio/test_tecmag.py +349 -0
- nmrglue_ng-1.0.0/tests/fileio/test_varian.py +216 -0
- nmrglue_ng-1.0.0/tests/fileio/test_varian_blockheaders.py +26 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/bruker_test_data/1/acqus +357 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/bruker_test_data/1/pdata/1/1r +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/bruker_test_data/1/pdata/1/procs +136 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/bruker_test_data/synthetic_pulseprogram +17 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/convert_bruker_cosy_to_pipe.py +48 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/create_test_data_nmrpipe.sh +222 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/README.md +175 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp1/acqu +322 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp1/acqus +329 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp1/fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp1/pdata/1/1i +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp1/pdata/1/1r +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp1/pdata/1/proc +144 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp1/pdata/1/procs +144 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp1/pdata/1/title +3 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_cosy/acqu +327 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_cosy/acqus +328 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_cosy/pdata/1/2rr +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_cosy/pdata/1/proc2 +139 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_cosy/pdata/1/proc2s +139 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_cosy/pdata/1/procs +139 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_cosy/pdata/1/title +3 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_cosy/ser +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_hsqc/acqu +335 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_hsqc/acqus +337 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_hsqc/pdata/1/2ii +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_hsqc/pdata/1/2ir +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_hsqc/pdata/1/2ri +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_hsqc/pdata/1/2rr +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_hsqc/pdata/1/proc2 +139 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_hsqc/pdata/1/proc2s +139 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_hsqc/pdata/1/procs +139 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_hsqc/pdata/1/title +2 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/bruker_pdata/exp2d_hsqc/ser +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx/README.md +26 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx/betapinene_1h_60mhz.jdx +1962 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx/betapinene_cosy_400mhz.jdx +13750 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx/caffeicacid_13c.jdx +1931 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx/epicatechin_13c.jdx +3101 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx/epicatechin_1h.jdx +4201 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx_encoding_set/BRUKAFFN.DX +1655 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx_encoding_set/BRUKDIF.DX +1655 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx_encoding_set/BRUKPAC.DX +1655 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx_encoding_set/BRUKSQZ.DX +1655 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx_encoding_set/README.md +5 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx_encoding_set/TEST32.DX +1655 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx_encoding_set/TESTSPEC.DX +1655 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx_ntuples/BRUKNTUP.DX +32790 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx_ntuples/README.md +5 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jcampdx_ntuples/TESTNTUP.DX +32790 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jeol/README.md +91 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jeol/Rutin_3080ug200uL_DMSOd6_13CNMR_400MHz_Jeol.jdf +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jeol/Rutin_3080ug200uL_DMSOd6_qHNMR_400MHz_Jeol.jdf +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jeol/betapinene_1h.jdf +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jeol/epicatechin_1h.jdf +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jeol/epicatechin_cosy.jdf +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jeol/epicatechin_hmbc.jdf +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jeol/epicatechin_hsqc.jdf +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jeol/fluorine.jdf +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/jeol/phosphorus.jdf +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_1d_ext.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_1d_freq.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_1d_time.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_2d_cosy_example.ft2 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_2d_freq.ft2 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_2d_freq_tp.ft2 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_2d_time.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_2d_time_tp.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_3d_freq.dir/nmrpipe_3d_freq_001.ft3 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_3d_freq.dir/nmrpipe_3d_freq_002.ft3 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_3d_freq.ft3 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_3d_time.dir/nmrpipe_3d_time_001.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_3d_time.dir/nmrpipe_3d_time_002.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_3d_time.dir/nmrpipe_3d_time_003.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_3d_time.dir/nmrpipe_3d_time_004.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_3d_time.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq_1.dir/nmrpipe_4d_freq_001.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq_1.dir/nmrpipe_4d_freq_002.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq_1.dir/nmrpipe_4d_freq_003.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq_1.dir/nmrpipe_4d_freq_004.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq_1.dir/nmrpipe_4d_freq_005.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq_1.dir/nmrpipe_4d_freq_006.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq_2.dir/nmrpipe_4d_freq_001_001.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq_2.dir/nmrpipe_4d_freq_001_002.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq_2.dir/nmrpipe_4d_freq_001_003.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq_2.dir/nmrpipe_4d_freq_002_001.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq_2.dir/nmrpipe_4d_freq_002_002.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_freq_2.dir/nmrpipe_4d_freq_002_003.ft4 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_001.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_002.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_003.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_004.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_005.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_006.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_007.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_008.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_009.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_010.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_011.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_012.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_013.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_014.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_015.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_016.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_017.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_018.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_019.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_020.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_021.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_022.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_023.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_1.dir/nmrpipe_4d_time_024.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_001_001.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_001_002.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_001_003.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_001_004.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_001_005.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_001_006.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_002_001.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_002_002.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_002_003.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_002_004.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_002_005.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_002_006.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_003_001.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_003_002.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_003_003.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_003_004.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_003_005.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_003_006.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_004_001.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_004_002.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_004_003.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_004_004.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_004_005.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/nmrpipe_4d_time_2.dir/nmrpipe_4d_time_004_006.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/synthetic_jcampdx_blocks.jdx +56 -0
- nmrglue_ng-1.0.0/tests/fixtures/fileio/data/test.tab +23 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/1D_freq_complex.dat +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/1D_freq_real.dat +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/1D_time.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/1D_time_real.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/2d_complex_processing.com +14 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/2d_complex_processing.py +20 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/add.com +18 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/add.py +21 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/apod.com +31 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/apod.py +34 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/base.com +29 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/base.py +33 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/cbf.com +18 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/cbf.py +21 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/coad.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/coad.py +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/coadd.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/coadd.py +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/cs.com +34 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/cs.py +38 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/dev.com +2 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/dev.py +3 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/dx.com +5 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/dx.py +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/em.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/em.py +14 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ext.com +59 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ext.py +69 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/freq_real.ft2 +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/fsh.com +19 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/fsh.py +23 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ft.com +33 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ft.py +37 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/gm.com +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/gm.py +17 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/gmb.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/gmb.py +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ha.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ha.py +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ht.com +31 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ht.py +33 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ht4.com +5 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ht4.py +10 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/integ.com +5 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/integ.py +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/jmod.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/jmod.py +14 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/known_fail.com +41 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/known_fail.py +58 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ls.com +22 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ls.py +26 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/mc.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/mc.py +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/mir.com +57 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/mir.py +61 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/mult.com +14 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/mult.py +17 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/null.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/null.py +14 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ps.com +25 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ps.py +29 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/qart.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/qart.py +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/qmix.com +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/qmix.py +17 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/rev.com +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/rev.py +17 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/rft.com +47 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/rft.py +50 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/rs.com +22 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/rs.py +25 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/save.com +5 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/save.py +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/set.com +17 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/set.py +21 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/shuf.com +29 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/shuf.py +33 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/sign.com +33 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/sign.py +37 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/sine.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/sine.py +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/smo.com +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/smo.py +17 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/sp.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/sp.py +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/time_complex.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/time_real.fid +0 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/tm.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/tm.py +17 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/to_fix.com +63 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/to_fix.py +74 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/tp.com +51 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/tp.py +61 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/tri.com +9 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/tri.py +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/units.com +77 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/units.py +111 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/xy2yx.com +14 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/xy2yx.py +17 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ytp.com +13 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/ytp.py +17 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/zd.com +17 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/zd.py +21 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/zf.com +21 -0
- nmrglue_ng-1.0.0/tests/fixtures/process/pipe_proc_tests/zf.py +25 -0
- nmrglue_ng-1.0.0/tests/infrastructure/test_ci_validation.py +47 -0
- nmrglue_ng-1.0.0/tests/infrastructure/test_testdata_manifest.py +1059 -0
- nmrglue_ng-1.0.0/tests/process/test_pipe_proc.py +381 -0
- nmrglue_ng-1.0.0/tests/process/test_pipe_proc_unit.py +180 -0
- nmrglue_ng-1.0.0/tests/process/test_proc_base.py +178 -0
- nmrglue_ng-1.0.0/tests/process/test_proc_lp.py +60 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"""Validate a runtime wheel with functional tests staged from its sdist."""
|
|
2
|
+
|
|
3
|
+
from importlib import import_module, metadata
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
import shutil
|
|
6
|
+
import sys
|
|
7
|
+
import sysconfig
|
|
8
|
+
from tempfile import TemporaryDirectory
|
|
9
|
+
|
|
10
|
+
from packaging.version import Version
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
EXPECTED_CASES = 65
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class InstalledOriginGuard:
|
|
17
|
+
def __init__(self, source_root, staged_tests):
|
|
18
|
+
self.source_root = source_root.resolve()
|
|
19
|
+
self.staged_tests = staged_tests.resolve()
|
|
20
|
+
self.site_packages = {
|
|
21
|
+
Path(path).resolve()
|
|
22
|
+
for path in (sysconfig.get_path("purelib"), sysconfig.get_path("platlib"))
|
|
23
|
+
if path
|
|
24
|
+
}
|
|
25
|
+
self.collected = 0
|
|
26
|
+
|
|
27
|
+
def _assert_origin(self, module):
|
|
28
|
+
path = getattr(module, "__file__", None)
|
|
29
|
+
if path is None:
|
|
30
|
+
return
|
|
31
|
+
path = Path(path).resolve()
|
|
32
|
+
if path.is_relative_to(self.source_root) or path.is_relative_to(self.staged_tests):
|
|
33
|
+
raise RuntimeError(f"nmrglue imported from test source: {path}")
|
|
34
|
+
if not any(path.is_relative_to(site) for site in self.site_packages):
|
|
35
|
+
raise RuntimeError(f"nmrglue import is outside site-packages: {path}")
|
|
36
|
+
|
|
37
|
+
def _assert_origins(self):
|
|
38
|
+
import nmrglue
|
|
39
|
+
|
|
40
|
+
self._assert_origin(nmrglue)
|
|
41
|
+
for module in tuple(sys.modules.values()):
|
|
42
|
+
if module is not None and getattr(module, "__name__", "").startswith("nmrglue"):
|
|
43
|
+
self._assert_origin(module)
|
|
44
|
+
for package_path in nmrglue.__path__:
|
|
45
|
+
path = Path(package_path).resolve()
|
|
46
|
+
if not any(path.is_relative_to(site) for site in self.site_packages):
|
|
47
|
+
raise RuntimeError(f"nmrglue package path is outside site-packages: {path}")
|
|
48
|
+
|
|
49
|
+
def pytest_sessionstart(self, session):
|
|
50
|
+
self._assert_origins()
|
|
51
|
+
|
|
52
|
+
def pytest_collection_finish(self, session):
|
|
53
|
+
self.collected = len(session.items)
|
|
54
|
+
if self.collected != EXPECTED_CASES:
|
|
55
|
+
raise RuntimeError(
|
|
56
|
+
f"expected {EXPECTED_CASES} wheel functional cases, collected {self.collected}"
|
|
57
|
+
)
|
|
58
|
+
self._assert_origins()
|
|
59
|
+
|
|
60
|
+
def pytest_sessionfinish(self, session, exitstatus):
|
|
61
|
+
self._assert_origins()
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def main(sdist_root, report):
|
|
65
|
+
import pytest
|
|
66
|
+
import nmrglue
|
|
67
|
+
|
|
68
|
+
sdist_root = Path(sdist_root).resolve()
|
|
69
|
+
package_path = Path(nmrglue.__file__).resolve()
|
|
70
|
+
if Version(metadata.version("nmrglue-ng")) != Version(nmrglue.__version__):
|
|
71
|
+
raise SystemExit("Distribution and import versions differ")
|
|
72
|
+
for module in ("analysis", "fileio", "process", "process.nmrtxt.rance_kay", "util"):
|
|
73
|
+
import_module(f"nmrglue.{module}")
|
|
74
|
+
print(f"Installed nmrglue-ng {nmrglue.__version__}: {package_path}", flush=True)
|
|
75
|
+
|
|
76
|
+
report = Path(report).resolve()
|
|
77
|
+
with TemporaryDirectory(prefix="nmrglue-wheel-", dir=report.parent) as directory:
|
|
78
|
+
directory = Path(directory)
|
|
79
|
+
staged_tests = directory / "tests"
|
|
80
|
+
shutil.copytree(sdist_root / "tests", staged_tests)
|
|
81
|
+
config = sdist_root / "pytest.ini"
|
|
82
|
+
guard = InstalledOriginGuard(sdist_root, staged_tests)
|
|
83
|
+
status = pytest.main(
|
|
84
|
+
[
|
|
85
|
+
"--import-mode=importlib",
|
|
86
|
+
"--rootdir", str(staged_tests),
|
|
87
|
+
"-c", str(config),
|
|
88
|
+
str(staged_tests / "fileio" / "test_pipe.py"),
|
|
89
|
+
str(staged_tests / "fileio" / "test_bruker.py"),
|
|
90
|
+
"--strict-markers", "--strict-config", "-ra",
|
|
91
|
+
f"--junitxml={report}",
|
|
92
|
+
],
|
|
93
|
+
plugins=[guard],
|
|
94
|
+
)
|
|
95
|
+
if status:
|
|
96
|
+
raise SystemExit(status)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
if __name__ == "__main__":
|
|
100
|
+
main(sys.argv[1], sys.argv[2])
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Reject empty, skipped, or failing test runs in required CI profiles."""
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
import xml.etree.ElementTree as ET
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def check_report(path, expected_count=None):
|
|
8
|
+
cases = list(ET.parse(path).getroot().iter("testcase"))
|
|
9
|
+
if not cases:
|
|
10
|
+
raise SystemExit("Required profile executed no tests")
|
|
11
|
+
if expected_count is not None and len(cases) != expected_count:
|
|
12
|
+
raise SystemExit(
|
|
13
|
+
f"Required profile executed {len(cases)} tests, expected {expected_count}"
|
|
14
|
+
)
|
|
15
|
+
for case in cases:
|
|
16
|
+
if any(case.find(tag) is not None for tag in ("skipped", "failure", "error")):
|
|
17
|
+
raise SystemExit(f"Required test did not pass: {case.attrib}")
|
|
18
|
+
print(f"Required profile: {len(cases)} tests passed, no skips")
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
if __name__ == "__main__":
|
|
22
|
+
check_report(sys.argv[1], int(sys.argv[2]) if len(sys.argv) == 3 else None)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
==================
|
|
2
|
+
Installation Guide
|
|
3
|
+
==================
|
|
4
|
+
|
|
5
|
+
The distribution is named ``nmrglue-ng``. The Python package and import name
|
|
6
|
+
remain ``nmrglue`` for compatibility with existing code.
|
|
7
|
+
|
|
8
|
+
Installing from PyPI
|
|
9
|
+
--------------------
|
|
10
|
+
|
|
11
|
+
Install the stable release with::
|
|
12
|
+
|
|
13
|
+
python -m pip install nmrglue-ng
|
|
14
|
+
|
|
15
|
+
Conda packages are planned after the stable 1.0.0 release.
|
|
16
|
+
|
|
17
|
+
Requirements
|
|
18
|
+
------------
|
|
19
|
+
|
|
20
|
+
``nmrglue-ng`` requires Python 3.10 or newer. Runtime dependencies and their
|
|
21
|
+
supported versions are declared in ``pyproject.toml``, which is the source of
|
|
22
|
+
truth for packaging metadata.
|
|
23
|
+
|
|
24
|
+
Installing from source
|
|
25
|
+
----------------------
|
|
26
|
+
|
|
27
|
+
Using a virtual environment is recommended but not required. For example::
|
|
28
|
+
|
|
29
|
+
python -m venv .venv
|
|
30
|
+
source .venv/bin/activate
|
|
31
|
+
|
|
32
|
+
Clone and install the project with::
|
|
33
|
+
|
|
34
|
+
git clone https://github.com/spectrochempy/nmrglue-ng.git
|
|
35
|
+
cd nmrglue-ng
|
|
36
|
+
python -m pip install .
|
|
37
|
+
|
|
38
|
+
Development installation
|
|
39
|
+
------------------------
|
|
40
|
+
|
|
41
|
+
Install the project in editable mode with its test dependencies::
|
|
42
|
+
|
|
43
|
+
python -m pip install -e ".[test]"
|
|
44
|
+
|
|
45
|
+
Documentation dependencies are available through the ``docs`` extra::
|
|
46
|
+
|
|
47
|
+
python -m pip install -e ".[docs]"
|
|
48
|
+
|
|
49
|
+
Importing the package
|
|
50
|
+
---------------------
|
|
51
|
+
|
|
52
|
+
The installed distribution is imported with::
|
|
53
|
+
|
|
54
|
+
import nmrglue as ng
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Copyright Notice and Statement for the nmrglue Project
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2010-2015 Jonathan J. Helmus
|
|
5
|
+
All rights reserved.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Redistribution and use in source and binary forms, with or without
|
|
9
|
+
modification, are permitted provided that the following conditions are
|
|
10
|
+
met:
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
a. Redistributions of source code must retain the above copyright
|
|
14
|
+
notice, this list of conditions and the following disclaimer.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
b. Redistributions in binary form must reproduce the above copyright
|
|
18
|
+
notice, this list of conditions and the following disclaimer in the
|
|
19
|
+
documentation and/or other materials provided with the
|
|
20
|
+
distribution.
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
c. Neither the name of the author nor the names of contributors may
|
|
24
|
+
be used to endorse or promote products derived from this software
|
|
25
|
+
without specific prior written permission.
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
29
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
30
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
31
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
32
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
33
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
34
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
35
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
36
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
37
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
38
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
include *.txt
|
|
2
|
+
include *.rst
|
|
3
|
+
include pytest.ini
|
|
4
|
+
include maintainer/testdata-manifest.toml
|
|
5
|
+
include .github/scripts/check_test_report.py
|
|
6
|
+
include .github/scripts/check_installed_wheel.py
|
|
7
|
+
include scripts/generate_testdata_manifest.py
|
|
8
|
+
include scripts/verify_testdata.py
|
|
9
|
+
recursive-include tests *
|
|
10
|
+
global-exclude __pycache__ *.py[cod]
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nmrglue-ng
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: An independent continuation of nmrglue for working with NMR data in Python
|
|
5
|
+
Author-email: "Jonathan J. Helmus" <jjhelmus@gmail.com>
|
|
6
|
+
License-Expression: BSD-3-Clause
|
|
7
|
+
Project-URL: Homepage, https://github.com/spectrochempy/nmrglue-ng
|
|
8
|
+
Project-URL: Repository, https://github.com/spectrochempy/nmrglue-ng
|
|
9
|
+
Project-URL: Issues, https://github.com/spectrochempy/nmrglue-ng/issues
|
|
10
|
+
Classifier: Intended Audience :: Science/Research
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering
|
|
19
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
20
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
21
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/x-rst
|
|
24
|
+
License-File: LICENSE.txt
|
|
25
|
+
Requires-Dist: numpy>=1.21.2
|
|
26
|
+
Requires-Dist: scipy>=1.7.2
|
|
27
|
+
Provides-Extra: docs
|
|
28
|
+
Requires-Dist: sphinx; extra == "docs"
|
|
29
|
+
Requires-Dist: sphinx-book-theme; extra == "docs"
|
|
30
|
+
Requires-Dist: sphinx-design; extra == "docs"
|
|
31
|
+
Requires-Dist: sphinx_rtd_theme; extra == "docs"
|
|
32
|
+
Requires-Dist: myst-nb; extra == "docs"
|
|
33
|
+
Requires-Dist: numpydoc; extra == "docs"
|
|
34
|
+
Requires-Dist: matplotlib; extra == "docs"
|
|
35
|
+
Requires-Dist: sphinx-intl; extra == "docs"
|
|
36
|
+
Provides-Extra: test
|
|
37
|
+
Requires-Dist: pytest; extra == "test"
|
|
38
|
+
Requires-Dist: tomli; python_version < "3.11" and extra == "test"
|
|
39
|
+
Dynamic: license-file
|
|
40
|
+
|
|
41
|
+
==========
|
|
42
|
+
nmrglue-ng
|
|
43
|
+
==========
|
|
44
|
+
|
|
45
|
+
**An independent continuation of nmrglue for processing and working with NMR data in Python.**
|
|
46
|
+
|
|
47
|
+
``nmrglue-ng`` is an independent fork of `nmrglue <https://github.com/jjhelmus/nmrglue>`_, originally developed by Jonathan J. Helmus and contributors.
|
|
48
|
+
|
|
49
|
+
The project aims to preserve the simplicity, scientific capabilities, and established API of nmrglue while providing ongoing maintenance, reproducible testing, up-to-date documentation, and a predictable contribution and release process.
|
|
50
|
+
|
|
51
|
+
.. important::
|
|
52
|
+
|
|
53
|
+
``nmrglue-ng`` is an independent project. It is not the official nmrglue distribution and is not maintained or endorsed by the maintainers of the original project.
|
|
54
|
+
|
|
55
|
+
Why nmrglue-ng?
|
|
56
|
+
===============
|
|
57
|
+
|
|
58
|
+
nmrglue has provided the NMR community with a lightweight and powerful Python toolkit for reading, writing, converting, processing, and analysing NMR data for more than a decade.
|
|
59
|
+
|
|
60
|
+
Its broad support for NMR formats and its NumPy-oriented API make it particularly valuable for scientific scripting and interoperability.
|
|
61
|
+
|
|
62
|
+
``nmrglue-ng`` builds on that work rather than replacing it.
|
|
63
|
+
|
|
64
|
+
The main goals of this fork are:
|
|
65
|
+
|
|
66
|
+
* preserve compatibility with the established nmrglue API wherever practical;
|
|
67
|
+
* maintain and test existing NMR file-format support;
|
|
68
|
+
* fix confirmed bugs and scientific inconsistencies;
|
|
69
|
+
* provide reproducible test datasets for critical I/O operations;
|
|
70
|
+
* maintain compatibility with current Python, NumPy, and SciPy releases;
|
|
71
|
+
* keep packaging and continuous integration up to date;
|
|
72
|
+
* maintain and continuously build the documentation;
|
|
73
|
+
* establish a clear process for reviewing contributions as the project grows;
|
|
74
|
+
* document important scientific and API decisions.
|
|
75
|
+
|
|
76
|
+
Large API redesigns are explicitly **not** an initial objective.
|
|
77
|
+
|
|
78
|
+
Compatibility
|
|
79
|
+
=============
|
|
80
|
+
|
|
81
|
+
Backward compatibility with existing nmrglue code is a primary goal.
|
|
82
|
+
|
|
83
|
+
Existing code should, whenever possible, continue to work unchanged::
|
|
84
|
+
|
|
85
|
+
import nmrglue as ng
|
|
86
|
+
|
|
87
|
+
dic, data = ng.bruker.read("experiment")
|
|
88
|
+
|
|
89
|
+
The distribution name and Python import name are intentionally distinct::
|
|
90
|
+
|
|
91
|
+
distribution: nmrglue-ng
|
|
92
|
+
import: nmrglue
|
|
93
|
+
|
|
94
|
+
Compatibility cannot be guaranteed indefinitely when correcting scientifically incorrect behaviour. Such changes will be documented, tested, and introduced through an explicit compatibility policy.
|
|
95
|
+
|
|
96
|
+
Scientific scope
|
|
97
|
+
================
|
|
98
|
+
|
|
99
|
+
The project retains nmrglue's established scope, including:
|
|
100
|
+
|
|
101
|
+
* reading and writing NMR data;
|
|
102
|
+
* vendor and interchange file formats;
|
|
103
|
+
* conversion between formats;
|
|
104
|
+
* spectral processing;
|
|
105
|
+
* unit and axis conversion;
|
|
106
|
+
* peak picking and fitting;
|
|
107
|
+
* low-memory access to large datasets.
|
|
108
|
+
|
|
109
|
+
Scientific correctness and preservation of acquisition and processing metadata are considered part of the public behaviour of the library, not implementation details.
|
|
110
|
+
|
|
111
|
+
Development priorities
|
|
112
|
+
======================
|
|
113
|
+
|
|
114
|
+
The initial development effort focuses on maintenance rather than redesign.
|
|
115
|
+
|
|
116
|
+
Reliability
|
|
117
|
+
-----------
|
|
118
|
+
|
|
119
|
+
* reproducible test fixtures for supported NMR formats;
|
|
120
|
+
* read/write and conversion round-trip tests;
|
|
121
|
+
* regression tests for confirmed bugs;
|
|
122
|
+
* validation of spectral axes and metadata.
|
|
123
|
+
|
|
124
|
+
Scientific consistency
|
|
125
|
+
----------------------
|
|
126
|
+
|
|
127
|
+
Particular attention is being given to the relationships between:
|
|
128
|
+
|
|
129
|
+
* observation frequency;
|
|
130
|
+
* reference frequency;
|
|
131
|
+
* carrier frequency and offset;
|
|
132
|
+
* spectral width;
|
|
133
|
+
* point, Hz, and ppm coordinates;
|
|
134
|
+
* quadrature and complex-data conventions.
|
|
135
|
+
|
|
136
|
+
Infrastructure
|
|
137
|
+
--------------
|
|
138
|
+
|
|
139
|
+
* modern Python packaging;
|
|
140
|
+
* current Python/NumPy/SciPy compatibility;
|
|
141
|
+
* Linux, macOS, and Windows CI;
|
|
142
|
+
* automated documentation builds;
|
|
143
|
+
* reproducible releases.
|
|
144
|
+
|
|
145
|
+
File formats
|
|
146
|
+
------------
|
|
147
|
+
|
|
148
|
+
Existing format support will be preserved and progressively strengthened with real and synthetic reference datasets.
|
|
149
|
+
|
|
150
|
+
Changes to parsers are expected to include regression tests demonstrating the corresponding format convention.
|
|
151
|
+
|
|
152
|
+
Relationship with upstream nmrglue
|
|
153
|
+
==================================
|
|
154
|
+
|
|
155
|
+
``nmrglue-ng`` retains the complete Git history of nmrglue and acknowledges the original authors and all contributors whose work forms the basis of this project.
|
|
156
|
+
|
|
157
|
+
Where practical, fixes developed here that are applicable to the original nmrglue project may also be proposed upstream through pull requests or reported as issues in the original repository. This may include bug fixes, regression tests, documentation improvements, compatibility updates, and clarifications of scientific or format-specific behaviour.
|
|
158
|
+
|
|
159
|
+
Before opening an upstream contribution, the proposed change will be reviewed for relevance to the original project, compatibility with its maintenance policy, and consistency with its existing API and scope. Changes that are specific to ``nmrglue-ng``, or that depend on its independent development direction, will remain in this project.
|
|
160
|
+
|
|
161
|
+
Likewise, useful upstream developments may be incorporated into ``nmrglue-ng`` with their original authorship and attribution preserved.
|
|
162
|
+
|
|
163
|
+
The intention is not to obscure or replace the history of nmrglue, but to continue building on it transparently and, where appropriate, to contribute improvements back to the original project.
|
|
164
|
+
|
|
165
|
+
Contributions
|
|
166
|
+
=============
|
|
167
|
+
|
|
168
|
+
Contributions are welcome, particularly:
|
|
169
|
+
|
|
170
|
+
* reproducible bug reports;
|
|
171
|
+
* regression tests;
|
|
172
|
+
* small NMR datasets that can legally be redistributed for testing;
|
|
173
|
+
* fixes for file-format readers and writers;
|
|
174
|
+
* documentation improvements;
|
|
175
|
+
* scientific validation against vendor software or documented format specifications;
|
|
176
|
+
* performance improvements accompanied by correctness tests and benchmarks.
|
|
177
|
+
|
|
178
|
+
Changes affecting scientific conventions or public API semantics may require a short design discussion before implementation.
|
|
179
|
+
|
|
180
|
+
As the project develops, contribution and maintenance practices may evolve to make it easier for additional maintainers to participate.
|
|
181
|
+
|
|
182
|
+
Installation
|
|
183
|
+
============
|
|
184
|
+
|
|
185
|
+
Install ``nmrglue-ng`` with pip::
|
|
186
|
+
|
|
187
|
+
python -m pip install nmrglue-ng
|
|
188
|
+
|
|
189
|
+
Conda packages are planned after the stable 1.0.0 release. See
|
|
190
|
+
`INSTALL.txt <INSTALL.txt>`_ for source and development installation options.
|
|
191
|
+
|
|
192
|
+
The distribution is named ``nmrglue-ng``, while the Python import remains::
|
|
193
|
+
|
|
194
|
+
import nmrglue as ng
|
|
195
|
+
|
|
196
|
+
Citation and attribution
|
|
197
|
+
========================
|
|
198
|
+
|
|
199
|
+
nmrglue-ng is derived from **nmrglue**, created by Jonathan J. Helmus and contributors.
|
|
200
|
+
|
|
201
|
+
Users should continue to acknowledge the original nmrglue work where appropriate:
|
|
202
|
+
|
|
203
|
+
Jonathan J. Helmus and Christopher P. Jaroniec,
|
|
204
|
+
|
|
205
|
+
*Nmrglue: an open source Python package for the analysis of multidimensional NMR data*,
|
|
206
|
+
|
|
207
|
+
Journal of Biomolecular NMR (2013).
|
|
208
|
+
|
|
209
|
+
A citation specific to ``nmrglue-ng`` will be provided if and when an appropriate archival release or publication becomes available.
|
|
210
|
+
|
|
211
|
+
License
|
|
212
|
+
=======
|
|
213
|
+
|
|
214
|
+
``nmrglue-ng`` is distributed under the BSD 3-Clause License inherited from nmrglue.
|
|
215
|
+
|
|
216
|
+
The original copyright notices and contributor history are preserved.
|
|
217
|
+
|
|
218
|
+
See ``LICENSE.txt`` for details.
|
|
219
|
+
|
|
220
|
+
----
|
|
221
|
+
|
|
222
|
+
**nmrglue-ng is an independent continuation of nmrglue.**
|
|
223
|
+
|
|
224
|
+
Its objective is deliberately conservative: preserve a useful and established NMR toolkit while making its maintenance, testing, documentation, and evolution sustainable.
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
==========
|
|
2
|
+
nmrglue-ng
|
|
3
|
+
==========
|
|
4
|
+
|
|
5
|
+
**An independent continuation of nmrglue for processing and working with NMR data in Python.**
|
|
6
|
+
|
|
7
|
+
``nmrglue-ng`` is an independent fork of `nmrglue <https://github.com/jjhelmus/nmrglue>`_, originally developed by Jonathan J. Helmus and contributors.
|
|
8
|
+
|
|
9
|
+
The project aims to preserve the simplicity, scientific capabilities, and established API of nmrglue while providing ongoing maintenance, reproducible testing, up-to-date documentation, and a predictable contribution and release process.
|
|
10
|
+
|
|
11
|
+
.. important::
|
|
12
|
+
|
|
13
|
+
``nmrglue-ng`` is an independent project. It is not the official nmrglue distribution and is not maintained or endorsed by the maintainers of the original project.
|
|
14
|
+
|
|
15
|
+
Why nmrglue-ng?
|
|
16
|
+
===============
|
|
17
|
+
|
|
18
|
+
nmrglue has provided the NMR community with a lightweight and powerful Python toolkit for reading, writing, converting, processing, and analysing NMR data for more than a decade.
|
|
19
|
+
|
|
20
|
+
Its broad support for NMR formats and its NumPy-oriented API make it particularly valuable for scientific scripting and interoperability.
|
|
21
|
+
|
|
22
|
+
``nmrglue-ng`` builds on that work rather than replacing it.
|
|
23
|
+
|
|
24
|
+
The main goals of this fork are:
|
|
25
|
+
|
|
26
|
+
* preserve compatibility with the established nmrglue API wherever practical;
|
|
27
|
+
* maintain and test existing NMR file-format support;
|
|
28
|
+
* fix confirmed bugs and scientific inconsistencies;
|
|
29
|
+
* provide reproducible test datasets for critical I/O operations;
|
|
30
|
+
* maintain compatibility with current Python, NumPy, and SciPy releases;
|
|
31
|
+
* keep packaging and continuous integration up to date;
|
|
32
|
+
* maintain and continuously build the documentation;
|
|
33
|
+
* establish a clear process for reviewing contributions as the project grows;
|
|
34
|
+
* document important scientific and API decisions.
|
|
35
|
+
|
|
36
|
+
Large API redesigns are explicitly **not** an initial objective.
|
|
37
|
+
|
|
38
|
+
Compatibility
|
|
39
|
+
=============
|
|
40
|
+
|
|
41
|
+
Backward compatibility with existing nmrglue code is a primary goal.
|
|
42
|
+
|
|
43
|
+
Existing code should, whenever possible, continue to work unchanged::
|
|
44
|
+
|
|
45
|
+
import nmrglue as ng
|
|
46
|
+
|
|
47
|
+
dic, data = ng.bruker.read("experiment")
|
|
48
|
+
|
|
49
|
+
The distribution name and Python import name are intentionally distinct::
|
|
50
|
+
|
|
51
|
+
distribution: nmrglue-ng
|
|
52
|
+
import: nmrglue
|
|
53
|
+
|
|
54
|
+
Compatibility cannot be guaranteed indefinitely when correcting scientifically incorrect behaviour. Such changes will be documented, tested, and introduced through an explicit compatibility policy.
|
|
55
|
+
|
|
56
|
+
Scientific scope
|
|
57
|
+
================
|
|
58
|
+
|
|
59
|
+
The project retains nmrglue's established scope, including:
|
|
60
|
+
|
|
61
|
+
* reading and writing NMR data;
|
|
62
|
+
* vendor and interchange file formats;
|
|
63
|
+
* conversion between formats;
|
|
64
|
+
* spectral processing;
|
|
65
|
+
* unit and axis conversion;
|
|
66
|
+
* peak picking and fitting;
|
|
67
|
+
* low-memory access to large datasets.
|
|
68
|
+
|
|
69
|
+
Scientific correctness and preservation of acquisition and processing metadata are considered part of the public behaviour of the library, not implementation details.
|
|
70
|
+
|
|
71
|
+
Development priorities
|
|
72
|
+
======================
|
|
73
|
+
|
|
74
|
+
The initial development effort focuses on maintenance rather than redesign.
|
|
75
|
+
|
|
76
|
+
Reliability
|
|
77
|
+
-----------
|
|
78
|
+
|
|
79
|
+
* reproducible test fixtures for supported NMR formats;
|
|
80
|
+
* read/write and conversion round-trip tests;
|
|
81
|
+
* regression tests for confirmed bugs;
|
|
82
|
+
* validation of spectral axes and metadata.
|
|
83
|
+
|
|
84
|
+
Scientific consistency
|
|
85
|
+
----------------------
|
|
86
|
+
|
|
87
|
+
Particular attention is being given to the relationships between:
|
|
88
|
+
|
|
89
|
+
* observation frequency;
|
|
90
|
+
* reference frequency;
|
|
91
|
+
* carrier frequency and offset;
|
|
92
|
+
* spectral width;
|
|
93
|
+
* point, Hz, and ppm coordinates;
|
|
94
|
+
* quadrature and complex-data conventions.
|
|
95
|
+
|
|
96
|
+
Infrastructure
|
|
97
|
+
--------------
|
|
98
|
+
|
|
99
|
+
* modern Python packaging;
|
|
100
|
+
* current Python/NumPy/SciPy compatibility;
|
|
101
|
+
* Linux, macOS, and Windows CI;
|
|
102
|
+
* automated documentation builds;
|
|
103
|
+
* reproducible releases.
|
|
104
|
+
|
|
105
|
+
File formats
|
|
106
|
+
------------
|
|
107
|
+
|
|
108
|
+
Existing format support will be preserved and progressively strengthened with real and synthetic reference datasets.
|
|
109
|
+
|
|
110
|
+
Changes to parsers are expected to include regression tests demonstrating the corresponding format convention.
|
|
111
|
+
|
|
112
|
+
Relationship with upstream nmrglue
|
|
113
|
+
==================================
|
|
114
|
+
|
|
115
|
+
``nmrglue-ng`` retains the complete Git history of nmrglue and acknowledges the original authors and all contributors whose work forms the basis of this project.
|
|
116
|
+
|
|
117
|
+
Where practical, fixes developed here that are applicable to the original nmrglue project may also be proposed upstream through pull requests or reported as issues in the original repository. This may include bug fixes, regression tests, documentation improvements, compatibility updates, and clarifications of scientific or format-specific behaviour.
|
|
118
|
+
|
|
119
|
+
Before opening an upstream contribution, the proposed change will be reviewed for relevance to the original project, compatibility with its maintenance policy, and consistency with its existing API and scope. Changes that are specific to ``nmrglue-ng``, or that depend on its independent development direction, will remain in this project.
|
|
120
|
+
|
|
121
|
+
Likewise, useful upstream developments may be incorporated into ``nmrglue-ng`` with their original authorship and attribution preserved.
|
|
122
|
+
|
|
123
|
+
The intention is not to obscure or replace the history of nmrglue, but to continue building on it transparently and, where appropriate, to contribute improvements back to the original project.
|
|
124
|
+
|
|
125
|
+
Contributions
|
|
126
|
+
=============
|
|
127
|
+
|
|
128
|
+
Contributions are welcome, particularly:
|
|
129
|
+
|
|
130
|
+
* reproducible bug reports;
|
|
131
|
+
* regression tests;
|
|
132
|
+
* small NMR datasets that can legally be redistributed for testing;
|
|
133
|
+
* fixes for file-format readers and writers;
|
|
134
|
+
* documentation improvements;
|
|
135
|
+
* scientific validation against vendor software or documented format specifications;
|
|
136
|
+
* performance improvements accompanied by correctness tests and benchmarks.
|
|
137
|
+
|
|
138
|
+
Changes affecting scientific conventions or public API semantics may require a short design discussion before implementation.
|
|
139
|
+
|
|
140
|
+
As the project develops, contribution and maintenance practices may evolve to make it easier for additional maintainers to participate.
|
|
141
|
+
|
|
142
|
+
Installation
|
|
143
|
+
============
|
|
144
|
+
|
|
145
|
+
Install ``nmrglue-ng`` with pip::
|
|
146
|
+
|
|
147
|
+
python -m pip install nmrglue-ng
|
|
148
|
+
|
|
149
|
+
Conda packages are planned after the stable 1.0.0 release. See
|
|
150
|
+
`INSTALL.txt <INSTALL.txt>`_ for source and development installation options.
|
|
151
|
+
|
|
152
|
+
The distribution is named ``nmrglue-ng``, while the Python import remains::
|
|
153
|
+
|
|
154
|
+
import nmrglue as ng
|
|
155
|
+
|
|
156
|
+
Citation and attribution
|
|
157
|
+
========================
|
|
158
|
+
|
|
159
|
+
nmrglue-ng is derived from **nmrglue**, created by Jonathan J. Helmus and contributors.
|
|
160
|
+
|
|
161
|
+
Users should continue to acknowledge the original nmrglue work where appropriate:
|
|
162
|
+
|
|
163
|
+
Jonathan J. Helmus and Christopher P. Jaroniec,
|
|
164
|
+
|
|
165
|
+
*Nmrglue: an open source Python package for the analysis of multidimensional NMR data*,
|
|
166
|
+
|
|
167
|
+
Journal of Biomolecular NMR (2013).
|
|
168
|
+
|
|
169
|
+
A citation specific to ``nmrglue-ng`` will be provided if and when an appropriate archival release or publication becomes available.
|
|
170
|
+
|
|
171
|
+
License
|
|
172
|
+
=======
|
|
173
|
+
|
|
174
|
+
``nmrglue-ng`` is distributed under the BSD 3-Clause License inherited from nmrglue.
|
|
175
|
+
|
|
176
|
+
The original copyright notices and contributor history are preserved.
|
|
177
|
+
|
|
178
|
+
See ``LICENSE.txt`` for details.
|
|
179
|
+
|
|
180
|
+
----
|
|
181
|
+
|
|
182
|
+
**nmrglue-ng is an independent continuation of nmrglue.**
|
|
183
|
+
|
|
184
|
+
Its objective is deliberately conservative: preserve a useful and established NMR toolkit while making its maintenance, testing, documentation, and evolution sustainable.
|