Example of using Parallelization module
[1]:
# Install QhX1 library using pip
!pip install ./QhX1
Processing ./QhX1
Requirement already satisfied: bokeh in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (3.1.1)
Requirement already satisfied: colorednoise in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (2.2.0)
Requirement already satisfied: datashader in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (0.15.2)
Requirement already satisfied: hvplot in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (0.9.0)
Requirement already satisfied: libwwz in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (1.3.2)
Requirement already satisfied: numpy in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (1.24.4)
Requirement already satisfied: pandas in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (2.0.3)
Requirement already satisfied: panel in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (1.2.3)
Requirement already satisfied: pyarrow in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (14.0.1)
Requirement already satisfied: scikit-learn in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (1.3.0)
Requirement already satisfied: scikit-optimize in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (0.9.0)
Requirement already satisfied: scipy in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (1.10.1)
Requirement already satisfied: tqdm in /home/os/.local/lib/python3.8/site-packages (from QhX==0.1.0) (4.66.1)
Requirement already satisfied: tornado>=5.1 in /home/os/.local/lib/python3.8/site-packages (from bokeh->QhX==0.1.0) (6.3.3)
Requirement already satisfied: contourpy>=1 in /home/os/.local/lib/python3.8/site-packages (from bokeh->QhX==0.1.0) (1.1.1)
Requirement already satisfied: xyzservices>=2021.09.1 in /home/os/.local/lib/python3.8/site-packages (from bokeh->QhX==0.1.0) (2023.10.1)
Requirement already satisfied: pillow>=7.1.0 in /home/os/.local/lib/python3.8/site-packages (from bokeh->QhX==0.1.0) (10.1.0)
Requirement already satisfied: PyYAML>=3.10 in /usr/lib/python3/dist-packages (from bokeh->QhX==0.1.0) (5.3.1)
Requirement already satisfied: Jinja2>=2.9 in /home/os/.local/lib/python3.8/site-packages (from bokeh->QhX==0.1.0) (3.1.2)
Requirement already satisfied: packaging>=16.8 in /home/os/.local/lib/python3.8/site-packages (from bokeh->QhX==0.1.0) (23.2)
Requirement already satisfied: toolz in /home/os/.local/lib/python3.8/site-packages (from datashader->QhX==0.1.0) (0.12.0)
Requirement already satisfied: colorcet in /home/os/.local/lib/python3.8/site-packages (from datashader->QhX==0.1.0) (3.0.1)
Requirement already satisfied: pyct in /home/os/.local/lib/python3.8/site-packages (from datashader->QhX==0.1.0) (0.5.0)
Requirement already satisfied: xarray in /home/os/.local/lib/python3.8/site-packages (from datashader->QhX==0.1.0) (2023.1.0)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from datashader->QhX==0.1.0) (2.22.0)
Requirement already satisfied: numba in /home/os/.local/lib/python3.8/site-packages (from datashader->QhX==0.1.0) (0.58.1)
Requirement already satisfied: datashape in /home/os/.local/lib/python3.8/site-packages (from datashader->QhX==0.1.0) (0.5.2)
Requirement already satisfied: dask in /home/os/.local/lib/python3.8/site-packages (from datashader->QhX==0.1.0) (2023.5.0)
Requirement already satisfied: param in /home/os/.local/lib/python3.8/site-packages (from datashader->QhX==0.1.0) (2.0.1)
Requirement already satisfied: holoviews>=1.11.0 in /home/os/.local/lib/python3.8/site-packages (from hvplot->QhX==0.1.0) (1.17.1)
Requirement already satisfied: joblib==1.2.0 in /home/os/.local/lib/python3.8/site-packages (from libwwz->QhX==0.1.0) (1.2.0)
Requirement already satisfied: matplotlib==3.7.1 in /home/os/.local/lib/python3.8/site-packages (from libwwz->QhX==0.1.0) (3.7.1)
Requirement already satisfied: python-dateutil>=2.8.2 in /home/os/.local/lib/python3.8/site-packages (from pandas->QhX==0.1.0) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /home/os/.local/lib/python3.8/site-packages (from pandas->QhX==0.1.0) (2023.3.post1)
Requirement already satisfied: tzdata>=2022.1 in /home/os/.local/lib/python3.8/site-packages (from pandas->QhX==0.1.0) (2023.3)
Requirement already satisfied: typing-extensions in /home/os/.local/lib/python3.8/site-packages (from panel->QhX==0.1.0) (4.8.0)
Requirement already satisfied: mdit-py-plugins in /home/os/.local/lib/python3.8/site-packages (from panel->QhX==0.1.0) (0.4.0)
Requirement already satisfied: bleach in /home/os/.local/lib/python3.8/site-packages (from panel->QhX==0.1.0) (6.1.0)
Requirement already satisfied: markdown in /home/os/.local/lib/python3.8/site-packages (from panel->QhX==0.1.0) (3.5.1)
Requirement already satisfied: pyviz-comms>=0.7.4 in /home/os/.local/lib/python3.8/site-packages (from panel->QhX==0.1.0) (3.0.0)
Requirement already satisfied: linkify-it-py in /home/os/.local/lib/python3.8/site-packages (from panel->QhX==0.1.0) (2.0.2)
Requirement already satisfied: markdown-it-py in /home/os/.local/lib/python3.8/site-packages (from panel->QhX==0.1.0) (3.0.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in /home/os/.local/lib/python3.8/site-packages (from scikit-learn->QhX==0.1.0) (3.2.0)
Requirement already satisfied: pyaml>=16.9 in /home/os/.local/lib/python3.8/site-packages (from scikit-optimize->QhX==0.1.0) (23.9.7)
Requirement already satisfied: MarkupSafe>=2.0 in /home/os/.local/lib/python3.8/site-packages (from Jinja2>=2.9->bokeh->QhX==0.1.0) (2.1.3)
Requirement already satisfied: llvmlite<0.42,>=0.41.0dev0 in /home/os/.local/lib/python3.8/site-packages (from numba->datashader->QhX==0.1.0) (0.41.1)
Requirement already satisfied: importlib-metadata; python_version < "3.9" in /home/os/.local/lib/python3.8/site-packages (from numba->datashader->QhX==0.1.0) (6.8.0)
Requirement already satisfied: multipledispatch>=0.4.7 in /home/os/.local/lib/python3.8/site-packages (from datashape->datashader->QhX==0.1.0) (1.0.0)
Requirement already satisfied: partd>=1.2.0 in /home/os/.local/lib/python3.8/site-packages (from dask->datashader->QhX==0.1.0) (1.4.1)
Requirement already satisfied: click>=8.0 in /home/os/.local/lib/python3.8/site-packages (from dask->datashader->QhX==0.1.0) (8.1.7)
Requirement already satisfied: fsspec>=2021.09.0 in /home/os/.local/lib/python3.8/site-packages (from dask->datashader->QhX==0.1.0) (2023.12.2)
Requirement already satisfied: cloudpickle>=1.5.0 in /home/os/.local/lib/python3.8/site-packages (from dask->datashader->QhX==0.1.0) (3.0.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/os/.local/lib/python3.8/site-packages (from matplotlib==3.7.1->libwwz->QhX==0.1.0) (1.4.5)
Requirement already satisfied: fonttools>=4.22.0 in /home/os/.local/lib/python3.8/site-packages (from matplotlib==3.7.1->libwwz->QhX==0.1.0) (4.46.0)
Requirement already satisfied: cycler>=0.10 in /home/os/.local/lib/python3.8/site-packages (from matplotlib==3.7.1->libwwz->QhX==0.1.0) (0.12.1)
Requirement already satisfied: importlib-resources>=3.2.0; python_version < "3.10" in /home/os/.local/lib/python3.8/site-packages (from matplotlib==3.7.1->libwwz->QhX==0.1.0) (6.1.1)
Requirement already satisfied: pyparsing>=2.3.1 in /home/os/.local/lib/python3.8/site-packages (from matplotlib==3.7.1->libwwz->QhX==0.1.0) (3.1.1)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.2->pandas->QhX==0.1.0) (1.14.0)
Requirement already satisfied: webencodings in /home/os/.local/lib/python3.8/site-packages (from bleach->panel->QhX==0.1.0) (0.5.1)
Requirement already satisfied: uc-micro-py in /home/os/.local/lib/python3.8/site-packages (from linkify-it-py->panel->QhX==0.1.0) (1.0.2)
Requirement already satisfied: mdurl~=0.1 in /home/os/.local/lib/python3.8/site-packages (from markdown-it-py->panel->QhX==0.1.0) (0.1.2)
Requirement already satisfied: zipp>=0.5 in /home/os/.local/lib/python3.8/site-packages (from importlib-metadata; python_version < "3.9"->numba->datashader->QhX==0.1.0) (3.17.0)
Requirement already satisfied: locket in /home/os/.local/lib/python3.8/site-packages (from partd>=1.2.0->dask->datashader->QhX==0.1.0) (1.0.0)
Building wheels for collected packages: QhX
Building wheel for QhX (setup.py) ... done
Created wheel for QhX: filename=QhX-0.1.0-py3-none-any.whl size=40732 sha256=73789e3b10fe1e7052b4801525963329b234c72b05dc0bcca2904b4d69051dcf
Stored in directory: /tmp/pip-ephem-wheel-cache-ga1hu78f/wheels/22/03/5a/257f63e0283836b3e27367cbb3c7826ddfaf220fdcfde7e438
Successfully built QhX
Installing collected packages: QhX
Attempting uninstall: QhX
Found existing installation: QhX 0.1.0
Uninstalling QhX-0.1.0:
Successfully uninstalled QhX-0.1.0
Successfully installed QhX-0.1.0
[1]:
# Import everything from parallelization_solver submodule
from QhX.parallelization_solver import *
[2]:
# Import data manager
from QhX.data_manager import DataManager
# Create a data manager instance
data_manager = DataManager()
[4]:
# Load local copy of data from "https://zenodo.org/record/6878414/files/ForcedSourceTable.parquet"
fs_df = data_manager.load_fs_df("https://zenodo.org/record/6878414/files/ForcedSourceTable.parquet")
# Group the data
fs_gp = data_manager.group_fs_df()
INFO:root:Forced source data loaded successfully.
INFO:root:Forced source data grouped successfully.
Solver Modes: Fixed and Dynamical
This notebook demonstrates how to set up and use the solver in either Fixed or Dynamical mode.
The solver can be configured to process data in two modes: - Fixed Mode: For data with predefined filters and static sampling rates. - Dynamical Mode: For data with variable filters and time-dependent configurations. Note: Please ensure that the correct imports and initializations are used for each mode, as described in the sections below.
Fixed Mode Setup
In Fixed Mode, you can use the default DataManager
class to manage the data. This mode does not require additional configuration for time-dependent filters.
Instructions
Import the
DataManager
class from theQhX.data_manager
module.Initialize the
DataManager
as shown in the example below.
Run the code cell below to set up Fixed Mode.
[5]:
# Example : 2 set IDs , files logged, parallel arithmetic not used
setids = ['1384177', '0458387']
# Create instance of parallel solver without parallel arithmetic and passing ngrid and provided fq values (ntau=80 by default)
solver = ParallelSolver(data_manager=data_manager, delta_seconds=12.0, num_workers=2, log_files=True, parallel_arithmetic=False, ntau=80,ngrid = 100, provided_minfq = 500, provided_maxfq = 10, mode='fixed')
# Run the solver & store results into results.csv
solver.process_ids(setids, 'results.csv')
[6]:
# Example : 1 ID with parallel arithmetic
setids = ['0458387']
# Create instance of parallel solver with parallel arithmetic and provide parameters
solver = ParallelSolver(data_manager=data_manager, delta_seconds=12.0, num_workers=1, log_files=False, parallel_arithmetic=True, ntau=80,ngrid = 100, provided_minfq = 500, provided_maxfq = 10,mode='fixed')
# Run & store into results2.csv
solver.process_ids(setids, 'results2.csv')
Starting time for ID 0458387 : 2024-04-03 16:12:31.848847
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.9 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 31
Pseudo sample frequency (median) is 0.095
largest tau window is 74.996
0.12 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 31
Pseudo sample frequency (median) is 0.111
largest tau window is 74.996
0.1 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 30
Pseudo sample frequency (median) is 0.111
largest tau window is 77.581
0.1 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.43 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.41 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.54 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.4 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.49 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.39 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.41 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
Processing 0458387
PID 98003
Duration: 1.0 ticks
12.0 seconds each
Time so far 12.0s
0.36 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.36 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.36 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.36 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.36 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.36 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.36 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.36 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.39 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.4 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.4 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
Processing 0458387
PID 98003
Duration: 2.0 ticks
12.0 seconds each
Time so far 24.0s
0.39 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.39 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.38 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
*** Starting Weighted Wavelet Z-transform ***
adjusted time_divisions to: 33
Pseudo sample frequency (median) is 0.111
largest tau window is 70.308
0.37 seconds has passed to complete Weighted Wavelet Z-transform
End time for ID 0458387 : 2024-04-03 16:12:59.790757
Total time : 0:00:27.941910
[11]:
# Show content of results.csv file - no parallel arithmetic; sets 1384177, 0458387
with open('results.csv') as results_file:
print(results_file.read())
ID,Sampling_1,Sampling_2,Common period (Band1 & Band1),Upper error bound,Lower error bound,Significance,Band1-Band2
1384177,22.7388695652174,21.9744537815126,335.570469798658,-1,-1,0.98,0-1
1384177,22.7388695652174,19.3330769230769,335.570469798658,-1,-1,1,0-2
1384177,22.7388695652174,22.5428448275862,nan,nan,nan,nan,0-3
1384177,21.9744537815126,19.3330769230769,335.570469798658,-1,-1,1,1-2
1384177,21.9744537815126,22.5428448275862,nan,nan,nan,nan,1-3
1384177,19.3330769230769,22.5428448275862,nan,nan,nan,nan,2-3
458387,70.308125,74.9956666666665,nan,nan,nan,nan,0-1
458387,70.308125,74.9956666666665,nan,nan,nan,nan,0-2
458387,70.308125,77.5813793103449,nan,nan,nan,nan,0-3
458387,74.9956666666665,74.9956666666665,nan,nan,nan,nan,1-2
458387,74.9956666666665,77.5813793103449,nan,nan,nan,nan,1-3
458387,74.9956666666665,77.5813793103449,44.2869796279894,41.6265844303889,0.914820284696262,1,2-3
[7]:
# Show content of results2.csv file - used parallel arithmetic, set 0458387
with open('results2.csv') as results_file:
print(results_file.read())
ID,Sampling_1,Sampling_2,Common period (Band1 & Band1),Upper error bound,Lower error bound,Significance,Band1-Band2
0458387,70.30812500000002,74.99566666666651,nan,nan,nan,nan,0-1
0458387,70.30812500000002,74.99566666666651,nan,nan,nan,nan,0-2
0458387,70.30812500000002,77.58137931034484,nan,nan,nan,nan,0-3
0458387,74.99566666666651,74.99566666666651,nan,nan,nan,nan,1-2
0458387,74.99566666666651,77.58137931034484,nan,nan,nan,nan,1-3
0458387,74.99566666666651,77.58137931034484,44.28697962798937,41.626584450805616,0.9148202831698526,0.98,2-3
Dynamical Mode Setup
In Dynamical Mode, the solver can handle datasets with varying filters and dynamic sampling rates. This mode requires the use of DynamicalDataManager
from the dynamical_mode
module.
For more information on configuring this mode, refer to the Dynamical Mode section in the documentation.
[ ]: