PycWB 0.22.1__tar.gz → 0.22.2__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.
- {pycwb-0.22.1 → pycwb-0.22.2}/PKG-INFO +1 -1
- {pycwb-0.22.1 → pycwb-0.22.2}/PycWB.egg-info/PKG-INFO +1 -1
- {pycwb-0.22.1 → pycwb-0.22.2}/PycWB.egg-info/SOURCES.txt +1 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/_version.py +2 -2
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/cli/xtalk.py +1 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/config/config.py +35 -4
- pycwb-0.22.2/pycwb/constants/project_constants.py +3 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/xtalk/monster.py +10 -8
- pycwb-0.22.2/pycwb/modules/xtalk/xtalk_data.py +49 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/workflow/subflow/prepare_job_runs.py +2 -2
- pycwb-0.22.1/pycwb/constants/project_constants.py +0 -1
- {pycwb-0.22.1 → pycwb-0.22.2}/.gitignore +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/.gitlab-ci.yml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/LICENSE +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/MANIFEST.in +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/Makefile +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/PycWB.egg-info/dependency_links.txt +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/PycWB.egg-info/requires.txt +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/PycWB.egg-info/top_level.txt +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/README.md +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/benchmark/README.md +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/benchmark/likelihood/README.md +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/benchmark/likelihood/generate_data_for_likelihood.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/benchmark/likelihood/performance_test_dpf.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/benchmark/likelihood/performance_test_opt_sky.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/benchmark/likelihood/user_parameters_injection.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/benchmark/supercluster/README.md +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/benchmark/supercluster/generate_data.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/benchmark/supercluster/generate_data_2.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/benchmark/supercluster/performance_supercluster.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/benchmark/supercluster/user_parameters_injection.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/bin/pycwb +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/bin/pycwb_search +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/bin/pycwb_show +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Biorthogonal.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Biorthogonal.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/CMakeLists.txt +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Daubechies.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Daubechies.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/FourierCoefficients.icc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Haar.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Haar.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/LineFilter.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/LineFilter.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Makefile +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Meyer.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Meyer.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Symlet.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Symlet.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/SymmArray.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/SymmArray.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/SymmArraySSE.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/SymmArraySSE.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/SymmObjArray.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/SymmObjArray.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/WDM.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/WDM.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/WDMOverlap.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/WDMOverlap.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/WaveDWT.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/WaveDWT.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Wavelet.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/Wavelet.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/alm.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/build.sh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/cluster.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/cluster.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/cmake/FindHealpix.cmake +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/cmake/FindeBBH.cmake +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/cmake/install_function.cmake +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/constants.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/detector.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/detector.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/injection.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/injection.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/lossy.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/lossy.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/monster.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/monster.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/netcluster.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/netcluster.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/netevent.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/netevent.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/netpixel.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/netpixel.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/network.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/network.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/pycwb.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/rdfr.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/rdfr.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/readframe.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/readframe.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/readfrfile.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/readfrfile.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/regression.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/regression.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/skycoord.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/skymap.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/skymap.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/sseries.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/sseries.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/time.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/time.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wat.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/watasm.S +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/watasm_elf64.o +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/watavx.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/watbranch.in +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/watfun.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wathash.in +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/watplot.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/watplot.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/watsse.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wattag.in +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/waturl.in +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/watversion.hh.in +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wavearray.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wavearray.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wavecomplex.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wavecomplex.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wavecor.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wavecor.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wavefft.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wavefft.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wavelet_LinkDef.h +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wavelinefilter.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wavelinefilter.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/waverdc.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/waverdc.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wseries.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wseries.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/cwb-core/wslice.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/0.installation_guide.md +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/1.initialisation_guide.md +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/2.test_interactive_multistages_2G_analysis.md +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/3.run_pycwb_with_yaml_config.md +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/4.py_cwb_inet_2G.md +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/5.cwb2G_analyse.md +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/6.wat_codes_notes.md +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/Makefile +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/diagram.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/make.bat +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/_static/.keep +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/_templates/.keep +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/conf.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/credit.rst +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/index.rst +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/install.rst +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/mod_cwb.rst +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/package.rst +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/schema.rst +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/tutorial_batch_inj.rst +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/tutorial_customized_wf_gen.rst +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/tutorial_injection.rst +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/tutorial_multi_injection.rst +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/tutorial_search.rst +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/tutorials.rst +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/docs/source/workflow.png +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/envs/Dockerfile +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/envs/mamba/Dockerfile +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/autoencoder/pycwb_injection.ipynb +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/autoencoder/user_parameters_injection.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/batch_injection/generate_parameters.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/batch_injection/pycbc_inject/hyperbolicTD/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/batch_injection/pycbc_inject/hyperbolicTD/parameters.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/batch_injection/pycbc_inject/hyperbolicTD/waveform.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/batch_injection/pycwb_injection.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/batch_injection/user_parameters_injection.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/DQ/H1_cat0.txt +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/DQ/H1_cat1.txt +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/DQ/H1_cat2.txt +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/DQ/H1_cat4.txt +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/DQ/L1_cat0.txt +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/DQ/L1_cat1.txt +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/DQ/L1_cat2.txt +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/DQ/L1_cat4.txt +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/input/OPBM.period +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/input/OPBM_H1.frames +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/input/OPBM_L1.frames +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/pycwb_mdc.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/benchmark/user_parameters_mdc.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/colab/pycWB_GW150914.ipynb +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/injection/pycwb_injection.ipynb +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/injection/pycwb_injection.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/injection/user_parameters_injection.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/lvk_sep_2023/demo.ipynb +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/lvk_sep_2023/user_parameters.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/multiple_injection/pycwb_injection.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/multiple_injection/user_parameters_injection.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/pyseobnr_injection/generate_parameters.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/pyseobnr_injection/user_parameters_injection.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/pyseobnr_injection/waveform_model/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/pyseobnr_injection/waveform_model/waveform.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/examples/waveform_reconstruction/reconstruct_waveform_from_cluster.ipynb +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/cwb_core/coherence.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/cwb_core/coherence.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/cwb_core/likelihood.cc +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/cwb_core/likelihood.hh +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/dag/dag.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/dag/dask-prefect.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/dag/prefect_test.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger/server.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger/visualizition.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/.eslintrc.cjs +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/.gitignore +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/.prettierrc.json +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/README.md +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/index.html +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/package-lock.json +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/package.json +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/public/favicon.ico +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/App.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/assets/base.css +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/assets/cwb_icon_modern_blue_alfa.png +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/assets/main.css +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/assets/style.css +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/components/HelloWorld.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/components/TheWelcome.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/components/WelcomeItem.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/components/__tests__/HelloWorld.spec.js +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/components/icons/IconCommunity.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/components/icons/IconDocumentation.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/components/icons/IconEcosystem.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/components/icons/IconSupport.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/components/icons/IconTooling.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/main.js +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/router/index.js +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/stores/counter.js +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/views/drawflow.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/views/nodes/node1.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/views/nodes/node2.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/views/nodes/node3.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/src/views/nodes/nodeHeader.vue +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/messenger-web-interface/vite.config.js +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/performance/numba_test.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/performance/taichi_test.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/prototypes/search.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/cli/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/cli/batch.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/cli/flow.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/cli/run.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/cli/server.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/config/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/constants/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/constants/user_parameters_schema.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/autoencoder/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/autoencoder/autoencoder.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/autoencoder/cwb_autoencoder.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/autoencoder/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/catalog/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/catalog/catalog.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/catalog/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/coherence/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/coherence/coherence.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/coherence/coherence_lite.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/coherence/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/condor/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/condor/condor.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/condor/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/cwb_conversions/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/cwb_conversions/cluster.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/cwb_conversions/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/cwb_conversions/pixel.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/cwb_conversions/series.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/cwb_conversions/sparse_series.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/data_conditioning/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/data_conditioning/data_conditioning.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/data_conditioning/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/data_conditioning/regression.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/data_conditioning/whitening.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/job_segment/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/job_segment/dq_segment.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/job_segment/frame.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/job_segment/job_segment.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/job_segment/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/job_segment/plots.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/job_segment/super_lag.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/likelihood/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/likelihood/likelihood.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/likelihood/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/likelihoodWP/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/likelihoodWP/dpf.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/likelihoodWP/dpf_cython.pyx +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/likelihoodWP/likelihood.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/likelihoodWP/sky_stat.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/likelihoodWP/utils.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/logger/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/logger/logger.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/logger/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/multi_resolution_wdm/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/multi_resolution_wdm/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/multi_resolution_wdm/wdm.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/plot/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/plot/cluster_statistics.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/plot/event.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/plot/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/plot/spectrogram.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/plot/waveform.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/plot_data_quality/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/plot_data_quality/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/plot_data_quality/plot.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/plot_map/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/plot_map/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/plot_map/world_map.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/read_data/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/read_data/data_check.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/read_data/data_find.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/read_data/mdc.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/read_data/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/read_data/read_data.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/reconstruction/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/reconstruction/getMRAwaveform.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/reconstruction/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/sparse_series/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/sparse_series/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/sparse_series/sparse_table.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/statistics/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/statistics/eff.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/statistics/eff_plot.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/statistics/merge.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/statistics/sigmoid_fit.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/super_cluster/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/super_cluster/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/super_cluster/sub_net_cut.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/super_cluster/super_cluster.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/super_cluster/supercluster.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/super_cluster/utils.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/superlag/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/superlag/superlag.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/web_viewer/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/web_viewer/create.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/web_viewer/module.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/workflow_utils/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/workflow_utils/job_setup.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/xtalk/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/modules/xtalk/monster_old.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/prefect_flow/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/prefect_flow/pycwb_flow.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/prefect_flow/tasks/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/prefect_flow/tasks/builtin.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/search.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/types/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/types/data_quality_file.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/types/detector.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/types/job.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/types/network.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/types/network_cluster.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/types/network_event.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/types/network_pixel.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/types/sparse_series.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/types/time_frequency_series.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/types/wdm.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/types/wdm_xtalk.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/utils/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/utils/async_write.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/utils/check_ROOT.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/utils/conversions/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/utils/conversions/timeseries.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/utils/dataclass_object_io.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/utils/dep_check.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/utils/image.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/utils/module.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/utils/network.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/utils/skymap_coord.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/utils/yaml_helper.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/vendor/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/vendor/autoencoder/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/vendor/autoencoder/cwb_autoencoder.h5 +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/vendor/example.yaml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/vendor/lib/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/vendor/web_viewer/event_dump.html +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/vendor/web_viewer/styles.css +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/vendor/web_viewer/viewer.html +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/workflow/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/workflow/batch.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/workflow/subflow/__init__.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/workflow/subflow/postprocess_and_plots.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pycwb/workflow/subflow/supercluster_and_likelihood.py +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/pyproject.toml +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/setup.cfg +0 -0
- {pycwb-0.22.1 → pycwb-0.22.2}/setup.py +0 -0
|
@@ -336,6 +336,7 @@ pycwb/modules/workflow_utils/job_setup.py
|
|
|
336
336
|
pycwb/modules/xtalk/__init__.py
|
|
337
337
|
pycwb/modules/xtalk/monster.py
|
|
338
338
|
pycwb/modules/xtalk/monster_old.py
|
|
339
|
+
pycwb/modules/xtalk/xtalk_data.py
|
|
339
340
|
pycwb/prefect_flow/__init__.py
|
|
340
341
|
pycwb/prefect_flow/pycwb_flow.py
|
|
341
342
|
pycwb/prefect_flow/tasks/__init__.py
|
|
@@ -5,7 +5,9 @@ pycwb.constants.user_parameters_schema.
|
|
|
5
5
|
"""
|
|
6
6
|
import os.path
|
|
7
7
|
import logging
|
|
8
|
+
import pathlib
|
|
8
9
|
|
|
10
|
+
from ..modules.xtalk.xtalk_data import check_and_download_xtalk_data
|
|
9
11
|
from ..types.wdm_xtalk import WDMXTalkCatalog
|
|
10
12
|
from ..types.data_quality_file import DQFile
|
|
11
13
|
from ..utils.network import max_delay
|
|
@@ -67,9 +69,8 @@ class Config:
|
|
|
67
69
|
setattr(self, key, params[key])
|
|
68
70
|
|
|
69
71
|
self.add_derived_key()
|
|
70
|
-
self.
|
|
71
|
-
|
|
72
|
-
self.check_MRA_catalog()
|
|
72
|
+
self.check_xtalk_file(self.MRAcatalog)
|
|
73
|
+
self.check_MRA_catalog()
|
|
73
74
|
self.check_lagStep()
|
|
74
75
|
|
|
75
76
|
def add_derived_key(self):
|
|
@@ -90,7 +91,10 @@ class Config:
|
|
|
90
91
|
|
|
91
92
|
# load WAT filter directory and set MRAcatalog
|
|
92
93
|
if not self.filter_dir:
|
|
93
|
-
|
|
94
|
+
if os.environ.get('HOME_WAT_FILTERS') is None:
|
|
95
|
+
self.filter_dir = os.path.abspath(".")
|
|
96
|
+
else:
|
|
97
|
+
self.filter_dir = os.environ['HOME_WAT_FILTERS']
|
|
94
98
|
|
|
95
99
|
self.MRAcatalog = f"{self.filter_dir}/{self.wdmXTalk}"
|
|
96
100
|
|
|
@@ -142,6 +146,33 @@ class Config:
|
|
|
142
146
|
if not os.path.isfile(file_name):
|
|
143
147
|
raise FileNotFoundError(f"File {file_name} does not exist")
|
|
144
148
|
|
|
149
|
+
@staticmethod
|
|
150
|
+
def check_xtalk_file(file_name: str) -> bool:
|
|
151
|
+
"""
|
|
152
|
+
Helper function to check if xtalk file exists and download it if it does not exist
|
|
153
|
+
|
|
154
|
+
Parameters
|
|
155
|
+
----------
|
|
156
|
+
file_name : str
|
|
157
|
+
Path to the xtalk file
|
|
158
|
+
|
|
159
|
+
Returns
|
|
160
|
+
-------
|
|
161
|
+
bool
|
|
162
|
+
True if the file exists or has been downloaded successfully, False otherwise
|
|
163
|
+
|
|
164
|
+
Raises
|
|
165
|
+
------
|
|
166
|
+
FileNotFoundError
|
|
167
|
+
If the file does not exist and cannot be downloaded
|
|
168
|
+
"""
|
|
169
|
+
if not os.path.isfile(file_name):
|
|
170
|
+
if check_and_download_xtalk_data(str(pathlib.Path(file_name).name), str(pathlib.Path(file_name).parent)):
|
|
171
|
+
return True
|
|
172
|
+
else:
|
|
173
|
+
raise FileNotFoundError(f"File {file_name} does not exist")
|
|
174
|
+
return True
|
|
175
|
+
|
|
145
176
|
def check_lagStep(self):
|
|
146
177
|
"""
|
|
147
178
|
Check if lagStep compatible with WDM parity
|
|
@@ -12,7 +12,7 @@ def load_catalog(fn, dump=True):
|
|
|
12
12
|
|
|
13
13
|
Parameters
|
|
14
14
|
----------
|
|
15
|
-
fn : str
|
|
15
|
+
fn : str or Path
|
|
16
16
|
The file name of the crosstalk catalog file
|
|
17
17
|
dump : bool
|
|
18
18
|
If True, save the parsed data into a .npz file with the same name as the input file in current working directory
|
|
@@ -38,17 +38,18 @@ def load_catalog(fn, dump=True):
|
|
|
38
38
|
# Check if there is converted file
|
|
39
39
|
# if ext of fn is .bin, search if there is a .npz file with the same name
|
|
40
40
|
# under the same directory and working directory
|
|
41
|
-
if pathlib.Path(fn).suffix == ".bin":
|
|
41
|
+
if pathlib.Path(fn).suffix == ".bin" or pathlib.Path(fn).suffix == ".xbin":
|
|
42
42
|
print(f"A .bin file is detected, searching for .npz file with the same name.")
|
|
43
|
-
npz_fn = fn.replace(".bin", ".npz")
|
|
43
|
+
# npz_fn = fn.replace(".bin", ".npz")
|
|
44
|
+
npz_fn = pathlib.Path(fn).with_suffix(".npz")
|
|
44
45
|
if pathlib.Path(npz_fn).exists():
|
|
45
46
|
print(f".npz file found: {npz_fn}, loading the catalog from the .npz file.")
|
|
46
47
|
return load_catalog(npz_fn)
|
|
47
48
|
|
|
48
|
-
npz_fn = pathlib.Path(fn).name.replace(".bin", ".npz")
|
|
49
|
-
if pathlib.Path(npz_fn).exists():
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
# npz_fn = pathlib.Path(fn).name.replace(".bin", ".npz")
|
|
50
|
+
# if pathlib.Path(npz_fn).exists():
|
|
51
|
+
# print(f".npz file found: {npz_fn}, loading the catalog from the .npz file.")
|
|
52
|
+
# return load_catalog(npz_fn)
|
|
52
53
|
|
|
53
54
|
with open(fn, "rb") as f:
|
|
54
55
|
data = f.read() # Read the entire file into memory
|
|
@@ -91,7 +92,8 @@ def load_catalog(fn, dump=True):
|
|
|
91
92
|
|
|
92
93
|
if dump:
|
|
93
94
|
# dump to current working directory
|
|
94
|
-
filename = pathlib.Path(fn).name.replace(".bin", ".npz")
|
|
95
|
+
# filename = pathlib.Path(fn).name.replace(".bin", ".npz")
|
|
96
|
+
filename = pathlib.Path(fn).with_suffix(".npz")
|
|
95
97
|
np.savez(filename, xtalk_coeff=xtalk_coeff, xtalk_lookup_table=lookup_table, layers=layers,
|
|
96
98
|
nRes=nRes)
|
|
97
99
|
return np.array(xtalk_coeff), lookup_table, np.array(layers), nRes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import requests
|
|
2
|
+
import pathlib
|
|
3
|
+
from pycwb.constants.project_constants import XTALK_DATA_URL, XTALK_FILE_LIST_URL
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def fetch_txt(url):
|
|
7
|
+
try:
|
|
8
|
+
response = requests.get(url)
|
|
9
|
+
response.raise_for_status() # Raises an exception for 4XX or 5XX errors
|
|
10
|
+
return response.text.splitlines() # Returns the list of file names
|
|
11
|
+
except requests.RequestException as e:
|
|
12
|
+
return f"An error occurred: {e}"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def download_file(url, file_name):
|
|
16
|
+
try:
|
|
17
|
+
response = requests.get(url)
|
|
18
|
+
response.raise_for_status() # Raises an exception for 4XX or 5XX errors
|
|
19
|
+
with open(file_name, "wb") as f:
|
|
20
|
+
f.write(response.content)
|
|
21
|
+
return f"File {file_name} has been downloaded successfully."
|
|
22
|
+
except requests.RequestException as e:
|
|
23
|
+
return f"An error occurred: {e}"
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def check_and_download_xtalk_data(file_name: str, output_dir: str = ".")\
|
|
27
|
+
-> bool:
|
|
28
|
+
# Fetch and print the file list
|
|
29
|
+
file_list = fetch_txt(XTALK_FILE_LIST_URL)
|
|
30
|
+
|
|
31
|
+
# replace any file extension (.bin, .xbin) with .npz
|
|
32
|
+
# new_file_name = pathlib.Path(file_name).with_suffix(".npz").name
|
|
33
|
+
file_name = pathlib.Path(file_name).name
|
|
34
|
+
|
|
35
|
+
# Check if the file is in the list
|
|
36
|
+
if file_name in file_list:
|
|
37
|
+
# make output_dir if it does not exist
|
|
38
|
+
pathlib.Path(output_dir).mkdir(parents=True, exist_ok=True)
|
|
39
|
+
|
|
40
|
+
# Download the file
|
|
41
|
+
print(f"File {file_name} is available on {XTALK_DATA_URL}.")
|
|
42
|
+
download_url = f"{XTALK_DATA_URL}/{file_name}"
|
|
43
|
+
print(f"Downloading {download_url}...")
|
|
44
|
+
download_file(download_url, f"{output_dir}/{file_name}")
|
|
45
|
+
print(f"File saved as {output_dir}/{file_name}")
|
|
46
|
+
return True
|
|
47
|
+
else:
|
|
48
|
+
print(f"File {file_name} is not available on {XTALK_DATA_URL}.")
|
|
49
|
+
return False
|
|
@@ -44,7 +44,7 @@ def prepare_job_runs(working_dir: str, config_file: str, n_proc: int = 1,
|
|
|
44
44
|
os.chdir(working_dir)
|
|
45
45
|
|
|
46
46
|
# check environment
|
|
47
|
-
check_MRACatalog_setting()
|
|
47
|
+
# check_MRACatalog_setting()
|
|
48
48
|
|
|
49
49
|
# read user parameters
|
|
50
50
|
config = Config(file_name)
|
|
@@ -78,7 +78,7 @@ def load_batch_run(working_dir: str, config_file: str, job_file: str, job_start:
|
|
|
78
78
|
|
|
79
79
|
os.chdir(working_dir)
|
|
80
80
|
|
|
81
|
-
check_MRACatalog_setting()
|
|
81
|
+
# check_MRACatalog_setting()
|
|
82
82
|
|
|
83
83
|
config = Config(file_name)
|
|
84
84
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ROUNDED_DIGITS = 50
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|