diff --git a/.github/workflows/full-parity-nightly.yml b/.github/workflows/full-parity-nightly.yml index d91a9c0f..4eb48bc0 100644 --- a/.github/workflows/full-parity-nightly.yml +++ b/.github/workflows/full-parity-nightly.yml @@ -61,6 +61,14 @@ jobs: --spec parity/example_output_spec.yml python tools/notebooks/run_notebooks.py --group all --timeout 900 + - name: Generate class equivalence inventory/report artifacts + run: | + mkdir -p output/parity + python tools/parity/generate_class_equivalence_inventory.py \ + --matlab-root /tmp/upstream-nstat \ + --out-inventory output/parity/class_equivalence_inventory.json \ + --out-report output/parity/class_equivalence_report.json + - name: Generate full validation PDF run: | python tools/reports/generate_validation_pdf.py \ @@ -101,6 +109,8 @@ jobs: parity/parity_gap_report.json parity/method_probe_report.json parity/method_closure_sprint.md + output/parity/class_equivalence_inventory.json + output/parity/class_equivalence_report.json if-no-files-found: warn - name: Upload validation PDF artifact diff --git a/.github/workflows/parity-gate.yml b/.github/workflows/parity-gate.yml index de496f77..cd478448 100644 --- a/.github/workflows/parity-gate.yml +++ b/.github/workflows/parity-gate.yml @@ -59,6 +59,14 @@ jobs: --report parity/function_example_alignment_report.json \ --spec parity/example_output_spec.yml + - name: Generate class equivalence inventory/report artifacts + run: | + mkdir -p output/parity + python tools/parity/generate_class_equivalence_inventory.py \ + --matlab-root /tmp/upstream-nstat \ + --out-inventory output/parity/class_equivalence_inventory.json \ + --out-report output/parity/class_equivalence_report.json + - name: Ensure parity artifacts are synchronized run: | python tools/parity/sync_parity_artifacts.py \ @@ -103,4 +111,6 @@ jobs: parity/function_example_alignment_report.json parity/numeric_drift_report.json parity/performance_parity_report.json + output/parity/class_equivalence_inventory.json + output/parity/class_equivalence_report.json if-no-files-found: warn diff --git a/.gitignore b/.gitignore index bda6bad3..426afc5c 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,7 @@ PARITY_SPEC.md CANONICAL_VALIDATION_ARTIFACTS.md DISCREPANCIES.md parity/CYCLE_VALIDATION_CHECKLIST.md +parity/class_equivalence_inventory.json +parity/class_equivalence_report.json +parity/cycle_validation/ +parity/matlab_reference_checkout.json diff --git a/parity/class_equivalence_inventory.json b/parity/class_equivalence_inventory.json deleted file mode 100644 index 4adaafc6..00000000 --- a/parity/class_equivalence_inventory.json +++ /dev/null @@ -1,13954 +0,0 @@ -{ - "class_rows": [ - { - "class_contract": { - "compat_class": "nstat.compat.matlab.Analysis", - "fixture_path": "tests/parity/fixtures/matlab_gold/AnalysisExamples_gold.mat", - "key_methods": [ - "fit_glm", - "fit_trial", - "run_analysis_for_neuron", - "run_analysis_for_all_neurons", - "compute_hist_lag" - ], - "python_class": "nstat.analysis.Analysis" - }, - "compat": { - "constructor_signature": "(self, /, *args, **kwargs)", - "fields": [], - "methods": { - "GLMFit": "(X: 'np.ndarray', y: 'np.ndarray', fitType: 'str' = 'poisson', dt: 'float' = 1.0, l2Penalty: 'float' = 0.0) -> '_FitResult'", - "KSPlot": "(fit: 'Any', fitNum: 'int' = 1) -> 'Any'", - "RunAnalysisForAllNeurons": "(trial: '_Trial', config: '_TrialConfig') -> 'list[_FitResult]'", - "RunAnalysisForNeuron": "(trial: '_Trial', config: '_TrialConfig', unitIndex: 'int' = 0) -> '_FitResult'", - "bnlrCG": "(X: 'np.ndarray', y: 'np.ndarray', dt: 'float' = 1.0, l2Penalty: 'float' = 0.0) -> '_FitResult'", - "compHistEnsCoeff": "(y: 'np.ndarray', X: 'np.ndarray', dt: 'float' = 1.0) -> 'np.ndarray'", - "compHistEnsCoeffForAll": "(y_list: 'list[np.ndarray]', X_list: 'list[np.ndarray]', dt: 'float' = 1.0) -> 'list[np.ndarray]'", - "computeFitResidual": "(y: 'np.ndarray', X: 'np.ndarray', fit: '_FitResult', dt: 'float' = 1.0) -> 'np.ndarray'", - "computeGrangerCausalityMatrix": "(spikeMatrix: 'np.ndarray', maxLag: 'int' = 1) -> 'np.ndarray'", - "computeHistLag": "(signal: 'np.ndarray', maxLag: 'int' = 50) -> 'tuple[np.ndarray, np.ndarray]'", - "computeHistLagForAll": "(signals: 'np.ndarray', maxLag: 'int' = 50) -> 'tuple[np.ndarray, np.ndarray]'", - "computeInvGausTrans": "(y: 'np.ndarray', X: 'np.ndarray', fit: '_FitResult', dt: 'float' = 1.0) -> 'np.ndarray'", - "computeKSStats": "(transformed: 'np.ndarray') -> 'dict[str, float]'", - "computeNeighbors": "(positions: 'np.ndarray', k: 'int' = 1) -> 'np.ndarray'", - "fdr_bh": "(p_values: 'np.ndarray', alpha: 'float' = 0.05) -> 'np.ndarray'", - "fitGLM": "(X: 'np.ndarray', y: 'np.ndarray', fitType: 'str' = 'poisson', dt: 'float' = 1.0, l2Penalty: 'float' = 0.0) -> '_FitResult'", - "fitTrial": "(trial: '_Trial', config: '_TrialConfig', unitIndex: 'int' = 0) -> '_FitResult'", - "flatMaskCellToMat": "(flatMaskCell: 'list[np.ndarray]') -> 'np.ndarray'", - "ksdiscrete": "(sample: 'np.ndarray', reference: 'np.ndarray | None' = None) -> 'dict[str, float]'", - "plotCoeffs": "(fit: 'Any') -> 'Any'", - "plotFitResidual": "(y: 'np.ndarray', X: 'np.ndarray', fit: '_FitResult', dt: 'float' = 1.0) -> 'Any'", - "plotInvGausTrans": "(y: 'np.ndarray', X: 'np.ndarray', fit: '_FitResult', dt: 'float' = 1.0) -> 'Any'", - "plotSeqCorr": "(residual: 'np.ndarray') -> 'Any'", - "spikeTrigAvg": "(signal: 'np.ndarray', spikeTimes_s: 'np.ndarray', timeGrid_s: 'np.ndarray', window_s: 'tuple[float, float]' = (-0.05, 0.05)) -> 'tuple[np.ndarray, np.ndarray]'" - }, - "properties": [] - }, - "fixture": { - "exists": true, - "generator": "topic_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/AnalysisExamples_gold.mat" - }, - "mapping": { - "alias_methods": { - "fitGLM": "fit_glm", - "fitTrial": "fit_trial" - }, - "compat_class": "nstat.compat.matlab.Analysis", - "python_class": "nstat.analysis.Analysis" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [], - "line": null, - "name": "Analysis", - "static": false - }, - "matlab_class": "Analysis", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/Analysis.m", - "methods": [ - { - "access": "public", - "args": [ - "tObj", - "neuronNumber", - "configColl", - "makePlot", - "Algorithm", - "DTCorrection", - "batchMode" - ], - "line": 61, - "name": "RunAnalysisForNeuron", - "static": true - }, - { - "access": "public", - "args": [ - "tObj", - "configs", - "makePlot", - "Algorithm", - "DTCorrection", - "batchMode" - ], - "line": 455, - "name": "RunAnalysisForAllNeurons", - "static": true - }, - { - "access": "public", - "args": [ - "tObj", - "neuronNumber", - "lambdaIndex", - "Algorithm" - ], - "line": 510, - "name": "GLMFit", - "static": true - }, - { - "access": "public", - "args": [ - "fitResults", - "makePlot" - ], - "line": 667, - "name": "plotInvGausTrans", - "static": true - }, - { - "access": "public", - "args": [ - "fitResults", - "windowSize", - "makePlot" - ], - "line": 695, - "name": "plotFitResidual", - "static": true - }, - { - "access": "public", - "args": [ - "fitResults", - "DTCorrection", - "makePlot" - ], - "line": 720, - "name": "KSPlot", - "static": true - }, - { - "access": "public", - "args": [ - "fitResults" - ], - "line": 754, - "name": "plotSeqCorr", - "static": true - }, - { - "access": "public", - "args": [ - "fitResults" - ], - "line": 761, - "name": "plotCoeffs", - "static": true - }, - { - "access": "public", - "args": [ - "Z" - ], - "line": 770, - "name": "computeInvGausTrans", - "static": true - }, - { - "access": "public", - "args": [ - "nspikeObj", - "lambdaInput", - "DTCorrection" - ], - "line": 820, - "name": "computeKSStats", - "static": true - }, - { - "access": "public", - "args": [ - "nspikeObj", - "lambda", - "windowSize" - ], - "line": 943, - "name": "computeFitResidual", - "static": true - }, - { - "access": "public", - "args": [ - "tObj", - "history", - "makePlot" - ], - "line": 997, - "name": "compHistEnsCoeffForAll", - "static": true - }, - { - "access": "public", - "args": [ - "tObj", - "history", - "neuronNum", - "neighbors", - "ensembleCov", - "makePlot" - ], - "line": 1013, - "name": "compHistEnsCoeff", - "static": true - }, - { - "access": "public", - "args": [ - "tObj", - "Algorithm", - "confidenceInterval", - "batchMode" - ], - "line": 1047, - "name": "computeGrangerCausalityMatrix", - "static": true - }, - { - "access": "public", - "args": [ - "tObj", - "neuronNum", - "windowTimes", - "CovLabels", - "Algorithm", - "batchMode", - "sampleRate", - "makePlot", - "histMinTimes", - "histMaxTimes" - ], - "line": 1111, - "name": "computeHistLag", - "static": true - }, - { - "access": "public", - "args": [ - "tObj", - "windowTimes", - "CovLabels", - "Algorithm", - "batchMode", - "sampleRate", - "makePlot", - "histMinTimes", - "histMaxTimes" - ], - "line": 1169, - "name": "computeHistLagForAll", - "static": true - }, - { - "access": "public", - "args": [ - "tObj", - "neuronNum", - "sampleRate", - "windowTimes", - "makePlot" - ], - "line": 1207, - "name": "computeNeighbors", - "static": true - }, - { - "access": "public", - "args": [ - "tObj", - "neuronNum", - "windowSize" - ], - "line": 1237, - "name": "spikeTrigAvg", - "static": true - }, - { - "access": "public", - "args": [ - "flatMaskCell" - ], - "line": 1289, - "name": "flatMaskCellToMat", - "static": true - }, - { - "access": "public", - "args": [ - "X", - "yframe", - "rrflag" - ], - "line": 1301, - "name": "bnlrCG", - "static": true - }, - { - "access": "public", - "args": [ - "pk", - "st", - "spikeflag" - ], - "line": 1410, - "name": "ksdiscrete", - "static": true - }, - { - "access": "public", - "args": [ - "pvals", - "q", - "method", - "report" - ], - "line": 1714, - "name": "fdr_bh", - "static": true - } - ], - "private_methods": [], - "properties": [ - { - "access": "public", - "line": 57, - "name": "colors" - } - ], - "public_methods": [ - "GLMFit", - "KSPlot", - "RunAnalysisForAllNeurons", - "RunAnalysisForNeuron", - "bnlrCG", - "compHistEnsCoeff", - "compHistEnsCoeffForAll", - "computeFitResidual", - "computeGrangerCausalityMatrix", - "computeHistLag", - "computeHistLagForAll", - "computeInvGausTrans", - "computeKSStats", - "computeNeighbors", - "fdr_bh", - "flatMaskCellToMat", - "ksdiscrete", - "plotCoeffs", - "plotFitResidual", - "plotInvGausTrans", - "plotSeqCorr", - "spikeTrigAvg" - ], - "superclass": "" - }, - "matlab_class": "Analysis", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "GLMFit", - "mapped_via_alias": false, - "matlab_method": "GLMFit", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "KSPlot", - "mapped_via_alias": false, - "matlab_method": "KSPlot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "RunAnalysisForAllNeurons", - "mapped_via_alias": false, - "matlab_method": "RunAnalysisForAllNeurons", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "RunAnalysisForNeuron", - "mapped_via_alias": false, - "matlab_method": "RunAnalysisForNeuron", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "bnlrCG", - "mapped_via_alias": false, - "matlab_method": "bnlrCG", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "compHistEnsCoeff", - "mapped_via_alias": false, - "matlab_method": "compHistEnsCoeff", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "compHistEnsCoeffForAll", - "mapped_via_alias": false, - "matlab_method": "compHistEnsCoeffForAll", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeFitResidual", - "mapped_via_alias": false, - "matlab_method": "computeFitResidual", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeGrangerCausalityMatrix", - "mapped_via_alias": false, - "matlab_method": "computeGrangerCausalityMatrix", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeHistLag", - "mapped_via_alias": false, - "matlab_method": "computeHistLag", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeHistLagForAll", - "mapped_via_alias": false, - "matlab_method": "computeHistLagForAll", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeInvGausTrans", - "mapped_via_alias": false, - "matlab_method": "computeInvGausTrans", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeKSStats", - "mapped_via_alias": false, - "matlab_method": "computeKSStats", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeNeighbors", - "mapped_via_alias": false, - "matlab_method": "computeNeighbors", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fdr_bh", - "mapped_via_alias": false, - "matlab_method": "fdr_bh", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "flatMaskCellToMat", - "mapped_via_alias": false, - "matlab_method": "flatMaskCellToMat", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "ksdiscrete", - "mapped_via_alias": false, - "matlab_method": "ksdiscrete", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotCoeffs", - "mapped_via_alias": false, - "matlab_method": "plotCoeffs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotFitResidual", - "mapped_via_alias": false, - "matlab_method": "plotFitResidual", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotInvGausTrans", - "mapped_via_alias": false, - "matlab_method": "plotInvGausTrans", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotSeqCorr", - "mapped_via_alias": false, - "matlab_method": "plotSeqCorr", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "spikeTrigAvg", - "mapped_via_alias": false, - "matlab_method": "spikeTrigAvg", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, /, *args, **kwargs)", - "fields": [], - "methods": { - "compute_fit_residual": "(y: 'np.ndarray', X: 'np.ndarray', fit_result: 'FitResult', dt: 'float' = 1.0) -> 'np.ndarray'", - "compute_inv_gaus_trans": "(y: 'np.ndarray', X: 'np.ndarray', fit_result: 'FitResult', dt: 'float' = 1.0) -> 'np.ndarray'", - "compute_ks_stats": "(transformed_events: 'np.ndarray') -> 'dict[str, float]'", - "fdr_bh": "(p_values: 'np.ndarray', alpha: 'float' = 0.05) -> 'np.ndarray'", - "fit_glm": "(X: 'np.ndarray', y: 'np.ndarray', fit_type: 'str' = 'poisson', dt: 'float' = 1.0, l2_penalty: 'float' = 0.0) -> 'FitResult'", - "fit_trial": "(trial: 'Trial', config: 'TrialConfig', unit_index: 'int' = 0) -> 'FitResult'", - "glm_fit": "(X: 'np.ndarray', y: 'np.ndarray', fit_type: 'str' = 'poisson', dt: 'float' = 1.0, l2_penalty: 'float' = 0.0) -> 'FitResult'", - "run_analysis_for_all_neurons": "(trial: 'Trial', config: 'TrialConfig') -> 'list[FitResult]'", - "run_analysis_for_neuron": "(trial: 'Trial', config: 'TrialConfig', unit_index: 'int' = 0) -> 'FitResult'" - }, - "properties": [] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.CIF", - "fixture_path": "tests/parity/fixtures/matlab_gold/classes/CIF/basic.mat", - "key_methods": [ - "evaluate", - "linear_predictor", - "log_likelihood", - "simulate_by_thinning", - "simulateCIFByThinningFromLambda" - ], - "python_class": "nstat.cif.CIFModel" - }, - "compat": { - "constructor_signature": "(self, coefficients: 'np.ndarray', intercept: 'float' = 0.0, link: 'str' = 'poisson') -> None", - "fields": [ - "coefficients", - "intercept", - "link" - ], - "methods": { - "CIF": "(*args: 'Any', **kwargs: 'Any') -> '_CIFModel'", - "CIFCopy": "(self) -> '_CIFModel'", - "computeLinearPredictor": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "computePlotParams": "(self, X: 'np.ndarray') -> 'dict[str, float]'", - "compute_plot_params": "(self, X: 'np.ndarray') -> 'dict[str, float]'", - "evalFunctionWithVectorArgs": "(self, X: 'np.ndarray', *_args: 'Any', **_kwargs: 'Any') -> 'np.ndarray'", - "evalGradient": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "evalGradientLDGamma": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "evalGradientLog": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "evalGradientLogLDGamma": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "evalJacobian": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "evalJacobianLDGamma": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "evalJacobianLog": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "evalJacobianLogLDGamma": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "evalLDGamma": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "evalLambda": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "evalLambdaDelta": "(self, X: 'np.ndarray', dt: 'float' = 1.0) -> 'np.ndarray'", - "evalLogLDGamma": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "eval_lambda_delta": "(self, X: 'np.ndarray', dt: 'float' = 1.0) -> 'np.ndarray'", - "evaluate": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "fromStructure": "(payload: 'dict[str, np.ndarray | float | str]') -> '_CIFModel'", - "from_structure": "(payload: 'dict[str, np.ndarray | float | str]') -> \"'CIFModel'\"", - "isSymBeta": "(self) -> 'bool'", - "linear_predictor": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "logLikelihood": "(self, y: 'np.ndarray', X: 'np.ndarray', dt: 'float' = 1.0) -> 'float'", - "log_likelihood": "(self, y: 'np.ndarray', X: 'np.ndarray', dt: 'float' = 1.0) -> 'float'", - "resolveSimulinkModelName": "(*_args: 'Any', **_kwargs: 'Any') -> 'str'", - "setHistory": "(self, history: 'Any') -> '_CIFModel'", - "setSpikeTrain": "(self, spike_train: 'Any') -> '_CIFModel'", - "simulateByThinning": "(self, time: 'np.ndarray', X: 'np.ndarray', rng: 'np.random.Generator | None' = None) -> 'np.ndarray'", - "simulateCIF": "(self, time: 'np.ndarray', X: 'np.ndarray', rng: 'np.random.Generator | None' = None) -> 'np.ndarray'", - "simulateCIFByThinning": "(self, time: 'np.ndarray', X: 'np.ndarray', rng: 'np.random.Generator | None' = None) -> 'np.ndarray'", - "simulateCIFByThinningFromLambda": "(lambda_signal: '_Covariate', numRealizations: 'int' = 1, maxTimeRes: 'float | None' = None) -> 'nstColl'", - "simulate_by_thinning": "(self, time: 'np.ndarray', X: 'np.ndarray', rng: 'np.random.Generator | None' = None) -> 'np.ndarray'", - "simulate_cif_by_thinning_from_lambda": "(time: 'np.ndarray', lambda_values: 'np.ndarray', num_realizations: 'int' = 1, rng: 'np.random.Generator | None' = None) -> 'list[np.ndarray]'", - "toStructure": "(self) -> 'dict[str, np.ndarray | float | str]'", - "to_structure": "(self) -> 'dict[str, np.ndarray | float | str]'" - }, - "properties": [] - }, - "fixture": { - "exists": true, - "generator": "class_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/classes/CIF/basic.mat" - }, - "mapping": { - "alias_methods": { - "computeLinearPredictor": "linear_predictor", - "evalLambda": "evaluate", - "logLikelihood": "log_likelihood", - "simulateByThinning": "simulate_by_thinning" - }, - "compat_class": "nstat.compat.matlab.CIF", - "python_class": "nstat.cif.CIFModel" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "beta", - "Xnames", - "stimNames", - "fitType", - "histCoeffs", - "historyObj", - "nst" - ], - "line": 96, - "name": "CIF", - "static": false - }, - "matlab_class": "CIF", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/CIF.m", - "methods": [ - { - "access": "public", - "args": [ - "beta", - "Xnames", - "stimNames", - "fitType", - "histCoeffs", - "historyObj", - "nst" - ], - "line": 96, - "name": "CIF", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj" - ], - "line": 377, - "name": "CIFCopy", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "spikeTrain" - ], - "line": 391, - "name": "setSpikeTrain", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "histObj" - ], - "line": 401, - "name": "setHistory", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "stimVal", - "time_index", - "nst" - ], - "line": 419, - "name": "evalLambdaDelta", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "stimVal", - "time_index", - "nst" - ], - "line": 449, - "name": "evalGradient", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "stimVal", - "time_index", - "nst" - ], - "line": 483, - "name": "evalGradientLog", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "stimVal", - "time_index", - "nst" - ], - "line": 518, - "name": "evalJacobian", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "stimVal", - "time_index", - "nst" - ], - "line": 551, - "name": "evalJacobianLog", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "stimVal", - "time_index", - "nst", - "gamma" - ], - "line": 588, - "name": "evalLDGamma", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "stimVal", - "time_index", - "nst", - "gamma" - ], - "line": 620, - "name": "evalLogLDGamma", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "stimVal", - "time_index", - "nst", - "gamma" - ], - "line": 653, - "name": "evalGradientLDGamma", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "stimVal", - "time_index", - "nst", - "gamma" - ], - "line": 686, - "name": "evalGradientLogLDGamma", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "stimVal", - "time_index", - "nst", - "gamma" - ], - "line": 723, - "name": "evalJacobianLogLDGamma", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj", - "stimVal", - "time_index", - "nst", - "gamma" - ], - "line": 755, - "name": "evalJacobianLDGamma", - "static": false - }, - { - "access": "public", - "args": [ - "cifObj" - ], - "line": 788, - "name": "isSymBeta", - "static": false - }, - { - "access": "public", - "args": [ - "lambda", - "numRealizations", - "maxTimeRes" - ], - "line": 799, - "name": "simulateCIFByThinningFromLambda", - "static": true - }, - { - "access": "public", - "args": [ - "mu", - "hist", - "stim", - "ens", - "inputStimSignal", - "inputEnsSignal", - "numRealizations", - "simType" - ], - "line": 879, - "name": "simulateCIFByThinning", - "static": true - }, - { - "access": "public", - "args": [ - "mu", - "hist", - "stim", - "ens", - "inputStimSignal", - "inputEnsSignal", - "numRealizations", - "simType" - ], - "line": 969, - "name": "simulateCIF", - "static": true - }, - { - "access": "private", - "args": [ - "funHandle", - "val" - ], - "line": 1051, - "name": "evalFunctionWithVectorArgs", - "static": true - }, - { - "access": "private", - "args": [ - "baseModelName" - ], - "line": 1059, - "name": "resolveSimulinkModelName", - "static": true - } - ], - "private_methods": [ - "evalFunctionWithVectorArgs", - "resolveSimulinkModelName" - ], - "properties": [ - { - "access": "public", - "line": 48, - "name": "b" - }, - { - "access": "public", - "line": 49, - "name": "varIn" - }, - { - "access": "public", - "line": 50, - "name": "stimVars" - }, - { - "access": "public", - "line": 51, - "name": "indepVars" - }, - { - "access": "public", - "line": 52, - "name": "stats" - }, - { - "access": "public", - "line": 53, - "name": "fitType" - }, - { - "access": "public", - "line": 54, - "name": "lambdaDelta" - }, - { - "access": "public", - "line": 55, - "name": "lambdaDeltaGamma" - }, - { - "access": "public", - "line": 56, - "name": "LogLambdaDeltaGamma" - }, - { - "access": "public", - "line": 57, - "name": "spikeTrain" - }, - { - "access": "public", - "line": 59, - "name": "gradientLambdaDelta" - }, - { - "access": "public", - "line": 60, - "name": "gradientLogLambdaDelta" - }, - { - "access": "public", - "line": 61, - "name": "gradientLambdaDeltaGamma" - }, - { - "access": "public", - "line": 62, - "name": "gradientLogLambdaDeltaGamma" - }, - { - "access": "public", - "line": 64, - "name": "jacobianLambdaDelta" - }, - { - "access": "public", - "line": 65, - "name": "jacobianLogLambdaDelta" - }, - { - "access": "public", - "line": 66, - "name": "jacobianLambdaDeltaGamma" - }, - { - "access": "public", - "line": 67, - "name": "jacobianLogLambdaDeltaGamma" - }, - { - "access": "public", - "line": 68, - "name": "history" - }, - { - "access": "public", - "line": 69, - "name": "histCoeffs" - }, - { - "access": "public", - "line": 70, - "name": "histCoeffVars" - }, - { - "access": "public", - "line": 71, - "name": "histVars" - }, - { - "access": "public", - "line": 72, - "name": "historyMat" - }, - { - "access": "public", - "line": 77, - "name": "lambdaDeltaFunction" - }, - { - "access": "public", - "line": 78, - "name": "lambdaDeltaGammaFunction" - }, - { - "access": "public", - "line": 79, - "name": "LogLambdaDeltaGammaFunction" - }, - { - "access": "public", - "line": 80, - "name": "gradientFunction" - }, - { - "access": "public", - "line": 81, - "name": "gradientLogFunction" - }, - { - "access": "public", - "line": 82, - "name": "gradientFunctionGamma" - }, - { - "access": "public", - "line": 83, - "name": "gradientLogFunctionGamma" - }, - { - "access": "public", - "line": 85, - "name": "jacobianFunction" - }, - { - "access": "public", - "line": 86, - "name": "jacobianLogFunction" - }, - { - "access": "public", - "line": 87, - "name": "jacobianFunctionGamma" - }, - { - "access": "public", - "line": 88, - "name": "jacobianLogFunctionGamma" - }, - { - "access": "public", - "line": 90, - "name": "argstr" - }, - { - "access": "public", - "line": 91, - "name": "argstrLDGamma" - } - ], - "public_methods": [ - "CIF", - "CIFCopy", - "evalGradient", - "evalGradientLDGamma", - "evalGradientLog", - "evalGradientLogLDGamma", - "evalJacobian", - "evalJacobianLDGamma", - "evalJacobianLog", - "evalJacobianLogLDGamma", - "evalLDGamma", - "evalLambdaDelta", - "evalLogLDGamma", - "isSymBeta", - "setHistory", - "setSpikeTrain", - "simulateCIF", - "simulateCIFByThinning", - "simulateCIFByThinningFromLambda" - ], - "superclass": "handle" - }, - "matlab_class": "CIF", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "CIF", - "mapped_via_alias": false, - "matlab_method": "CIF", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "CIFCopy", - "mapped_via_alias": false, - "matlab_method": "CIFCopy", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "evalGradient", - "mapped_via_alias": false, - "matlab_method": "evalGradient", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "evalGradientLDGamma", - "mapped_via_alias": false, - "matlab_method": "evalGradientLDGamma", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "evalGradientLog", - "mapped_via_alias": false, - "matlab_method": "evalGradientLog", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "evalGradientLogLDGamma", - "mapped_via_alias": false, - "matlab_method": "evalGradientLogLDGamma", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "evalJacobian", - "mapped_via_alias": false, - "matlab_method": "evalJacobian", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "evalJacobianLDGamma", - "mapped_via_alias": false, - "matlab_method": "evalJacobianLDGamma", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "evalJacobianLog", - "mapped_via_alias": false, - "matlab_method": "evalJacobianLog", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "evalJacobianLogLDGamma", - "mapped_via_alias": false, - "matlab_method": "evalJacobianLogLDGamma", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "evalLDGamma", - "mapped_via_alias": false, - "matlab_method": "evalLDGamma", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "evalLambdaDelta", - "mapped_via_alias": false, - "matlab_method": "evalLambdaDelta", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "evalLogLDGamma", - "mapped_via_alias": false, - "matlab_method": "evalLogLDGamma", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isSymBeta", - "mapped_via_alias": false, - "matlab_method": "isSymBeta", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setHistory", - "mapped_via_alias": false, - "matlab_method": "setHistory", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setSpikeTrain", - "mapped_via_alias": false, - "matlab_method": "setSpikeTrain", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "simulateCIF", - "mapped_via_alias": false, - "matlab_method": "simulateCIF", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "simulateCIFByThinning", - "mapped_via_alias": false, - "matlab_method": "simulateCIFByThinning", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": true, - "excluded_method": false, - "mapped_member": "simulateCIFByThinningFromLambda", - "mapped_via_alias": false, - "matlab_method": "simulateCIFByThinningFromLambda", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, coefficients: 'np.ndarray', intercept: 'float' = 0.0, link: 'str' = 'poisson') -> None", - "fields": [ - "coefficients", - "intercept", - "link" - ], - "methods": { - "compute_plot_params": "(self, X: 'np.ndarray') -> 'dict[str, float]'", - "eval_lambda_delta": "(self, X: 'np.ndarray', dt: 'float' = 1.0) -> 'np.ndarray'", - "evaluate": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "from_structure": "(payload: 'dict[str, np.ndarray | float | str]') -> \"'CIFModel'\"", - "linear_predictor": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "log_likelihood": "(self, y: 'np.ndarray', X: 'np.ndarray', dt: 'float' = 1.0) -> 'float'", - "simulate_by_thinning": "(self, time: 'np.ndarray', X: 'np.ndarray', rng: 'np.random.Generator | None' = None) -> 'np.ndarray'", - "simulate_cif_by_thinning_from_lambda": "(time: 'np.ndarray', lambda_values: 'np.ndarray', num_realizations: 'int' = 1, rng: 'np.random.Generator | None' = None) -> 'list[np.ndarray]'", - "to_structure": "(self) -> 'dict[str, np.ndarray | float | str]'" - }, - "properties": [] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.ConfidenceInterval", - "fixture_path": "tests/parity/fixtures/matlab_gold/classes/ConfidenceInterval/basic.mat", - "key_methods": [ - "width", - "contains", - "set_color", - "set_value", - "from_structure" - ], - "python_class": "nstat.confidence.ConfidenceInterval" - }, - "compat": { - "constructor_signature": "(self, time: 'np.ndarray', lower: 'np.ndarray', upper: 'np.ndarray', level: 'float' = 0.95) -> None", - "fields": [ - "level", - "lower", - "time", - "upper" - ], - "methods": { - "ConfidenceInterval": "(*args: 'Any', **kwargs: 'Any') -> '_ConfidenceInterval'", - "contains": "(self, values: 'np.ndarray') -> 'np.ndarray'", - "fromStructure": "(payload: 'dict[str, Any]') -> '_ConfidenceInterval'", - "getWidth": "(self) -> 'np.ndarray'", - "plot": "(self, *_args: 'Any', **_kwargs: 'Any') -> 'Any'", - "setColor": "(self, color: 'str') -> '_ConfidenceInterval'", - "setValue": "(self, values: 'np.ndarray | float') -> '_ConfidenceInterval'", - "toStructure": "(self) -> 'dict[str, Any]'", - "width": "(self) -> 'np.ndarray'" - }, - "properties": [] - }, - "fixture": { - "exists": true, - "generator": "class_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/classes/ConfidenceInterval/basic.mat" - }, - "mapping": { - "alias_methods": { - "contains": "contains", - "getWidth": "width" - }, - "compat_class": "nstat.compat.matlab.ConfidenceInterval", - "python_class": "nstat.confidence.ConfidenceInterval" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "varargin" - ], - "line": 48, - "name": "ConfidenceInterval", - "static": false - }, - "matlab_class": "ConfidenceInterval", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/ConfidenceInterval.m", - "methods": [ - { - "access": "public", - "args": [ - "varargin" - ], - "line": 48, - "name": "ConfidenceInterval", - "static": false - }, - { - "access": "public", - "args": [ - "ciObj", - "color" - ], - "line": 53, - "name": "setColor", - "static": false - }, - { - "access": "public", - "args": [ - "ciObj", - "value" - ], - "line": 57, - "name": "setValue", - "static": false - }, - { - "access": "public", - "args": [ - "ciObj", - "color", - "alphaVal", - "drawPatches" - ], - "line": 61, - "name": "plot", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 101, - "name": "fromStructure", - "static": true - } - ], - "private_methods": [], - "properties": [ - { - "access": "public", - "line": 43, - "name": "color" - }, - { - "access": "public", - "line": 44, - "name": "value" - } - ], - "public_methods": [ - "ConfidenceInterval", - "fromStructure", - "plot", - "setColor", - "setValue" - ], - "superclass": "SignalObj" - }, - "matlab_class": "ConfidenceInterval", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "ConfidenceInterval", - "mapped_via_alias": false, - "matlab_method": "ConfidenceInterval", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fromStructure", - "mapped_via_alias": false, - "matlab_method": "fromStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plot", - "mapped_via_alias": false, - "matlab_method": "plot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setColor", - "mapped_via_alias": false, - "matlab_method": "setColor", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setValue", - "mapped_via_alias": false, - "matlab_method": "setValue", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, time: 'np.ndarray', lower: 'np.ndarray', upper: 'np.ndarray', level: 'float' = 0.95) -> None", - "fields": [ - "level", - "lower", - "time", - "upper" - ], - "methods": { - "contains": "(self, values: 'np.ndarray') -> 'np.ndarray'", - "width": "(self) -> 'np.ndarray'" - }, - "properties": [] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.ConfigColl", - "fixture_path": "tests/parity/fixtures/matlab_gold/classes/ConfigColl/basic.mat", - "key_methods": [ - "get_config", - "add_config", - "get_config_names", - "to_structure", - "from_structure" - ], - "python_class": "nstat.trial.ConfigCollection" - }, - "compat": { - "constructor_signature": "(self, configs: 'list[TrialConfig]') -> None", - "fields": [ - "configs" - ], - "methods": { - "ConfigColl": "(*args: 'Any', **kwargs: 'Any') -> '_ConfigCollection'", - "addConfig": "(self, config: '_TrialConfig') -> '_ConfigCollection'", - "fromStructure": "(payload: 'dict[str, Any] | list[dict[str, Any]]') -> '_ConfigCollection'", - "getConfig": "(self, selector: 'int | str' = 1) -> '_TrialConfig'", - "getConfigNames": "(self) -> 'list[str]'", - "getConfigs": "(self) -> 'list[_TrialConfig]'", - "getSubsetConfigs": "(self, selectors: 'list[int] | np.ndarray') -> '_ConfigCollection'", - "setConfig": "(self, selector: 'int | str', config: '_TrialConfig') -> '_ConfigCollection'", - "setConfigNames": "(self, names: 'list[str]') -> '_ConfigCollection'", - "toStructure": "(self) -> 'dict[str, Any]'" - }, - "properties": [] - }, - "fixture": { - "exists": true, - "generator": "class_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/classes/ConfigColl/basic.mat" - }, - "mapping": { - "alias_methods": { - "getConfigs": "configs" - }, - "compat_class": "nstat.compat.matlab.ConfigColl", - "python_class": "nstat.trial.ConfigCollection" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "tcObj" - ], - "line": 60, - "name": "ConfigColl", - "static": false - }, - "matlab_class": "ConfigColl", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/ConfigColl.m", - "methods": [ - { - "access": "public", - "args": [ - "tcObj" - ], - "line": 60, - "name": "ConfigColl", - "static": false - }, - { - "access": "public", - "args": [ - "tcColl", - "tcObj" - ], - "line": 72, - "name": "addConfig", - "static": false - }, - { - "access": "public", - "args": [ - "tcColl", - "index" - ], - "line": 104, - "name": "getConfig", - "static": false - }, - { - "access": "public", - "args": [ - "tcColl", - "trial", - "index" - ], - "line": 115, - "name": "setConfig", - "static": false - }, - { - "access": "public", - "args": [ - "tcColl", - "index" - ], - "line": 125, - "name": "getConfigNames", - "static": false - }, - { - "access": "public", - "args": [ - "tcColl", - "names", - "index" - ], - "line": 144, - "name": "setConfigNames", - "static": false - }, - { - "access": "public", - "args": [ - "tcColl", - "subset" - ], - "line": 172, - "name": "getSubsetConfigs", - "static": false - }, - { - "access": "public", - "args": [ - "tcColl" - ], - "line": 178, - "name": "toStructure", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 191, - "name": "fromStructure", - "static": true - } - ], - "private_methods": [], - "properties": [ - { - "access": "public", - "line": 51, - "name": "numConfigs" - }, - { - "access": "public", - "line": 52, - "name": "configNames" - }, - { - "access": "public", - "line": 56, - "name": "configArray" - } - ], - "public_methods": [ - "ConfigColl", - "addConfig", - "fromStructure", - "getConfig", - "getConfigNames", - "getSubsetConfigs", - "setConfig", - "setConfigNames", - "toStructure" - ], - "superclass": "handle" - }, - "matlab_class": "ConfigColl", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "ConfigColl", - "mapped_via_alias": false, - "matlab_method": "ConfigColl", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "addConfig", - "mapped_via_alias": false, - "matlab_method": "addConfig", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fromStructure", - "mapped_via_alias": false, - "matlab_method": "fromStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getConfig", - "mapped_via_alias": false, - "matlab_method": "getConfig", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getConfigNames", - "mapped_via_alias": false, - "matlab_method": "getConfigNames", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getSubsetConfigs", - "mapped_via_alias": false, - "matlab_method": "getSubsetConfigs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setConfig", - "mapped_via_alias": false, - "matlab_method": "setConfig", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setConfigNames", - "mapped_via_alias": false, - "matlab_method": "setConfigNames", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toStructure", - "mapped_via_alias": false, - "matlab_method": "toStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, configs: 'list[TrialConfig]') -> None", - "fields": [ - "configs" - ], - "methods": {}, - "properties": [] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.CovColl", - "fixture_path": "tests/parity/fixtures/matlab_gold/CovCollExamples_gold.mat", - "key_methods": [ - "design_matrix", - "get_cov", - "set_mask", - "to_structure", - "from_structure" - ], - "python_class": "nstat.trial.CovariateCollection" - }, - "compat": { - "constructor_signature": "(self, covariates: 'list[Covariate]') -> None", - "fields": [ - "covariates" - ], - "methods": { - "addCovCellToColl": "(self, covariates: 'list[_Covariate]') -> \"'CovColl'\"", - "addCovCollection": "(self, other: '_CovariateCollection') -> \"'CovColl'\"", - "addSingleCovToColl": "(self, cov: '_Covariate') -> \"'CovColl'\"", - "addToColl": "(self, cov: '_Covariate') -> \"'CovColl'\"", - "add_to_coll": "(self, covariate: 'Covariate') -> \"'CovariateCollection'\"", - "containsChars": "(text: 'str', chars: 'str | list[str]') -> 'bool'", - "copy": "(self) -> \"'CovColl'\"", - "covIndFromSelector": "(self, selector: 'int | str | list[int] | list[str] | np.ndarray') -> 'list[int]'", - "dataToMatrix": "(self) -> 'tuple[np.ndarray, list[str]]'", - "dataToMatrixFromNames": "(self, names: 'list[str]') -> 'tuple[np.ndarray, list[str]]'", - "dataToMatrixFromSel": "(self, selectors: 'list[int]') -> 'tuple[np.ndarray, list[str]]'", - "dataToStructure": "(self) -> 'dict[str, Any]'", - "data_to_matrix": "(self) -> 'tuple[np.ndarray, list[str]]'", - "data_to_matrix_from_names": "(self, names: 'list[str]') -> 'tuple[np.ndarray, list[str]]'", - "data_to_matrix_from_sel": "(self, selectors: 'list[int]') -> 'tuple[np.ndarray, list[str]]'", - "design_matrix": "(self) -> 'tuple[np.ndarray, list[str]]'", - "enforceSampleRate": "(self, sampleRate: 'float') -> \"'CovColl'\"", - "findMaxTime": "(self) -> 'float'", - "findMinTime": "(self) -> 'float'", - "find_max_sample_rate": "(self) -> 'float'", - "find_max_time": "(self) -> 'float'", - "find_min_sample_rate": "(self) -> 'float'", - "find_min_time": "(self) -> 'float'", - "flattenCovMask": "(self, mask: 'list[int] | np.ndarray | list[list[int]]') -> 'list[int]'", - "fromStructure": "(payload: 'dict[str, Any]') -> \"'CovColl'\"", - "generateRemainingIndex": "(self, selector: 'int | str | list[int] | list[str] | np.ndarray') -> 'list[int]'", - "generateSelectorCell": "(self, mask: 'list[int] | np.ndarray') -> 'list[str]'", - "getAllCovLabels": "(self) -> 'list[str]'", - "getCov": "(self, selector: 'int | str') -> '_Covariate'", - "getCovDataMask": "(self) -> 'list[int]'", - "getCovDimension": "(self) -> 'int'", - "getCovIndFromName": "(self, name: 'str') -> 'int'", - "getCovIndicesFromNames": "(self, names: 'list[str]') -> 'list[int]'", - "getCovLabelsFromMask": "(self) -> 'list[str]'", - "getCovMaskFromSelector": "(self, selector: 'int | str | list[int] | list[str] | np.ndarray') -> 'list[int]'", - "getDesignMatrix": "(self) -> 'tuple[np.ndarray, list[str]]'", - "getSelectorFromMasks": "(self, mask: 'list[int] | np.ndarray') -> 'list[str]'", - "getTime": "(self) -> 'np.ndarray'", - "get_all_cov_labels": "(self) -> 'list[str]'", - "get_cov": "(self, selector: 'int | str') -> 'Covariate'", - "get_cov_dimension": "(self) -> 'int'", - "get_cov_ind_from_name": "(self, name: 'str') -> 'int'", - "get_cov_indices_from_names": "(self, names: 'list[str]') -> 'list[int]'", - "isCovMaskSet": "(self) -> 'bool'", - "isCovPresent": "(self, name: 'str') -> 'bool'", - "is_cov_present": "(self, name: 'str') -> 'bool'", - "isaSelectorCell": "(selector: 'Any') -> 'bool'", - "maskAwayAllExcept": "(self, selector: 'int | str | list[int] | list[str] | np.ndarray') -> \"'CovColl'\"", - "maskAwayCov": "(self, selector: 'int | str | list[int] | list[str] | np.ndarray') -> \"'CovColl'\"", - "maskAwayOnlyCov": "(self, selector: 'int | str | list[int] | list[str] | np.ndarray') -> \"'CovColl'\"", - "nActCovar": "(self) -> 'int'", - "n_act_covar": "(self) -> 'int'", - "numActCov": "(self) -> 'int'", - "num_act_cov": "(self) -> 'int'", - "parseDataSelectorArray": "(self, selector: 'Any') -> 'list[int]'", - "plot": "(self, *_args: 'Any', **_kwargs: 'Any') -> 'Any'", - "removeCovariate": "(self, selector: 'int | str') -> \"'CovColl'\"", - "removeFromColl": "(self, selector: 'int | str') -> \"'CovColl'\"", - "removeFromCollByIndices": "(self, indices: 'list[int]') -> \"'CovColl'\"", - "resample": "(self, sampleRate: 'float') -> \"'CovColl'\"", - "resetCovShift": "(self) -> \"'CovColl'\"", - "resetMask": "(self) -> \"'CovColl'\"", - "restoreToOriginal": "(self) -> \"'CovColl'\"", - "restrictToTimeWindow": "(self, t_min: 'float', t_max: 'float') -> \"'CovColl'\"", - "setCovShift": "(self, shift_s: 'float') -> \"'CovColl'\"", - "setMask": "(self, selector: 'list[int] | list[str]') -> \"'CovColl'\"", - "setMasksFromSelector": "(self, selector: 'list[int] | list[str] | np.ndarray') -> \"'CovColl'\"", - "setMaxTime": "(self, t_max: 'float') -> \"'CovColl'\"", - "setMinTime": "(self, t_min: 'float') -> \"'CovColl'\"", - "setSampleRate": "(self, sampleRate: 'float') -> \"'CovColl'\"", - "sumDimensions": "(self) -> 'int'", - "sum_dimensions": "(self) -> 'int'", - "toStructure": "(self) -> 'dict[str, Any]'", - "updateTimes": "(self) -> \"'CovColl'\"" - }, - "properties": [ - "time" - ] - }, - "fixture": { - "exists": true, - "generator": "topic_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/CovCollExamples_gold.mat" - }, - "mapping": { - "alias_methods": { - "CovColl": "copy", - "getDesignMatrix": "design_matrix", - "getTime": "time" - }, - "compat_class": "nstat.compat.matlab.CovColl", - "python_class": "nstat.trial.CovariateCollection" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "cov", - "varargin" - ], - "line": 78, - "name": "CovColl", - "static": false - }, - "matlab_class": "CovColl", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/CovColl.m", - "methods": [ - { - "access": "public", - "args": [ - "cov", - "varargin" - ], - "line": 78, - "name": "CovColl", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "minTime" - ], - "line": 105, - "name": "setMinTime", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "maxTime" - ], - "line": 121, - "name": "setMaxTime", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "sampleRate" - ], - "line": 138, - "name": "setSampleRate", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "cellInput" - ], - "line": 152, - "name": "setMask", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "identifier" - ], - "line": 163, - "name": "getCovDataMask", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 170, - "name": "isCovMaskSet", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 182, - "name": "nActCovar", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "identifier" - ], - "line": 192, - "name": "maskAwayCov", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 214, - "name": "copy", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "identifier" - ], - "line": 223, - "name": "maskAwayOnlyCov", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "identifier" - ], - "line": 231, - "name": "maskAwayAllExcept", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "identifier" - ], - "line": 253, - "name": "getCov", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "name" - ], - "line": 299, - "name": "getCovIndicesFromNames", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "identifier" - ], - "line": 319, - "name": "getCovDimension", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 329, - "name": "getAllCovLabels", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 343, - "name": "getCovLabelsFromMask", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 365, - "name": "toStructure", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 383, - "name": "findMinTime", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 392, - "name": "findMaxTime", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "cov" - ], - "line": 403, - "name": "addToColl", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "cov" - ], - "line": 421, - "name": "addCovCollection", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "cov" - ], - "line": 429, - "name": "isCovPresent", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "sampleRate" - ], - "line": 461, - "name": "resample", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 468, - "name": "restoreToOriginal", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "wMin", - "wMax" - ], - "line": 489, - "name": "restrictToTimeWindow", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "identifier" - ], - "line": 499, - "name": "removeCovariate", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 504, - "name": "resetMask", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 512, - "name": "enforceSampleRate", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "deltaT", - "identifier" - ], - "line": 525, - "name": "setCovShift", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 543, - "name": "resetCovShift", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj" - ], - "line": 549, - "name": "flattenCovMask", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "repType", - "dataSelector", - "varargin" - ], - "line": 566, - "name": "dataToMatrix", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "repType", - "dataSelector", - "varargin" - ], - "line": 584, - "name": "dataToMatrixFromNames", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "repType", - "selectorCell", - "varargin" - ], - "line": 588, - "name": "dataToMatrixFromSel", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "selectorCell", - "binwidth", - "minTime", - "maxTime" - ], - "line": 636, - "name": "dataToStructure", - "static": false - }, - { - "access": "public", - "args": [ - "ccObj", - "handle", - "repType", - "selectorCell" - ], - "line": 670, - "name": "plot", - "static": false - }, - { - "access": "private", - "args": [ - "ccObj", - "selectorCell" - ], - "line": 722, - "name": "setMasksFromSelector", - "static": false - }, - { - "access": "private", - "args": [ - "ccObj", - "selectorCell" - ], - "line": 727, - "name": "getCovMaskFromSelector", - "static": false - }, - { - "access": "private", - "args": [ - "ccObj", - "covMask" - ], - "line": 740, - "name": "getSelectorFromMasks", - "static": false - }, - { - "access": "private", - "args": [ - "ccObj", - "dataSelector" - ], - "line": 756, - "name": "isaSelectorCell", - "static": false - }, - { - "access": "private", - "args": [ - "ccObj", - "dataSelector" - ], - "line": 763, - "name": "generateSelectorCell", - "static": false - }, - { - "access": "private", - "args": [ - "ccObj", - "cov" - ], - "line": 801, - "name": "addCovCellToColl", - "static": false - }, - { - "access": "private", - "args": [ - "ccObj", - "cov" - ], - "line": 811, - "name": "addSingleCovToColl", - "static": false - }, - { - "access": "private", - "args": [ - "ccObj", - "cov" - ], - "line": 837, - "name": "updateTimes", - "static": false - }, - { - "access": "private", - "args": [ - "ccObj", - "name" - ], - "line": 848, - "name": "getCovIndFromName", - "static": false - }, - { - "access": "private", - "args": [ - "ccObj", - "identifier" - ], - "line": 857, - "name": "removeFromColl", - "static": false - }, - { - "access": "private", - "args": [ - "ccObj", - "ind" - ], - "line": 871, - "name": "removeFromCollByIndices", - "static": false - }, - { - "access": "private", - "args": [ - "ccObj", - "ind" - ], - "line": 897, - "name": "generateRemainingIndex", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 911, - "name": "fromStructure", - "static": true - }, - { - "access": "public", - "args": [ - "selectorCell" - ], - "line": 940, - "name": "covIndFromSelector", - "static": true - }, - { - "access": "public", - "args": [ - "selectorCell" - ], - "line": 950, - "name": "numActCov", - "static": true - }, - { - "access": "public", - "args": [ - "selectorCell", - "index" - ], - "line": 959, - "name": "sumDimensions", - "static": true - }, - { - "access": "public", - "args": [ - "entry" - ], - "line": 971, - "name": "parseDataSelectorArray", - "static": true - }, - { - "access": "public", - "args": [ - "x" - ], - "line": 978, - "name": "containsChars", - "static": true - } - ], - "private_methods": [ - "addCovCellToColl", - "addSingleCovToColl", - "generateRemainingIndex", - "generateSelectorCell", - "getCovIndFromName", - "getCovMaskFromSelector", - "getSelectorFromMasks", - "isaSelectorCell", - "removeFromColl", - "removeFromCollByIndices", - "setMasksFromSelector", - "updateTimes" - ], - "properties": [ - { - "access": "private", - "line": 59, - "name": "covArray" - }, - { - "access": "private", - "line": 60, - "name": "covDimensions" - }, - { - "access": "private", - "line": 61, - "name": "numCov" - }, - { - "access": "private", - "line": 62, - "name": "minTime" - }, - { - "access": "private", - "line": 63, - "name": "maxTime" - }, - { - "access": "private", - "line": 64, - "name": "covMask" - }, - { - "access": "private", - "line": 65, - "name": "covShift" - }, - { - "access": "private", - "line": 66, - "name": "sampleRate" - }, - { - "access": "public", - "line": 70, - "name": "originalSampleRate" - }, - { - "access": "public", - "line": 71, - "name": "originalMinTime" - }, - { - "access": "public", - "line": 72, - "name": "originalMaxTime" - } - ], - "public_methods": [ - "CovColl", - "addCovCollection", - "addToColl", - "containsChars", - "copy", - "covIndFromSelector", - "dataToMatrix", - "dataToMatrixFromNames", - "dataToMatrixFromSel", - "dataToStructure", - "enforceSampleRate", - "findMaxTime", - "findMinTime", - "flattenCovMask", - "fromStructure", - "getAllCovLabels", - "getCov", - "getCovDataMask", - "getCovDimension", - "getCovIndicesFromNames", - "getCovLabelsFromMask", - "isCovMaskSet", - "isCovPresent", - "maskAwayAllExcept", - "maskAwayCov", - "maskAwayOnlyCov", - "nActCovar", - "numActCov", - "parseDataSelectorArray", - "plot", - "removeCovariate", - "resample", - "resetCovShift", - "resetMask", - "restoreToOriginal", - "restrictToTimeWindow", - "setCovShift", - "setMask", - "setMaxTime", - "setMinTime", - "setSampleRate", - "sumDimensions", - "toStructure" - ], - "superclass": "handle" - }, - "matlab_class": "CovColl", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "copy", - "mapped_via_alias": true, - "matlab_method": "CovColl", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "addCovCollection", - "mapped_via_alias": false, - "matlab_method": "addCovCollection", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "addToColl", - "mapped_via_alias": false, - "matlab_method": "addToColl", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "containsChars", - "mapped_via_alias": false, - "matlab_method": "containsChars", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "copy", - "mapped_via_alias": false, - "matlab_method": "copy", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "covIndFromSelector", - "mapped_via_alias": false, - "matlab_method": "covIndFromSelector", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "dataToMatrix", - "mapped_via_alias": false, - "matlab_method": "dataToMatrix", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "dataToMatrixFromNames", - "mapped_via_alias": false, - "matlab_method": "dataToMatrixFromNames", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "dataToMatrixFromSel", - "mapped_via_alias": false, - "matlab_method": "dataToMatrixFromSel", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "dataToStructure", - "mapped_via_alias": false, - "matlab_method": "dataToStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "enforceSampleRate", - "mapped_via_alias": false, - "matlab_method": "enforceSampleRate", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "findMaxTime", - "mapped_via_alias": false, - "matlab_method": "findMaxTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "findMinTime", - "mapped_via_alias": false, - "matlab_method": "findMinTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "flattenCovMask", - "mapped_via_alias": false, - "matlab_method": "flattenCovMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fromStructure", - "mapped_via_alias": false, - "matlab_method": "fromStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getAllCovLabels", - "mapped_via_alias": false, - "matlab_method": "getAllCovLabels", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getCov", - "mapped_via_alias": false, - "matlab_method": "getCov", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getCovDataMask", - "mapped_via_alias": false, - "matlab_method": "getCovDataMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getCovDimension", - "mapped_via_alias": false, - "matlab_method": "getCovDimension", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getCovIndicesFromNames", - "mapped_via_alias": false, - "matlab_method": "getCovIndicesFromNames", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getCovLabelsFromMask", - "mapped_via_alias": false, - "matlab_method": "getCovLabelsFromMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isCovMaskSet", - "mapped_via_alias": false, - "matlab_method": "isCovMaskSet", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isCovPresent", - "mapped_via_alias": false, - "matlab_method": "isCovPresent", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "maskAwayAllExcept", - "mapped_via_alias": false, - "matlab_method": "maskAwayAllExcept", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "maskAwayCov", - "mapped_via_alias": false, - "matlab_method": "maskAwayCov", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "maskAwayOnlyCov", - "mapped_via_alias": false, - "matlab_method": "maskAwayOnlyCov", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "nActCovar", - "mapped_via_alias": false, - "matlab_method": "nActCovar", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "numActCov", - "mapped_via_alias": false, - "matlab_method": "numActCov", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "parseDataSelectorArray", - "mapped_via_alias": false, - "matlab_method": "parseDataSelectorArray", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plot", - "mapped_via_alias": false, - "matlab_method": "plot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "removeCovariate", - "mapped_via_alias": false, - "matlab_method": "removeCovariate", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resample", - "mapped_via_alias": false, - "matlab_method": "resample", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resetCovShift", - "mapped_via_alias": false, - "matlab_method": "resetCovShift", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resetMask", - "mapped_via_alias": false, - "matlab_method": "resetMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "restoreToOriginal", - "mapped_via_alias": false, - "matlab_method": "restoreToOriginal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "restrictToTimeWindow", - "mapped_via_alias": false, - "matlab_method": "restrictToTimeWindow", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setCovShift", - "mapped_via_alias": false, - "matlab_method": "setCovShift", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMask", - "mapped_via_alias": false, - "matlab_method": "setMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMaxTime", - "mapped_via_alias": false, - "matlab_method": "setMaxTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMinTime", - "mapped_via_alias": false, - "matlab_method": "setMinTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setSampleRate", - "mapped_via_alias": false, - "matlab_method": "setSampleRate", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "sumDimensions", - "mapped_via_alias": false, - "matlab_method": "sumDimensions", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toStructure", - "mapped_via_alias": false, - "matlab_method": "toStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, covariates: 'list[Covariate]') -> None", - "fields": [ - "covariates" - ], - "methods": { - "add_to_coll": "(self, covariate: 'Covariate') -> \"'CovariateCollection'\"", - "copy": "(self) -> \"'CovariateCollection'\"", - "data_to_matrix": "(self) -> 'tuple[np.ndarray, list[str]]'", - "data_to_matrix_from_names": "(self, names: 'list[str]') -> 'tuple[np.ndarray, list[str]]'", - "data_to_matrix_from_sel": "(self, selectors: 'list[int]') -> 'tuple[np.ndarray, list[str]]'", - "design_matrix": "(self) -> 'tuple[np.ndarray, list[str]]'", - "find_max_sample_rate": "(self) -> 'float'", - "find_max_time": "(self) -> 'float'", - "find_min_sample_rate": "(self) -> 'float'", - "find_min_time": "(self) -> 'float'", - "get_all_cov_labels": "(self) -> 'list[str]'", - "get_cov": "(self, selector: 'int | str') -> 'Covariate'", - "get_cov_dimension": "(self) -> 'int'", - "get_cov_ind_from_name": "(self, name: 'str') -> 'int'", - "get_cov_indices_from_names": "(self, names: 'list[str]') -> 'list[int]'", - "is_cov_present": "(self, name: 'str') -> 'bool'", - "n_act_covar": "(self) -> 'int'", - "num_act_cov": "(self) -> 'int'", - "sum_dimensions": "(self) -> 'int'" - }, - "properties": [ - "time" - ] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.Covariate", - "fixture_path": "tests/parity/fixtures/matlab_gold/CovCollExamples_gold.mat", - "key_methods": [ - "get_sub_signal", - "data_to_matrix", - "compute_mean_plus_ci", - "to_structure", - "from_structure" - ], - "python_class": "nstat.signal.Covariate" - }, - "compat": { - "constructor_signature": "(self, time: 'ArrayLike', data: 'ArrayLike', name: 'str' = 'signal', units: 'str | None' = None, x_label: 'str | None' = None, y_label: 'str | None' = None, x_units: 'str | None' = None, y_units: 'str | None' = None, plot_props: 'dict[str, Any]' = , labels: 'list[str]' = , conf_interval: 'Any | None' = None) -> None", - "fields": [ - "conf_interval", - "data", - "labels", - "name", - "plot_props", - "time", - "units", - "x_label", - "x_units", - "y_label", - "y_units" - ], - "methods": { - "Covariate": "(payload: 'dict[str, Any]') -> '_Covariate'", - "align_time": "(self, new_zero_time: 'float' = 0.0) -> \"'Signal'\"", - "clear_plot_props": "(self) -> \"'Signal'\"", - "computeMeanPlusCI": "(self, axis: 'int' = 1, level: 'float' = 0.95) -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "compute_mean_plus_ci": "(self, axis: 'int' = 1, level: 'float' = 0.95) -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "copy": "(self) -> \"'Signal'\"", - "copySignal": "(self) -> '_Covariate'", - "copy_signal": "(self) -> \"'Signal'\"", - "dataToStructure": "(self) -> 'dict[str, Any]'", - "data_to_matrix": "(self) -> 'np.ndarray'", - "derivative": "(self) -> \"'Signal'\"", - "filtfilt": "(self, b: 'np.ndarray', a: 'np.ndarray') -> \"'Covariate'\"", - "fromStructure": "(payload: 'dict[str, Any]') -> '_Covariate'", - "from_structure": "(payload: 'dict[str, Any]') -> \"'Covariate'\"", - "getData": "(self) -> 'np.ndarray'", - "getLabels": "(self) -> 'list[str]'", - "getNumSignals": "(self) -> 'int'", - "getSampleRate": "(self) -> 'float'", - "getSigRep": "(self) -> 'np.ndarray'", - "getSubSignal": "(self, selector: 'int | str | list[int] | list[str]') -> '_Covariate'", - "getTime": "(self) -> 'np.ndarray'", - "get_labels": "(self) -> 'list[str]'", - "get_sub_signal": "(self, selector: 'Any') -> \"'Covariate'\"", - "integral": "(self) -> 'np.ndarray'", - "isConfIntervalSet": "(self) -> 'bool'", - "is_conf_interval_set": "(self) -> 'bool'", - "merge": "(self, other: \"'Signal'\") -> \"'Signal'\"", - "minus": "(self, other: 'float | np.ndarray | _Signal') -> '_Covariate'", - "plot": "(self, *_args: 'Any', **_kwargs: 'Any') -> 'Any'", - "plus": "(self, other: 'float | np.ndarray | _Signal') -> '_Covariate'", - "resample": "(self, sample_rate_hz: 'float') -> \"'Signal'\"", - "restrict_to_time_window": "(self, min_time: 'float', max_time: 'float') -> \"'Signal'\"", - "setConfInterval": "(self, interval: 'Any') -> '_Covariate'", - "set_conf_interval": "(self, interval: 'Any') -> \"'Covariate'\"", - "set_max_time": "(self, max_time: 'float') -> \"'Signal'\"", - "set_min_time": "(self, min_time: 'float') -> \"'Signal'\"", - "set_name": "(self, name: 'str') -> \"'Signal'\"", - "set_plot_props": "(self, props: 'dict[str, Any]') -> \"'Signal'\"", - "set_units": "(self, units: 'str') -> \"'Signal'\"", - "set_x_units": "(self, units: 'str') -> \"'Signal'\"", - "set_xlabel": "(self, label: 'str') -> \"'Signal'\"", - "set_y_units": "(self, units: 'str') -> \"'Signal'\"", - "set_ylabel": "(self, label: 'str') -> \"'Signal'\"", - "shift_time": "(self, offset_s: 'float') -> \"'Signal'\"", - "toStructure": "(self) -> 'dict[str, Any]'", - "to_structure": "(self) -> 'dict[str, Any]'" - }, - "properties": [ - "duration_s", - "n_channels", - "n_samples", - "sample_rate_hz" - ] - }, - "fixture": { - "exists": true, - "generator": "topic_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/CovCollExamples_gold.mat" - }, - "mapping": { - "alias_methods": { - "getData": "data", - "getLabels": "labels", - "getNumSignals": "n_channels", - "getSampleRate": "sample_rate_hz", - "getTime": "time" - }, - "compat_class": "nstat.compat.matlab.Covariate", - "python_class": "nstat.signal.Covariate" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "varargin" - ], - "line": 70, - "name": "Covariate", - "static": false - }, - "matlab_class": "Covariate", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/Covariate.m", - "methods": [ - { - "access": "public", - "args": [ - "varargin" - ], - "line": 70, - "name": "Covariate", - "static": false - }, - { - "access": "public", - "args": [ - "covObj", - "alphaVal" - ], - "line": 76, - "name": "computeMeanPlusCI", - "static": false - }, - { - "access": "public", - "args": [ - "covObj", - "varargin" - ], - "line": 89, - "name": "plot", - "static": false - }, - { - "access": "public", - "args": [ - "covObj", - "varargin" - ], - "line": 113, - "name": "getSubSignal", - "static": false - }, - { - "access": "public", - "args": [ - "covObj", - "repType" - ], - "line": 123, - "name": "getSigRep", - "static": false - }, - { - "access": "public", - "args": [], - "line": 138, - "name": "get", - "static": false - }, - { - "access": "public", - "args": [], - "line": 141, - "name": "get", - "static": false - }, - { - "access": "public", - "args": [ - "covObj", - "varargin" - ], - "line": 145, - "name": "filtfilt", - "static": false - }, - { - "access": "public", - "args": [ - "covObj" - ], - "line": 150, - "name": "toStructure", - "static": false - }, - { - "access": "public", - "args": [ - "covObj" - ], - "line": 177, - "name": "isConfIntervalSet", - "static": false - }, - { - "access": "public", - "args": [ - "covObj", - "ciObj" - ], - "line": 180, - "name": "setConfInterval", - "static": false - }, - { - "access": "public", - "args": [ - "covObj" - ], - "line": 187, - "name": "copySignal", - "static": false - }, - { - "access": "public", - "args": [ - "covObj", - "covObj2" - ], - "line": 194, - "name": "plus", - "static": false - }, - { - "access": "public", - "args": [ - "covObj", - "covObj2" - ], - "line": 218, - "name": "minus", - "static": false - }, - { - "access": "public", - "args": [ - "covObj" - ], - "line": 243, - "name": "dataToStructure", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 249, - "name": "fromStructure", - "static": true - } - ], - "private_methods": [], - "properties": [ - { - "access": "public", - "line": 61, - "name": "mu" - }, - { - "access": "public", - "line": 62, - "name": "sigma" - }, - { - "access": "public", - "line": 66, - "name": "ci" - } - ], - "public_methods": [ - "Covariate", - "computeMeanPlusCI", - "copySignal", - "dataToStructure", - "filtfilt", - "fromStructure", - "get", - "getSigRep", - "getSubSignal", - "isConfIntervalSet", - "minus", - "plot", - "plus", - "setConfInterval", - "toStructure" - ], - "superclass": "SignalObj" - }, - "matlab_class": "Covariate", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "Covariate", - "mapped_via_alias": false, - "matlab_method": "Covariate", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeMeanPlusCI", - "mapped_via_alias": false, - "matlab_method": "computeMeanPlusCI", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "copySignal", - "mapped_via_alias": false, - "matlab_method": "copySignal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "dataToStructure", - "mapped_via_alias": false, - "matlab_method": "dataToStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "filtfilt", - "mapped_via_alias": false, - "matlab_method": "filtfilt", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fromStructure", - "mapped_via_alias": false, - "matlab_method": "fromStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "get", - "mapped_via_alias": false, - "matlab_method": "get", - "present_in_compat_surface": false, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getSigRep", - "mapped_via_alias": false, - "matlab_method": "getSigRep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getSubSignal", - "mapped_via_alias": false, - "matlab_method": "getSubSignal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isConfIntervalSet", - "mapped_via_alias": false, - "matlab_method": "isConfIntervalSet", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "minus", - "mapped_via_alias": false, - "matlab_method": "minus", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plot", - "mapped_via_alias": false, - "matlab_method": "plot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plus", - "mapped_via_alias": false, - "matlab_method": "plus", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setConfInterval", - "mapped_via_alias": false, - "matlab_method": "setConfInterval", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toStructure", - "mapped_via_alias": false, - "matlab_method": "toStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, time: 'ArrayLike', data: 'ArrayLike', name: 'str' = 'signal', units: 'str | None' = None, x_label: 'str | None' = None, y_label: 'str | None' = None, x_units: 'str | None' = None, y_units: 'str | None' = None, plot_props: 'dict[str, Any]' = , labels: 'list[str]' = , conf_interval: 'Any | None' = None) -> None", - "fields": [ - "conf_interval", - "data", - "labels", - "name", - "plot_props", - "time", - "units", - "x_label", - "x_units", - "y_label", - "y_units" - ], - "methods": { - "align_time": "(self, new_zero_time: 'float' = 0.0) -> \"'Signal'\"", - "clear_plot_props": "(self) -> \"'Signal'\"", - "compute_mean_plus_ci": "(self, axis: 'int' = 1, level: 'float' = 0.95) -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "copy": "(self) -> \"'Signal'\"", - "copy_signal": "(self) -> \"'Signal'\"", - "data_to_matrix": "(self) -> 'np.ndarray'", - "derivative": "(self) -> \"'Signal'\"", - "filtfilt": "(self, b: 'np.ndarray', a: 'np.ndarray') -> \"'Covariate'\"", - "from_structure": "(payload: 'dict[str, Any]') -> \"'Covariate'\"", - "get_labels": "(self) -> 'list[str]'", - "get_sub_signal": "(self, selector: 'Any') -> \"'Covariate'\"", - "integral": "(self) -> 'np.ndarray'", - "is_conf_interval_set": "(self) -> 'bool'", - "merge": "(self, other: \"'Signal'\") -> \"'Signal'\"", - "resample": "(self, sample_rate_hz: 'float') -> \"'Signal'\"", - "restrict_to_time_window": "(self, min_time: 'float', max_time: 'float') -> \"'Signal'\"", - "set_conf_interval": "(self, interval: 'Any') -> \"'Covariate'\"", - "set_max_time": "(self, max_time: 'float') -> \"'Signal'\"", - "set_min_time": "(self, min_time: 'float') -> \"'Signal'\"", - "set_name": "(self, name: 'str') -> \"'Signal'\"", - "set_plot_props": "(self, props: 'dict[str, Any]') -> \"'Signal'\"", - "set_units": "(self, units: 'str') -> \"'Signal'\"", - "set_x_units": "(self, units: 'str') -> \"'Signal'\"", - "set_xlabel": "(self, label: 'str') -> \"'Signal'\"", - "set_y_units": "(self, units: 'str') -> \"'Signal'\"", - "set_ylabel": "(self, label: 'str') -> \"'Signal'\"", - "shift_time": "(self, offset_s: 'float') -> \"'Signal'\"", - "to_structure": "(self) -> 'dict[str, Any]'" - }, - "properties": [ - "duration_s", - "n_channels", - "n_samples", - "sample_rate_hz" - ] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.DecodingAlgorithms", - "fixture_path": "tests/parity/fixtures/matlab_gold/DecodingExample_gold.mat", - "key_methods": [ - "compute_spike_rate_cis", - "compute_spike_rate_diff_cis", - "decode_weighted_center", - "decode_state_posterior", - "computeSpikeRateCIs" - ], - "python_class": "nstat.decoding.DecodingAlgorithms" - }, - "compat": { - "constructor_signature": "(self, /, *args, **kwargs)", - "fields": [], - "methods": { - "ComputeStimulusCIs": "(posterior: 'np.ndarray', state_values: 'np.ndarray', alpha: 'float' = 0.05) -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "KF_ComputeParamStandardErrors": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "KF_EM": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "KF_EMCreateConstraints": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "KF_EStep": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "KF_MStep": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "PPDecodeFilter": "(spike_counts: 'np.ndarray', tuning_rates: 'np.ndarray', transition: 'np.ndarray | None' = None, prior: 'np.ndarray | None' = None) -> 'tuple[np.ndarray, np.ndarray]'", - "PPDecodeFilterLinear": "(spike_counts: 'np.ndarray', tuning_rates: 'np.ndarray', transition: 'np.ndarray | None' = None, prior: 'np.ndarray | None' = None) -> 'tuple[np.ndarray, np.ndarray]'", - "PPDecode_predict": "(x_prev: 'np.ndarray', p_prev: 'np.ndarray', a: 'np.ndarray', q: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "PPDecode_update": "(x_pred: 'np.ndarray', p_pred: 'np.ndarray', y_t: 'np.ndarray', h: 'np.ndarray', r: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "PPDecode_updateLinear": "(x_pred: 'np.ndarray', p_pred: 'np.ndarray', y_t: 'np.ndarray', h: 'np.ndarray', r: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "PPHybridFilter": "(spike_counts: 'np.ndarray', tuning_rates: 'np.ndarray', transition: 'np.ndarray | None' = None, prior: 'np.ndarray | None' = None) -> 'tuple[np.ndarray, np.ndarray]'", - "PPHybridFilterLinear": "(spike_counts: 'np.ndarray', tuning_rates: 'np.ndarray', transition: 'np.ndarray | None' = None, prior: 'np.ndarray | None' = None) -> 'tuple[np.ndarray, np.ndarray]'", - "PPSS_EM": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "PPSS_EMFB": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "PPSS_EStep": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "PPSS_MStep": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "PP_ComputeParamStandardErrors": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "PP_EM": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "PP_EMCreateConstraints": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "PP_EStep": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "PP_MStep": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "PP_fixedIntervalSmoother": "(xf: 'np.ndarray', pf: 'np.ndarray', xp: 'np.ndarray', pp: 'np.ndarray', a: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "computeSpikeRateCIs": "(*args: 'Any', **kwargs: 'Any') -> 'tuple[Any, np.ndarray, np.ndarray]'", - "computeSpikeRateDiffCIs": "(spike_matrix_a: 'np.ndarray', spike_matrix_b: 'np.ndarray', alpha: 'float' = 0.05) -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "decodeStatePosterior": "(spike_counts: 'np.ndarray', tuning_rates: 'np.ndarray', transition: 'np.ndarray | None' = None, prior: 'np.ndarray | None' = None) -> 'tuple[np.ndarray, np.ndarray]'", - "decodeWeightedCenter": "(spike_counts: 'np.ndarray', tuning_curves: 'np.ndarray') -> 'np.ndarray'", - "estimateInfoMat": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "getPoolSizeCompat": "() -> 'int'", - "kalman_filter": "(y: 'np.ndarray', a: 'np.ndarray', h: 'np.ndarray', q: 'np.ndarray', r: 'np.ndarray', x0: 'np.ndarray', p0: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]'", - "kalman_fixedIntervalSmoother": "(xf: 'np.ndarray', pf: 'np.ndarray', xp: 'np.ndarray', pp: 'np.ndarray', a: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "kalman_predict": "(x_prev: 'np.ndarray', p_prev: 'np.ndarray', a: 'np.ndarray', q: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "kalman_smoother": "(xf: 'np.ndarray', pf: 'np.ndarray', xp: 'np.ndarray', pp: 'np.ndarray', a: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "kalman_smootherFromFiltered": "(y: 'np.ndarray', a: 'np.ndarray', h: 'np.ndarray', q: 'np.ndarray', r: 'np.ndarray', x0: 'np.ndarray', p0: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "kalman_update": "(x_pred: 'np.ndarray', p_pred: 'np.ndarray', y_t: 'np.ndarray', h: 'np.ndarray', r: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "mPPCODecodeLinear": "(spike_counts: 'np.ndarray', tuning_rates: 'np.ndarray', transition: 'np.ndarray | None' = None, prior: 'np.ndarray | None' = None) -> 'tuple[np.ndarray, np.ndarray]'", - "mPPCODecode_predict": "(x_prev: 'np.ndarray', p_prev: 'np.ndarray', a: 'np.ndarray', q: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "mPPCODecode_update": "(x_pred: 'np.ndarray', p_pred: 'np.ndarray', y_t: 'np.ndarray', h: 'np.ndarray', r: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "mPPCO_ComputeParamStandardErrors": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "mPPCO_EM": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "mPPCO_EMCreateConstraints": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "mPPCO_EStep": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "mPPCO_MStep": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "mPPCO_fixedIntervalSmoother": "(xf: 'np.ndarray', pf: 'np.ndarray', xp: 'np.ndarray', pp: 'np.ndarray', a: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "prepareEMResults": "(*_args: 'Any', **_kwargs: 'Any') -> 'None'", - "ukf": "(x_prev: 'np.ndarray', p_prev: 'np.ndarray', a: 'np.ndarray', q: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "ukf_sigmas": "(x: 'np.ndarray', p: 'np.ndarray', kappa: 'float' = 0.0) -> 'np.ndarray'", - "ukf_ut": "(sigmas: 'np.ndarray', wm: 'np.ndarray', wc: 'np.ndarray', noise: 'np.ndarray | None' = None) -> 'tuple[np.ndarray, np.ndarray]'" - }, - "properties": [] - }, - "fixture": { - "exists": true, - "generator": "topic_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/DecodingExample_gold.mat" - }, - "mapping": { - "alias_methods": { - "computeSpikeRateCIs": "compute_spike_rate_cis", - "decodeStatePosterior": "decode_state_posterior", - "decodeWeightedCenter": "decode_weighted_center" - }, - "compat_class": "nstat.compat.matlab.DecodingAlgorithms", - "python_class": "nstat.decoding.DecodingAlgorithms" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [], - "line": null, - "name": "DecodingAlgorithms", - "static": false - }, - "matlab_class": "DecodingAlgorithms", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/DecodingAlgorithms.m", - "methods": [ - { - "access": "public", - "args": [ - "A", - "Q", - "Px0", - "dN", - "lambdaCIFColl", - "binwidth", - "x0", - "Pi0", - "yT", - "PiT", - "estimateTarget", - "Wconv" - ], - "line": 62, - "name": "PPDecodeFilter", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "Q", - "dN", - "mu", - "beta", - "fitType", - "delta", - "gamma", - "windowTimes", - "x0", - "Pi0", - "yT", - "PiT", - "estimateTarget", - "Wconv" - ], - "line": 291, - "name": "PPDecodeFilterLinear", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "Q", - "dN", - "lags", - "mu", - "beta", - "fitType", - "delta", - "gamma", - "windowTimes", - "x0", - "Pi0" - ], - "line": 646, - "name": "PP_fixedIntervalSmoother", - "static": true - }, - { - "access": "public", - "args": [ - "x_u", - "W_u", - "A", - "Q", - "Wconv" - ], - "line": 756, - "name": "PPDecode_predict", - "static": true - }, - { - "access": "public", - "args": [ - "x_p", - "W_p", - "dN", - "lambdaIn", - "binwidth", - "time_index", - "WuConv" - ], - "line": 779, - "name": "PPDecode_update", - "static": true - }, - { - "access": "public", - "args": [ - "x_p", - "W_p", - "dN", - "mu", - "beta", - "fitType", - "gamma", - "HkAll", - "time_index", - "WuConv" - ], - "line": 844, - "name": "PPDecode_updateLinear", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "Q", - "p_ij", - "Mu0", - "dN", - "mu", - "beta", - "fitType", - "binwidth", - "gamma", - "windowTimes", - "x0", - "Pi0", - "yT", - "PiT", - "estimateTarget", - "MinClassificationError" - ], - "line": 953, - "name": "PPHybridFilterLinear", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "Q", - "p_ij", - "Mu0", - "dN", - "lambdaCIFColl", - "binwidth", - "x0", - "Pi0", - "yT", - "PiT", - "estimateTarget", - "MinClassificationError" - ], - "line": 1425, - "name": "PPHybridFilter", - "static": true - }, - { - "access": "public", - "args": [ - "fstate", - "x", - "P", - "hmeas", - "z", - "Q", - "R" - ], - "line": 1854, - "name": "ukf", - "static": true - }, - { - "access": "public", - "args": [ - "f", - "X", - "Wm", - "Wc", - "n", - "R" - ], - "line": 1929, - "name": "ukf_ut", - "static": true - }, - { - "access": "public", - "args": [ - "x", - "P", - "c" - ], - "line": 1954, - "name": "ukf_sigmas", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "C", - "Pv", - "Pw", - "Px0", - "x0", - "y", - "GnConv" - ], - "line": 1969, - "name": "kalman_filter", - "static": true - }, - { - "access": "public", - "args": [ - "x_p", - "Pe_p", - "C", - "Pw", - "y", - "GnConv" - ], - "line": 2019, - "name": "kalman_update", - "static": true - }, - { - "access": "public", - "args": [ - "x_u", - "Pe_u", - "A", - "Pv", - "GnConv" - ], - "line": 2034, - "name": "kalman_predict", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "C", - "Pv", - "Pw", - "Px0", - "x0", - "y", - "lags" - ], - "line": 2047, - "name": "kalman_fixedIntervalSmoother", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "x_p", - "Pe_p", - "x_u", - "Pe_u" - ], - "line": 2085, - "name": "kalman_smootherFromFiltered", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "C", - "Pv", - "Pw", - "Px0", - "x0", - "y" - ], - "line": 2118, - "name": "kalman_smoother", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "Q0", - "x0", - "dN", - "fitType", - "delta", - "gamma0", - "windowTimes", - "numBasis", - "neuronName" - ], - "line": 2157, - "name": "PPSS_EMFB", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "Q0", - "x0", - "dN", - "fitType", - "delta", - "gamma0", - "windowTimes", - "numBasis", - "Hk" - ], - "line": 2303, - "name": "PPSS_EM", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "Q", - "x0", - "dN", - "HkAll", - "fitType", - "delta", - "gamma", - "numBasis" - ], - "line": 2432, - "name": "PPSS_EStep", - "static": true - }, - { - "access": "public", - "args": [ - "dN", - "HkAll", - "fitType", - "x_K", - "W_K", - "gamma", - "delta", - "sumXkTerms", - "windowTimes" - ], - "line": 2599, - "name": "PPSS_MStep", - "static": true - }, - { - "access": "public", - "args": [ - "fitType", - "neuronNumber", - "dN", - "HkAll", - "xK", - "WK", - "Q", - "gamma", - "windowTimes", - "delta", - "informationMatrix", - "logll" - ], - "line": 2727, - "name": "prepareEMResults", - "static": true - }, - { - "access": "public", - "args": [ - "fitType", - "xK", - "Wku", - "delta", - "Mc", - "alphaVal" - ], - "line": 2883, - "name": "ComputeStimulusCIs", - "static": true - }, - { - "access": "public", - "args": [ - "fitType", - "dN", - "HkAll", - "A", - "x0", - "xK", - "WK", - "Wku", - "Q", - "gamma", - "windowTimes", - "SumXkTerms", - "delta", - "Mc" - ], - "line": 2933, - "name": "estimateInfoMat", - "static": true - }, - { - "access": "public", - "args": [ - "xK", - "Wku", - "dN", - "t0", - "tf", - "fitType", - "delta", - "gamma", - "windowTimes", - "Mc", - "alphaVal" - ], - "line": 3108, - "name": "computeSpikeRateCIs", - "static": true - }, - { - "access": "public", - "args": [ - "xK", - "Wku", - "dN", - "time1", - "time2", - "fitType", - "delta", - "gamma", - "windowTimes", - "Mc", - "alphaVal" - ], - "line": 3210, - "name": "computeSpikeRateDiffCIs", - "static": true - }, - { - "access": "public", - "args": [ - "EstimateA", - "AhatDiag", - "QhatDiag", - "QhatIsotropic", - "RhatDiag", - "RhatIsotropic", - "Estimatex0", - "EstimatePx0", - "Px0Isotropic", - "mcIter", - "EnableIkeda" - ], - "line": 3316, - "name": "KF_EMCreateConstraints", - "static": true - }, - { - "access": "public", - "args": [ - "y", - "Ahat0", - "Qhat0", - "Chat0", - "Rhat0", - "alphahat0", - "x0", - "Px0", - "KFEM_Constraints" - ], - "line": 3377, - "name": "KF_EM", - "static": true - }, - { - "access": "public", - "args": [ - "y", - "xKFinal", - "WKFinal", - "Ahat", - "Qhat", - "Chat", - "Rhat", - "alphahat", - "x0hat", - "Px0hat", - "ExpectationSumsFinal", - "KFEM_Constraints" - ], - "line": 3681, - "name": "KF_ComputeParamStandardErrors", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "Q", - "C", - "R", - "y", - "alpha", - "x0", - "Px0" - ], - "line": 4422, - "name": "KF_EStep", - "static": true - }, - { - "access": "public", - "args": [ - "y", - "x_K", - "x0", - "Px0", - "ExpectationSums", - "KFEM_Constraints" - ], - "line": 4520, - "name": "KF_MStep", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "Q", - "C", - "R", - "y", - "alpha", - "dN", - "lags", - "mu", - "beta", - "fitType", - "delta", - "gamma", - "windowTimes", - "x0", - "Px0", - "HkAll" - ], - "line": 4608, - "name": "mPPCO_fixedIntervalSmoother", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "Q", - "C", - "R", - "y", - "alpha", - "dN", - "mu", - "beta", - "fitType", - "delta", - "gamma", - "windowTimes", - "x0", - "Px0", - "HkAll" - ], - "line": 4710, - "name": "mPPCODecodeLinear", - "static": true - }, - { - "access": "public", - "args": [ - "x_u", - "W_u", - "A", - "Q" - ], - "line": 4867, - "name": "mPPCODecode_predict", - "static": true - }, - { - "access": "public", - "args": [ - "x_p", - "W_p", - "C", - "R", - "y", - "alpha", - "dN", - "mu", - "beta", - "fitType", - "gamma", - "HkAll", - "time_index", - "WuConv" - ], - "line": 4876, - "name": "mPPCODecode_update", - "static": true - }, - { - "access": "public", - "args": [ - "EstimateA", - "AhatDiag", - "QhatDiag", - "QhatIsotropic", - "RhatDiag", - "RhatIsotropic", - "Estimatex0", - "EstimatePx0", - "Px0Isotropic", - "mcIter", - "EnableIkeda" - ], - "line": 4966, - "name": "mPPCO_EMCreateConstraints", - "static": true - }, - { - "access": "public", - "args": [ - "y", - "dN", - "xKFinal", - "WKFinal", - "Ahat", - "Qhat", - "Chat", - "Rhat", - "alphahat", - "x0hat", - "Px0hat", - "ExpectationSumsFinal", - "fitType", - "muhat", - "betahat", - "gammahat", - "windowTimes", - "HkAll", - "mPPCOEM_Constraints" - ], - "line": 5027, - "name": "mPPCO_ComputeParamStandardErrors", - "static": true - }, - { - "access": "public", - "args": [ - "y", - "dN", - "Ahat0", - "Qhat0", - "Chat0", - "Rhat0", - "alphahat0", - "mu", - "beta", - "fitType", - "delta", - "gamma", - "windowTimes", - "x0", - "Px0", - "mPPCOEM_Constraints", - "MstepMethod" - ], - "line": 6160, - "name": "mPPCO_EM", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "Q", - "C", - "R", - "y", - "alpha", - "dN", - "mu", - "beta", - "fitType", - "delta", - "gamma", - "HkAll", - "x0", - "Px0" - ], - "line": 6576, - "name": "mPPCO_EStep", - "static": true - }, - { - "access": "public", - "args": [ - "dN", - "y", - "x_K", - "W_K", - "x0", - "Px0", - "ExpectationSums", - "fitType", - "muhat", - "betahat", - "gammahat", - "windowTimes", - "HkAll", - "mPPCOEM_Constraints", - "MstepMethod" - ], - "line": 6794, - "name": "mPPCO_MStep", - "static": true - }, - { - "access": "public", - "args": [ - "EstimateA", - "AhatDiag", - "QhatDiag", - "QhatIsotropic", - "Estimatex0", - "EstimatePx0", - "Px0Isotropic", - "mcIter", - "EnableIkeda" - ], - "line": 7684, - "name": "PP_EMCreateConstraints", - "static": true - }, - { - "access": "public", - "args": [ - "dN", - "xKFinal", - "WKFinal", - "Ahat", - "Qhat", - "x0hat", - "Px0hat", - "ExpectationSumsFinal", - "fitType", - "muhat", - "betahat", - "gammahat", - "windowTimes", - "HkAll", - "PPEM_Constraints" - ], - "line": 7733, - "name": "PP_ComputeParamStandardErrors", - "static": true - }, - { - "access": "public", - "args": [ - "dN", - "Ahat0", - "Qhat0", - "mu", - "beta", - "fitType", - "delta", - "gamma", - "windowTimes", - "x0", - "Px0", - "PPEM_Constraints", - "MstepMethod" - ], - "line": 8614, - "name": "PP_EM", - "static": true - }, - { - "access": "public", - "args": [ - "A", - "Q", - "dN", - "mu", - "beta", - "fitType", - "gamma", - "HkAll", - "x0", - "Px0" - ], - "line": 9286, - "name": "PP_EStep", - "static": true - }, - { - "access": "public", - "args": [ - "dN", - "x_K", - "W_K", - "x0", - "Px0", - "ExpectationSums", - "fitType", - "muhat", - "betahat", - "gammahat", - "windowTimes", - "HkAll", - "PPEM_Constraints", - "MstepMethod" - ], - "line": 9678, - "name": "PP_MStep", - "static": true - }, - { - "access": "public", - "args": [], - "line": 10791, - "name": "getPoolSizeCompat", - "static": true - } - ], - "private_methods": [], - "properties": [], - "public_methods": [ - "ComputeStimulusCIs", - "KF_ComputeParamStandardErrors", - "KF_EM", - "KF_EMCreateConstraints", - "KF_EStep", - "KF_MStep", - "PPDecodeFilter", - "PPDecodeFilterLinear", - "PPDecode_predict", - "PPDecode_update", - "PPDecode_updateLinear", - "PPHybridFilter", - "PPHybridFilterLinear", - "PPSS_EM", - "PPSS_EMFB", - "PPSS_EStep", - "PPSS_MStep", - "PP_ComputeParamStandardErrors", - "PP_EM", - "PP_EMCreateConstraints", - "PP_EStep", - "PP_MStep", - "PP_fixedIntervalSmoother", - "computeSpikeRateCIs", - "computeSpikeRateDiffCIs", - "estimateInfoMat", - "getPoolSizeCompat", - "kalman_filter", - "kalman_fixedIntervalSmoother", - "kalman_predict", - "kalman_smoother", - "kalman_smootherFromFiltered", - "kalman_update", - "mPPCODecodeLinear", - "mPPCODecode_predict", - "mPPCODecode_update", - "mPPCO_ComputeParamStandardErrors", - "mPPCO_EM", - "mPPCO_EMCreateConstraints", - "mPPCO_EStep", - "mPPCO_MStep", - "mPPCO_fixedIntervalSmoother", - "prepareEMResults", - "ukf", - "ukf_sigmas", - "ukf_ut" - ], - "superclass": "" - }, - "matlab_class": "DecodingAlgorithms", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "ComputeStimulusCIs", - "mapped_via_alias": false, - "matlab_method": "ComputeStimulusCIs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "KF_ComputeParamStandardErrors", - "mapped_via_alias": false, - "matlab_method": "KF_ComputeParamStandardErrors", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "KF_EM", - "mapped_via_alias": false, - "matlab_method": "KF_EM", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "KF_EMCreateConstraints", - "mapped_via_alias": false, - "matlab_method": "KF_EMCreateConstraints", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "KF_EStep", - "mapped_via_alias": false, - "matlab_method": "KF_EStep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "KF_MStep", - "mapped_via_alias": false, - "matlab_method": "KF_MStep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "PPDecodeFilter", - "mapped_via_alias": false, - "matlab_method": "PPDecodeFilter", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "PPDecodeFilterLinear", - "mapped_via_alias": false, - "matlab_method": "PPDecodeFilterLinear", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "PPDecode_predict", - "mapped_via_alias": false, - "matlab_method": "PPDecode_predict", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "PPDecode_update", - "mapped_via_alias": false, - "matlab_method": "PPDecode_update", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "PPDecode_updateLinear", - "mapped_via_alias": false, - "matlab_method": "PPDecode_updateLinear", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "PPHybridFilter", - "mapped_via_alias": false, - "matlab_method": "PPHybridFilter", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "PPHybridFilterLinear", - "mapped_via_alias": false, - "matlab_method": "PPHybridFilterLinear", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "PPSS_EM", - "mapped_via_alias": false, - "matlab_method": "PPSS_EM", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "PPSS_EMFB", - "mapped_via_alias": false, - "matlab_method": "PPSS_EMFB", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "PPSS_EStep", - "mapped_via_alias": false, - "matlab_method": "PPSS_EStep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "PPSS_MStep", - "mapped_via_alias": false, - "matlab_method": "PPSS_MStep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "PP_ComputeParamStandardErrors", - "mapped_via_alias": false, - "matlab_method": "PP_ComputeParamStandardErrors", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "PP_EM", - "mapped_via_alias": false, - "matlab_method": "PP_EM", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "PP_EMCreateConstraints", - "mapped_via_alias": false, - "matlab_method": "PP_EMCreateConstraints", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "PP_EStep", - "mapped_via_alias": false, - "matlab_method": "PP_EStep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "PP_MStep", - "mapped_via_alias": false, - "matlab_method": "PP_MStep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "PP_fixedIntervalSmoother", - "mapped_via_alias": false, - "matlab_method": "PP_fixedIntervalSmoother", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": true, - "excluded_method": false, - "mapped_member": "compute_spike_rate_cis", - "mapped_via_alias": true, - "matlab_method": "computeSpikeRateCIs", - "present_in_compat_surface": false, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeSpikeRateDiffCIs", - "mapped_via_alias": false, - "matlab_method": "computeSpikeRateDiffCIs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "estimateInfoMat", - "mapped_via_alias": false, - "matlab_method": "estimateInfoMat", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getPoolSizeCompat", - "mapped_via_alias": false, - "matlab_method": "getPoolSizeCompat", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "kalman_filter", - "mapped_via_alias": false, - "matlab_method": "kalman_filter", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "kalman_fixedIntervalSmoother", - "mapped_via_alias": false, - "matlab_method": "kalman_fixedIntervalSmoother", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "kalman_predict", - "mapped_via_alias": false, - "matlab_method": "kalman_predict", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "kalman_smoother", - "mapped_via_alias": false, - "matlab_method": "kalman_smoother", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "kalman_smootherFromFiltered", - "mapped_via_alias": false, - "matlab_method": "kalman_smootherFromFiltered", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "kalman_update", - "mapped_via_alias": false, - "matlab_method": "kalman_update", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "mPPCODecodeLinear", - "mapped_via_alias": false, - "matlab_method": "mPPCODecodeLinear", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "mPPCODecode_predict", - "mapped_via_alias": false, - "matlab_method": "mPPCODecode_predict", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "mPPCODecode_update", - "mapped_via_alias": false, - "matlab_method": "mPPCODecode_update", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "mPPCO_ComputeParamStandardErrors", - "mapped_via_alias": false, - "matlab_method": "mPPCO_ComputeParamStandardErrors", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "mPPCO_EM", - "mapped_via_alias": false, - "matlab_method": "mPPCO_EM", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "mPPCO_EMCreateConstraints", - "mapped_via_alias": false, - "matlab_method": "mPPCO_EMCreateConstraints", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "mPPCO_EStep", - "mapped_via_alias": false, - "matlab_method": "mPPCO_EStep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "mPPCO_MStep", - "mapped_via_alias": false, - "matlab_method": "mPPCO_MStep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "mPPCO_fixedIntervalSmoother", - "mapped_via_alias": false, - "matlab_method": "mPPCO_fixedIntervalSmoother", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "prepareEMResults", - "mapped_via_alias": false, - "matlab_method": "prepareEMResults", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "ukf", - "mapped_via_alias": false, - "matlab_method": "ukf", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "ukf_sigmas", - "mapped_via_alias": false, - "matlab_method": "ukf_sigmas", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "ukf_ut", - "mapped_via_alias": false, - "matlab_method": "ukf_ut", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, /, *args, **kwargs)", - "fields": [], - "methods": { - "compute_spike_rate_cis": "(spike_matrix: 'np.ndarray', alpha: 'float' = 0.05) -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "compute_spike_rate_diff_cis": "(spike_matrix_a: 'np.ndarray', spike_matrix_b: 'np.ndarray', alpha: 'float' = 0.05) -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "compute_stimulus_cis": "(posterior: 'np.ndarray', state_values: 'np.ndarray', alpha: 'float' = 0.05) -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "decode_state_posterior": "(spike_counts: 'np.ndarray', tuning_rates: 'np.ndarray', transition: 'np.ndarray | None' = None, prior: 'np.ndarray | None' = None) -> 'tuple[np.ndarray, np.ndarray]'", - "decode_weighted_center": "(spike_counts: 'np.ndarray', tuning_curves: 'np.ndarray') -> 'np.ndarray'", - "kalman_filter": "(y: 'np.ndarray', a: 'np.ndarray', h: 'np.ndarray', q: 'np.ndarray', r: 'np.ndarray', x0: 'np.ndarray', p0: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]'", - "kalman_fixed_interval_smoother": "(xf: 'np.ndarray', pf: 'np.ndarray', xp: 'np.ndarray', pp: 'np.ndarray', a: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "kalman_predict": "(x_prev: 'np.ndarray', p_prev: 'np.ndarray', a: 'np.ndarray', q: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'", - "kalman_update": "(x_pred: 'np.ndarray', p_pred: 'np.ndarray', y_t: 'np.ndarray', h: 'np.ndarray', r: 'np.ndarray') -> 'tuple[np.ndarray, np.ndarray]'" - }, - "properties": [] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.Events", - "fixture_path": "tests/parity/fixtures/matlab_gold/EventsExamples_gold.mat", - "key_methods": [ - "subset", - "merge", - "shift", - "to_structure", - "from_structure" - ], - "python_class": "nstat.events.Events" - }, - "compat": { - "constructor_signature": "(self, times: 'np.ndarray', labels: 'list[str]' = ) -> None", - "fields": [ - "labels", - "times" - ], - "methods": { - "Events": "(*args: 'Any', **kwargs: 'Any') -> '_Events'", - "dsxy2figxy": "(x: 'np.ndarray | float', y: 'np.ndarray | float') -> 'np.ndarray'", - "fromStructure": "(payload: 'dict[str, Any]') -> '_Events'", - "getTimes": "(self) -> 'np.ndarray'", - "plot": "(self, *_args: 'Any', **_kwargs: 'Any') -> 'Any'", - "subset": "(self, start_s: 'float', end_s: 'float') -> \"'Events'\"", - "toStructure": "(self) -> 'dict[str, Any]'" - }, - "properties": [] - }, - "fixture": { - "exists": true, - "generator": "topic_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/EventsExamples_gold.mat" - }, - "mapping": { - "alias_methods": { - "getTimes": "times", - "subset": "subset" - }, - "compat_class": "nstat.compat.matlab.Events", - "python_class": "nstat.events.Events" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "eventTimes", - "eventLabels", - "eventColor" - ], - "line": 68, - "name": "Events", - "static": false - }, - "matlab_class": "Events", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/Events.m", - "methods": [ - { - "access": "public", - "args": [ - "eventTimes", - "eventLabels", - "eventColor" - ], - "line": 68, - "name": "Events", - "static": false - }, - { - "access": "public", - "args": [ - "EObj", - "handle", - "colorString" - ], - "line": 83, - "name": "plot", - "static": false - }, - { - "access": "public", - "args": [ - "EObj" - ], - "line": 124, - "name": "toStructure", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 136, - "name": "fromStructure", - "static": true - }, - { - "access": "public", - "args": [ - "varargin" - ], - "line": 155, - "name": "dsxy2figxy", - "static": true - } - ], - "private_methods": [], - "properties": [ - { - "access": "public", - "line": 62, - "name": "eventTimes" - }, - { - "access": "public", - "line": 63, - "name": "eventLabels" - }, - { - "access": "public", - "line": 64, - "name": "eventColor" - } - ], - "public_methods": [ - "Events", - "dsxy2figxy", - "fromStructure", - "plot", - "toStructure" - ], - "superclass": "" - }, - "matlab_class": "Events", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "Events", - "mapped_via_alias": false, - "matlab_method": "Events", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "dsxy2figxy", - "mapped_via_alias": false, - "matlab_method": "dsxy2figxy", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fromStructure", - "mapped_via_alias": false, - "matlab_method": "fromStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plot", - "mapped_via_alias": false, - "matlab_method": "plot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toStructure", - "mapped_via_alias": false, - "matlab_method": "toStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, times: 'np.ndarray', labels: 'list[str]' = ) -> None", - "fields": [ - "labels", - "times" - ], - "methods": { - "subset": "(self, start_s: 'float', end_s: 'float') -> \"'Events'\"" - }, - "properties": [] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.FitResSummary", - "fixture_path": "tests/parity/fixtures/matlab_gold/classes/FitResSummary/basic.mat", - "key_methods": [ - "best_by_aic", - "best_by_bic", - "diff_aic", - "diff_bic", - "to_structure" - ], - "python_class": "nstat.fit.FitSummary" - }, - "compat": { - "constructor_signature": "(self, results: 'list[FitResult]') -> None", - "fields": [ - "results" - ], - "methods": { - "FitResSummary": "(fitResultsCell: 'list[_FitResult] | _FitResult') -> '_FitSummary'", - "bestByAIC": "(self) -> '_FitResult'", - "bestByBIC": "(self) -> '_FitResult'", - "best_by_aic": "(self) -> 'FitResult'", - "best_by_bic": "(self) -> 'FitResult'", - "binCoeffs": "(self, minVal: 'float', maxVal: 'float', binSize: 'float' = 0.1) -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "bin_coeffs": "(self, min_val: 'float', max_val: 'float', bin_size: 'float' = 0.1) -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "boxPlot": "(self, X: 'np.ndarray | None' = None, diffIndex: 'int' = 1, h: 'Any' = None, dataLabels: 'list[str] | None' = None, *_args: 'Any', **_kwargs: 'Any') -> 'dict[str, np.ndarray]'", - "box_plot": "(self, X: 'np.ndarray | None' = None, diff_index: 'int' = 1) -> 'dict[str, np.ndarray]'", - "computeDiffMat": "(self, metric: 'str' = 'aic') -> 'np.ndarray'", - "compute_diff_mat": "(self, metric: 'str' = 'aic') -> 'np.ndarray'", - "fromStructure": "(structure: 'dict[str, Any]') -> '_FitSummary'", - "from_structure": "(payload: 'dict[str, Any]') -> \"'FitSummary'\"", - "getCoeffIndex": "(self, fitNum: 'int' = 1, sortByEpoch: 'bool' = False) -> 'tuple[np.ndarray, np.ndarray, int]'", - "getCoeffs": "(self, fitNum: 'int' = 1) -> 'tuple[np.ndarray, list[str], np.ndarray]'", - "getDiffAIC": "(self) -> 'np.ndarray'", - "getDiffBIC": "(self) -> 'np.ndarray'", - "getDifflogLL": "(self) -> 'np.ndarray'", - "getHistCoeffs": "(self, fitNum: 'int' = 1) -> 'tuple[np.ndarray, list[str], np.ndarray]'", - "getHistIndex": "(self, fitNum: 'int' = 1, sortByEpoch: 'bool' = False) -> 'tuple[np.ndarray, np.ndarray, int]'", - "getSigCoeffs": "(self, fitNum: 'int' = 1) -> 'tuple[np.ndarray, list[str], np.ndarray]'", - "getUniqueLabels": "(self) -> 'list[str]'", - "get_coeff_index": "(self, fit_num: 'int' = 1, sort_by_epoch: 'bool' = False) -> 'tuple[np.ndarray, np.ndarray, int]'", - "get_coeffs": "(self, fit_num: 'int' = 1) -> 'tuple[np.ndarray, list[str], np.ndarray]'", - "get_diff_aic": "(self) -> 'np.ndarray'", - "get_diff_bic": "(self) -> 'np.ndarray'", - "get_diff_log_likelihood": "(self) -> 'np.ndarray'", - "get_unique_labels": "(self) -> 'list[str]'", - "mapCovLabelsToUniqueLabels": "(self) -> 'list[str]'", - "plot2dCoeffSummary": "(self, fitNum: 'int' = 1) -> 'Any'", - "plot3dCoeffSummary": "(self, fitNum: 'int' = 1) -> 'Any'", - "plotAIC": "(self) -> 'Any'", - "plotAllCoeffs": "(self, fitNum: 'int' = 1) -> 'Any'", - "plotBIC": "(self) -> 'Any'", - "plotCoeffsWithoutHistory": "(self, fitNum: 'int' = 1) -> 'Any'", - "plotHistCoeffs": "(self, fitNum: 'int' = 1) -> 'Any'", - "plotIC": "(self, metric: 'str' = 'aic') -> 'Any'", - "plotKSSummary": "(self) -> 'Any'", - "plotResidualSummary": "(self) -> 'Any'", - "plotSummary": "(self, fitNum: 'int' = 1) -> 'Any'", - "plotlogLL": "(self) -> 'Any'", - "setCoeffRange": "(self, minVal: 'float', maxVal: 'float') -> '_FitSummary'", - "toStructure": "(self) -> 'dict[str, Any]'", - "to_structure": "(self) -> 'dict[str, Any]'", - "xticklabel_rotate": "(XTick: 'np.ndarray', rot: 'float', *args: 'Any', **kwargs: 'Any') -> 'Any'" - }, - "properties": [] - }, - "fixture": { - "exists": true, - "generator": "class_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/classes/FitResSummary/basic.mat" - }, - "mapping": { - "alias_methods": { - "bestByAIC": "best_by_aic", - "bestByBIC": "best_by_bic" - }, - "compat_class": "nstat.compat.matlab.FitResSummary", - "python_class": "nstat.fit.FitSummary" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "fitResultsCell" - ], - "line": 75, - "name": "FitResSummary", - "static": false - }, - "matlab_class": "FitResSummary", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/FitResSummary.m", - "methods": [ - { - "access": "public", - "args": [ - "fitResultsCell" - ], - "line": 75, - "name": "FitResSummary", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj" - ], - "line": 161, - "name": "mapCovLabelsToUniqueLabels", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "diffIndex", - "makePlot", - "h" - ], - "line": 188, - "name": "getDiffAIC", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "diffIndex", - "makePlot", - "h" - ], - "line": 213, - "name": "getDiffBIC", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "diffIndex", - "makePlot", - "h" - ], - "line": 240, - "name": "getDifflogLL", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "minVal", - "maxVal", - "binSize" - ], - "line": 267, - "name": "binCoeffs", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "minVal", - "maxVal" - ], - "line": 326, - "name": "setCoeffRange", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "fitNum" - ], - "line": 332, - "name": "getSigCoeffs", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "h" - ], - "line": 349, - "name": "plotIC", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "h", - "fitNum", - "plotProps", - "plotSignificance", - "subIndex" - ], - "line": 365, - "name": "plotAllCoeffs", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "h" - ], - "line": 427, - "name": "plot3dCoeffSummary", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "h" - ], - "line": 446, - "name": "plot2dCoeffSummary", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "neurons" - ], - "line": 473, - "name": "plotKSSummary", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj" - ], - "line": 524, - "name": "plotAIC", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj" - ], - "line": 549, - "name": "plotBIC", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj" - ], - "line": 573, - "name": "plotlogLL", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj" - ], - "line": 597, - "name": "plotResidualSummary", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj" - ], - "line": 626, - "name": "plotSummary", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "X", - "diffIndex", - "h", - "dataLabels", - "varargin" - ], - "line": 656, - "name": "boxPlot", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj" - ], - "line": 705, - "name": "toStructure", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "fitNum", - "sortByEpoch" - ], - "line": 721, - "name": "getCoeffIndex", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "fitNum", - "sortByEpoch", - "plotSignificance" - ], - "line": 798, - "name": "plotCoeffsWithoutHistory", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "fitNum", - "sortByEpoch" - ], - "line": 820, - "name": "getHistIndex", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "fitNum" - ], - "line": 887, - "name": "getCoeffs", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "fitNum" - ], - "line": 1014, - "name": "getHistCoeffs", - "static": false - }, - { - "access": "public", - "args": [ - "frsObj", - "fitNum", - "sortByEpoch", - "plotSignificance" - ], - "line": 1094, - "name": "plotHistCoeffs", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 1117, - "name": "fromStructure", - "static": true - }, - { - "access": "public", - "args": [ - "MAT", - "diffIndex" - ], - "line": 1127, - "name": "computeDiffMat", - "static": true - }, - { - "access": "public", - "args": [ - "covLabels" - ], - "line": 1134, - "name": "getUniqueLabels", - "static": true - }, - { - "access": "public", - "args": [ - "XTick", - "rot", - "varargin" - ], - "line": 1143, - "name": "xticklabel_rotate", - "static": true - } - ], - "private_methods": [], - "properties": [ - { - "access": "public", - "line": 48, - "name": "fitResCell" - }, - { - "access": "public", - "line": 49, - "name": "fitNames" - }, - { - "access": "public", - "line": 50, - "name": "numResults" - }, - { - "access": "public", - "line": 51, - "name": "maxNumIndex" - }, - { - "access": "public", - "line": 52, - "name": "dev" - }, - { - "access": "public", - "line": 53, - "name": "AIC" - }, - { - "access": "public", - "line": 54, - "name": "BIC" - }, - { - "access": "public", - "line": 55, - "name": "logLL" - }, - { - "access": "public", - "line": 56, - "name": "bAct" - }, - { - "access": "public", - "line": 57, - "name": "seAct" - }, - { - "access": "public", - "line": 58, - "name": "sigIndex" - }, - { - "access": "public", - "line": 59, - "name": "covLabels" - }, - { - "access": "public", - "line": 60, - "name": "uniqueCovLabels" - }, - { - "access": "public", - "line": 61, - "name": "indicesToUniqueLabels" - }, - { - "access": "public", - "line": 62, - "name": "flatMask" - }, - { - "access": "public", - "line": 63, - "name": "neuronNumbers" - }, - { - "access": "public", - "line": 64, - "name": "numNeurons" - }, - { - "access": "public", - "line": 65, - "name": "numCoeffs" - }, - { - "access": "public", - "line": 66, - "name": "numResultsCoeffPresent" - }, - { - "access": "public", - "line": 67, - "name": "KSStats" - }, - { - "access": "public", - "line": 68, - "name": "KSPvalues" - }, - { - "access": "public", - "line": 69, - "name": "withinConfInt" - }, - { - "access": "public", - "line": 70, - "name": "plotParams" - }, - { - "access": "public", - "line": 71, - "name": "coeffRange" - } - ], - "public_methods": [ - "FitResSummary", - "binCoeffs", - "boxPlot", - "computeDiffMat", - "fromStructure", - "getCoeffIndex", - "getCoeffs", - "getDiffAIC", - "getDiffBIC", - "getDifflogLL", - "getHistCoeffs", - "getHistIndex", - "getSigCoeffs", - "getUniqueLabels", - "mapCovLabelsToUniqueLabels", - "plot2dCoeffSummary", - "plot3dCoeffSummary", - "plotAIC", - "plotAllCoeffs", - "plotBIC", - "plotCoeffsWithoutHistory", - "plotHistCoeffs", - "plotIC", - "plotKSSummary", - "plotResidualSummary", - "plotSummary", - "plotlogLL", - "setCoeffRange", - "toStructure", - "xticklabel_rotate" - ], - "superclass": "handle" - }, - "matlab_class": "FitResSummary", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "FitResSummary", - "mapped_via_alias": false, - "matlab_method": "FitResSummary", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "binCoeffs", - "mapped_via_alias": false, - "matlab_method": "binCoeffs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "boxPlot", - "mapped_via_alias": false, - "matlab_method": "boxPlot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeDiffMat", - "mapped_via_alias": false, - "matlab_method": "computeDiffMat", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fromStructure", - "mapped_via_alias": false, - "matlab_method": "fromStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getCoeffIndex", - "mapped_via_alias": false, - "matlab_method": "getCoeffIndex", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getCoeffs", - "mapped_via_alias": false, - "matlab_method": "getCoeffs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getDiffAIC", - "mapped_via_alias": false, - "matlab_method": "getDiffAIC", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getDiffBIC", - "mapped_via_alias": false, - "matlab_method": "getDiffBIC", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getDifflogLL", - "mapped_via_alias": false, - "matlab_method": "getDifflogLL", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getHistCoeffs", - "mapped_via_alias": false, - "matlab_method": "getHistCoeffs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getHistIndex", - "mapped_via_alias": false, - "matlab_method": "getHistIndex", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getSigCoeffs", - "mapped_via_alias": false, - "matlab_method": "getSigCoeffs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getUniqueLabels", - "mapped_via_alias": false, - "matlab_method": "getUniqueLabels", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "mapCovLabelsToUniqueLabels", - "mapped_via_alias": false, - "matlab_method": "mapCovLabelsToUniqueLabels", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plot2dCoeffSummary", - "mapped_via_alias": false, - "matlab_method": "plot2dCoeffSummary", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plot3dCoeffSummary", - "mapped_via_alias": false, - "matlab_method": "plot3dCoeffSummary", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotAIC", - "mapped_via_alias": false, - "matlab_method": "plotAIC", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotAllCoeffs", - "mapped_via_alias": false, - "matlab_method": "plotAllCoeffs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotBIC", - "mapped_via_alias": false, - "matlab_method": "plotBIC", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotCoeffsWithoutHistory", - "mapped_via_alias": false, - "matlab_method": "plotCoeffsWithoutHistory", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotHistCoeffs", - "mapped_via_alias": false, - "matlab_method": "plotHistCoeffs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotIC", - "mapped_via_alias": false, - "matlab_method": "plotIC", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotKSSummary", - "mapped_via_alias": false, - "matlab_method": "plotKSSummary", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotResidualSummary", - "mapped_via_alias": false, - "matlab_method": "plotResidualSummary", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotSummary", - "mapped_via_alias": false, - "matlab_method": "plotSummary", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotlogLL", - "mapped_via_alias": false, - "matlab_method": "plotlogLL", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setCoeffRange", - "mapped_via_alias": false, - "matlab_method": "setCoeffRange", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toStructure", - "mapped_via_alias": false, - "matlab_method": "toStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "xticklabel_rotate", - "mapped_via_alias": false, - "matlab_method": "xticklabel_rotate", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, results: 'list[FitResult]') -> None", - "fields": [ - "results" - ], - "methods": { - "best_by_aic": "(self) -> 'FitResult'", - "best_by_bic": "(self) -> 'FitResult'", - "bin_coeffs": "(self, min_val: 'float', max_val: 'float', bin_size: 'float' = 0.1) -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "box_plot": "(self, X: 'np.ndarray | None' = None, diff_index: 'int' = 1) -> 'dict[str, np.ndarray]'", - "compute_diff_mat": "(self, metric: 'str' = 'aic') -> 'np.ndarray'", - "from_structure": "(payload: 'dict[str, Any]') -> \"'FitSummary'\"", - "get_coeff_index": "(self, fit_num: 'int' = 1, sort_by_epoch: 'bool' = False) -> 'tuple[np.ndarray, np.ndarray, int]'", - "get_coeffs": "(self, fit_num: 'int' = 1) -> 'tuple[np.ndarray, list[str], np.ndarray]'", - "get_diff_aic": "(self) -> 'np.ndarray'", - "get_diff_bic": "(self) -> 'np.ndarray'", - "get_diff_log_likelihood": "(self) -> 'np.ndarray'", - "get_unique_labels": "(self) -> 'list[str]'", - "to_structure": "(self) -> 'dict[str, Any]'" - }, - "properties": [] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.FitResult", - "fixture_path": "tests/parity/fixtures/matlab_gold/classes/FitResult/basic.mat", - "key_methods": [ - "predict", - "aic", - "bic", - "as_cif_model", - "to_structure" - ], - "python_class": "nstat.fit.FitResult" - }, - "compat": { - "constructor_signature": "(self, coefficients: 'np.ndarray', intercept: 'float', fit_type: 'str', log_likelihood: 'float', n_samples: 'int', n_parameters: 'int', parameter_labels: 'list[str]' = , ks_stats: 'dict[str, np.ndarray | float]' = , fit_residual: 'np.ndarray | None' = None, inv_gaus_stats: 'dict[str, np.ndarray | float]' = , neuron_name: 'str' = '', plot_params: 'dict[str, Any]' = , xval_data: 'list[np.ndarray]' = , xval_time: 'list[np.ndarray]' = ) -> None", - "fields": [ - "coefficients", - "fit_residual", - "fit_type", - "intercept", - "inv_gaus_stats", - "ks_stats", - "log_likelihood", - "n_parameters", - "n_samples", - "neuron_name", - "parameter_labels", - "plot_params", - "xval_data", - "xval_time" - ], - "methods": { - "CellArrayToStructure": "(results: 'list[_FitResult]') -> 'list[dict[str, Any]]'", - "FitResult": "(structure: 'dict[str, Any]') -> '_FitResult'", - "KSPlot": "(self, fitNum: 'int' = 1) -> 'Any'", - "addParamsToFit": "(self, payload: 'dict[str, Any]') -> '_FitResult'", - "add_params_to_fit": "(self, payload: 'dict[str, Any]') -> 'None'", - "aic": "(self) -> 'float'", - "asCIFModel": "(self) -> '_CIFModel'", - "as_cif_model": "(self) -> 'CIFModel'", - "bic": "(self) -> 'float'", - "cell_array_to_structure": "(results: \"list['FitResult']\") -> 'list[dict[str, Any]]'", - "computePlotParams": "(self) -> 'dict[str, Any]'", - "computeValLambda": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "compute_plot_params": "(self) -> 'dict[str, Any]'", - "compute_val_lambda": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "evalLambda": "(self, X_or_modelIndex: 'Any', maybe_X: 'Any' = None) -> 'np.ndarray'", - "fromStructure": "(structure: 'dict[str, Any]') -> '_FitResult'", - "from_structure": "(payload: 'dict[str, Any]') -> \"'FitResult'\"", - "getAIC": "(self) -> 'float'", - "getBIC": "(self) -> 'float'", - "getCoeffIndex": "(self, label: 'str') -> 'int'", - "getCoeffs": "(self) -> 'np.ndarray'", - "getHistCoeffs": "(self, fitNum: 'int' = 1) -> 'tuple[np.ndarray, list[str], np.ndarray]'", - "getHistIndex": "(self, fitNum: 'int' = 1, sortByEpoch: 'bool' = False) -> 'tuple[np.ndarray, np.ndarray, int]'", - "getParam": "(self, key: 'str') -> 'float | np.ndarray | str | int'", - "getPlotParams": "(self) -> 'dict[str, Any]'", - "getSubsetFitResult": "(self, subfits: 'int | list[int] | np.ndarray') -> '_FitResult'", - "getUniqueLabels": "(self) -> 'list[str]'", - "get_coeff_index": "(self, label: 'str') -> 'int'", - "get_coeffs": "(self) -> 'np.ndarray'", - "get_param": "(self, key: 'str') -> 'float | np.ndarray | str | int'", - "get_plot_params": "(self) -> 'dict[str, Any]'", - "get_unique_labels": "(self) -> 'list[str]'", - "isValDataPresent": "(self) -> 'bool'", - "mapCovLabelsToUniqueLabels": "(self) -> 'list[str]'", - "map_cov_labels_to_unique_labels": "(self) -> 'list[str]'", - "mergeResults": "(self, newFitObj: 'Any') -> '_FitSummary'", - "plotCoeffs": "(self, handle: 'Any' = None, fitNum: 'int' = 1, plotProps: 'dict[str, Any] | None' = None, plotSignificance: 'bool' = True, subIndex: 'Any' = None) -> 'Any'", - "plotCoeffsWithoutHistory": "(self, fitNum: 'int' = 1, sortByEpoch: 'bool' = False, plotSignificance: 'bool' = True) -> 'Any'", - "plotHistCoeffs": "(self, fitNum: 'int' = 1, sortByEpoch: 'bool' = False, plotSignificance: 'bool' = True) -> 'Any'", - "plotInvGausTrans": "(self) -> 'Any'", - "plotResidual": "(self) -> 'Any'", - "plotResults": "(self) -> 'Any'", - "plotSeqCorr": "(self) -> 'Any'", - "plotValidation": "(self) -> 'Any'", - "predict": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "setFitResidual": "(self, fitResidual: 'np.ndarray') -> '_FitResult'", - "setInvGausStats": "(self, stats: 'dict[str, Any]') -> '_FitResult'", - "setKSStats": "(self, ksStat: 'np.ndarray | float | dict[str, Any]', pValue: 'np.ndarray | float | None' = None, withinConfInt: 'np.ndarray | float | None' = None) -> '_FitResult'", - "setNeuronName": "(self, neuronName: 'str') -> '_FitResult'", - "set_fit_residual": "(self, residual: 'np.ndarray') -> 'None'", - "set_inv_gaus_stats": "(self, payload: 'dict[str, Any]') -> 'None'", - "set_ks_stats": "(self, ks_stat: 'np.ndarray | float | dict[str, Any]', p_value: 'np.ndarray | float | None' = None, within_conf_int: 'np.ndarray | float | None' = None) -> 'None'", - "set_neuron_name": "(self, name: 'str') -> 'None'", - "toStructure": "(self) -> 'dict[str, Any]'", - "to_structure": "(self) -> 'dict[str, Any]'", - "xticklabel_rotate": "(XTick: 'np.ndarray', rot: 'float', *args: 'Any', **kwargs: 'Any') -> 'Any'" - }, - "properties": [] - }, - "fixture": { - "exists": true, - "generator": "class_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/classes/FitResult/basic.mat" - }, - "mapping": { - "alias_methods": { - "asCIFModel": "as_cif_model", - "evalLambda": "predict", - "getAIC": "aic", - "getBIC": "bic" - }, - "compat_class": "nstat.compat.matlab.FitResult", - "python_class": "nstat.fit.FitResult" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "spikeObj", - "covLabels", - "numHist", - "histObjects", - "ensHistObj", - "lambda", - "b", - "dev", - "stats", - "AIC", - "BIC", - "logLL", - "configColl", - "XvalData", - "XvalTime", - "distribution" - ], - "line": 95, - "name": "FitResult", - "static": false - }, - "matlab_class": "FitResult", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/FitResult.m", - "methods": [ - { - "access": "public", - "args": [ - "spikeObj", - "covLabels", - "numHist", - "histObjects", - "ensHistObj", - "lambda", - "b", - "dev", - "stats", - "AIC", - "BIC", - "logLL", - "configColl", - "XvalData", - "XvalTime", - "distribution" - ], - "line": 95, - "name": "FitResult", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "name" - ], - "line": 190, - "name": "setNeuronName", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "newFitObj" - ], - "line": 193, - "name": "mergeResults", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "subfits" - ], - "line": 287, - "name": "getSubsetFitResult", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "neuronNum", - "lambda", - "b", - "dev", - "stats", - "AIC", - "BIC", - "logLL", - "configColl" - ], - "line": 324, - "name": "addParamsToFit", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj" - ], - "line": 400, - "name": "computeValLambda", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj" - ], - "line": 416, - "name": "mapCovLabelsToUniqueLabels", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj" - ], - "line": 441, - "name": "getPlotParams", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj" - ], - "line": 448, - "name": "plotValidation", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj" - ], - "line": 460, - "name": "isValDataPresent", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "lambdaIndex", - "newData" - ], - "line": 480, - "name": "evalLambda", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "fitNum" - ], - "line": 592, - "name": "computePlotParams", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "fitNum", - "sortByEpoch" - ], - "line": 639, - "name": "getCoeffIndex", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "fitNum", - "sortByEpoch", - "plotSignificance" - ], - "line": 727, - "name": "plotCoeffsWithoutHistory", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "fitNum", - "sortByEpoch" - ], - "line": 749, - "name": "getHistIndex", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "fitNum" - ], - "line": 817, - "name": "getCoeffs", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "fitNum" - ], - "line": 896, - "name": "getHistCoeffs", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "fitNum", - "sortByEpoch", - "plotSignificance" - ], - "line": 1015, - "name": "plotHistCoeffs", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "handle", - "fitNum", - "plotProps", - "plotSignificance", - "subIndex" - ], - "line": 1033, - "name": "plotCoeffs", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj" - ], - "line": 1140, - "name": "plotResults", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "fitNum" - ], - "line": 1159, - "name": "KSPlot", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj" - ], - "line": 1203, - "name": "toStructure", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj" - ], - "line": 1252, - "name": "plotSeqCorr", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj" - ], - "line": 1303, - "name": "plotInvGausTrans", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj" - ], - "line": 1357, - "name": "plotResidual", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "Z", - "U", - "xAxis", - "KSSorted", - "ks_stat" - ], - "line": 1379, - "name": "setKSStats", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "X", - "rhoSig", - "confBoundSig" - ], - "line": 1410, - "name": "setInvGausStats", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "M" - ], - "line": 1419, - "name": "setFitResidual", - "static": false - }, - { - "access": "public", - "args": [ - "fitObj", - "paramNames", - "fitNum" - ], - "line": 1425, - "name": "getParam", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 1464, - "name": "fromStructure", - "static": true - }, - { - "access": "public", - "args": [ - "fitResObjCell" - ], - "line": 1530, - "name": "CellArrayToStructure", - "static": true - }, - { - "access": "public", - "args": [ - "XTick", - "rot", - "varargin" - ], - "line": 1555, - "name": "xticklabel_rotate", - "static": true - }, - { - "access": "public", - "args": [ - "covLabels" - ], - "line": 1778, - "name": "getUniqueLabels", - "static": true - } - ], - "private_methods": [], - "properties": [ - { - "access": "public", - "line": 49, - "name": "numResults" - }, - { - "access": "public", - "line": 50, - "name": "lambda" - }, - { - "access": "public", - "line": 51, - "name": "numCoeffs" - }, - { - "access": "public", - "line": 52, - "name": "fitType" - }, - { - "access": "public", - "line": 54, - "name": "b" - }, - { - "access": "public", - "line": 56, - "name": "dev" - }, - { - "access": "public", - "line": 57, - "name": "AIC" - }, - { - "access": "public", - "line": 58, - "name": "BIC" - }, - { - "access": "public", - "line": 59, - "name": "logLL" - }, - { - "access": "public", - "line": 60, - "name": "stats" - }, - { - "access": "public", - "line": 61, - "name": "configs" - }, - { - "access": "public", - "line": 62, - "name": "configNames" - }, - { - "access": "public", - "line": 63, - "name": "neuronNumber" - }, - { - "access": "public", - "line": 64, - "name": "neuralSpikeTrain" - }, - { - "access": "public", - "line": 65, - "name": "covLabels" - }, - { - "access": "public", - "line": 66, - "name": "uniqueCovLabels" - }, - { - "access": "public", - "line": 67, - "name": "indicesToUniqueLabels" - }, - { - "access": "public", - "line": 68, - "name": "numHist" - }, - { - "access": "public", - "line": 69, - "name": "histObjects" - }, - { - "access": "public", - "line": 70, - "name": "ensHistObjects" - }, - { - "access": "public", - "line": 71, - "name": "flatMask" - }, - { - "access": "public", - "line": 72, - "name": "Z" - }, - { - "access": "public", - "line": 73, - "name": "U" - }, - { - "access": "public", - "line": 74, - "name": "X" - }, - { - "access": "public", - "line": 75, - "name": "Residual" - }, - { - "access": "public", - "line": 79, - "name": "invGausStats" - }, - { - "access": "public", - "line": 80, - "name": "KSStats" - }, - { - "access": "public", - "line": 81, - "name": "plotParams" - }, - { - "access": "public", - "line": 82, - "name": "XvalData" - }, - { - "access": "public", - "line": 83, - "name": "XvalTime" - }, - { - "access": "public", - "line": 84, - "name": "validation" - }, - { - "access": "public", - "line": 85, - "name": "minTime" - }, - { - "access": "public", - "line": 86, - "name": "maxTime" - }, - { - "access": "public", - "line": 89, - "name": "colors" - } - ], - "public_methods": [ - "CellArrayToStructure", - "FitResult", - "KSPlot", - "addParamsToFit", - "computePlotParams", - "computeValLambda", - "evalLambda", - "fromStructure", - "getCoeffIndex", - "getCoeffs", - "getHistCoeffs", - "getHistIndex", - "getParam", - "getPlotParams", - "getSubsetFitResult", - "getUniqueLabels", - "isValDataPresent", - "mapCovLabelsToUniqueLabels", - "mergeResults", - "plotCoeffs", - "plotCoeffsWithoutHistory", - "plotHistCoeffs", - "plotInvGausTrans", - "plotResidual", - "plotResults", - "plotSeqCorr", - "plotValidation", - "setFitResidual", - "setInvGausStats", - "setKSStats", - "setNeuronName", - "toStructure", - "xticklabel_rotate" - ], - "superclass": "handle" - }, - "matlab_class": "FitResult", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "CellArrayToStructure", - "mapped_via_alias": false, - "matlab_method": "CellArrayToStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "FitResult", - "mapped_via_alias": false, - "matlab_method": "FitResult", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "KSPlot", - "mapped_via_alias": false, - "matlab_method": "KSPlot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "addParamsToFit", - "mapped_via_alias": false, - "matlab_method": "addParamsToFit", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computePlotParams", - "mapped_via_alias": false, - "matlab_method": "computePlotParams", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeValLambda", - "mapped_via_alias": false, - "matlab_method": "computeValLambda", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": true, - "excluded_method": false, - "mapped_member": "predict", - "mapped_via_alias": true, - "matlab_method": "evalLambda", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fromStructure", - "mapped_via_alias": false, - "matlab_method": "fromStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getCoeffIndex", - "mapped_via_alias": false, - "matlab_method": "getCoeffIndex", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getCoeffs", - "mapped_via_alias": false, - "matlab_method": "getCoeffs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getHistCoeffs", - "mapped_via_alias": false, - "matlab_method": "getHistCoeffs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getHistIndex", - "mapped_via_alias": false, - "matlab_method": "getHistIndex", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getParam", - "mapped_via_alias": false, - "matlab_method": "getParam", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getPlotParams", - "mapped_via_alias": false, - "matlab_method": "getPlotParams", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getSubsetFitResult", - "mapped_via_alias": false, - "matlab_method": "getSubsetFitResult", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getUniqueLabels", - "mapped_via_alias": false, - "matlab_method": "getUniqueLabels", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isValDataPresent", - "mapped_via_alias": false, - "matlab_method": "isValDataPresent", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "mapCovLabelsToUniqueLabels", - "mapped_via_alias": false, - "matlab_method": "mapCovLabelsToUniqueLabels", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "mergeResults", - "mapped_via_alias": false, - "matlab_method": "mergeResults", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotCoeffs", - "mapped_via_alias": false, - "matlab_method": "plotCoeffs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotCoeffsWithoutHistory", - "mapped_via_alias": false, - "matlab_method": "plotCoeffsWithoutHistory", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotHistCoeffs", - "mapped_via_alias": false, - "matlab_method": "plotHistCoeffs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotInvGausTrans", - "mapped_via_alias": false, - "matlab_method": "plotInvGausTrans", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotResidual", - "mapped_via_alias": false, - "matlab_method": "plotResidual", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotResults", - "mapped_via_alias": false, - "matlab_method": "plotResults", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotSeqCorr", - "mapped_via_alias": false, - "matlab_method": "plotSeqCorr", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotValidation", - "mapped_via_alias": false, - "matlab_method": "plotValidation", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setFitResidual", - "mapped_via_alias": false, - "matlab_method": "setFitResidual", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setInvGausStats", - "mapped_via_alias": false, - "matlab_method": "setInvGausStats", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setKSStats", - "mapped_via_alias": false, - "matlab_method": "setKSStats", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setNeuronName", - "mapped_via_alias": false, - "matlab_method": "setNeuronName", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toStructure", - "mapped_via_alias": false, - "matlab_method": "toStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "xticklabel_rotate", - "mapped_via_alias": false, - "matlab_method": "xticklabel_rotate", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, coefficients: 'np.ndarray', intercept: 'float', fit_type: 'str', log_likelihood: 'float', n_samples: 'int', n_parameters: 'int', parameter_labels: 'list[str]' = , ks_stats: 'dict[str, np.ndarray | float]' = , fit_residual: 'np.ndarray | None' = None, inv_gaus_stats: 'dict[str, np.ndarray | float]' = , neuron_name: 'str' = '', plot_params: 'dict[str, Any]' = , xval_data: 'list[np.ndarray]' = , xval_time: 'list[np.ndarray]' = ) -> None", - "fields": [ - "coefficients", - "fit_residual", - "fit_type", - "intercept", - "inv_gaus_stats", - "ks_stats", - "log_likelihood", - "n_parameters", - "n_samples", - "neuron_name", - "parameter_labels", - "plot_params", - "xval_data", - "xval_time" - ], - "methods": { - "add_params_to_fit": "(self, payload: 'dict[str, Any]') -> 'None'", - "aic": "(self) -> 'float'", - "as_cif_model": "(self) -> 'CIFModel'", - "bic": "(self) -> 'float'", - "cell_array_to_structure": "(results: \"list['FitResult']\") -> 'list[dict[str, Any]]'", - "compute_plot_params": "(self) -> 'dict[str, Any]'", - "compute_val_lambda": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "from_structure": "(payload: 'dict[str, Any]') -> \"'FitResult'\"", - "get_coeff_index": "(self, label: 'str') -> 'int'", - "get_coeffs": "(self) -> 'np.ndarray'", - "get_param": "(self, key: 'str') -> 'float | np.ndarray | str | int'", - "get_plot_params": "(self) -> 'dict[str, Any]'", - "get_unique_labels": "(self) -> 'list[str]'", - "map_cov_labels_to_unique_labels": "(self) -> 'list[str]'", - "predict": "(self, X: 'np.ndarray') -> 'np.ndarray'", - "set_fit_residual": "(self, residual: 'np.ndarray') -> 'None'", - "set_inv_gaus_stats": "(self, payload: 'dict[str, Any]') -> 'None'", - "set_ks_stats": "(self, ks_stat: 'np.ndarray | float | dict[str, Any]', p_value: 'np.ndarray | float | None' = None, within_conf_int: 'np.ndarray | float | None' = None) -> 'None'", - "set_neuron_name": "(self, name: 'str') -> 'None'", - "to_structure": "(self) -> 'dict[str, Any]'" - }, - "properties": [] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.History", - "fixture_path": "tests/parity/fixtures/matlab_gold/HistoryExamples_gold.mat", - "key_methods": [ - "design_matrix", - "to_filter", - "set_window", - "to_structure", - "from_structure" - ], - "python_class": "nstat.history.HistoryBasis" - }, - "compat": { - "constructor_signature": "(self, bin_edges_s: 'np.ndarray') -> None", - "fields": [ - "bin_edges_s" - ], - "methods": { - "History": "(*args: 'Any', **kwargs: 'Any') -> '_HistoryBasis'", - "computeHistory": "(self, spikeTimes_s: 'np.ndarray', timeGrid_s: 'np.ndarray') -> 'np.ndarray'", - "computeNSTHistoryWindow": "(self, spikeTrain: 'Any', timeGrid_s: 'np.ndarray') -> 'np.ndarray'", - "design_matrix": "(self, spike_times_s: 'np.ndarray', time_grid_s: 'np.ndarray') -> 'np.ndarray'", - "fromStructure": "(payload: 'dict[str, Any]') -> '_HistoryBasis'", - "getDesignMatrix": "(self, spike_times_s: 'np.ndarray', time_grid_s: 'np.ndarray') -> 'np.ndarray'", - "getNumBins": "(self) -> 'int'", - "plot": "(self, *_args: 'Any', **_kwargs: 'Any') -> 'Any'", - "setWindow": "(self, *args: 'Any') -> '_HistoryBasis'", - "toFilter": "(self) -> 'np.ndarray'", - "toStructure": "(self) -> 'dict[str, Any]'" - }, - "properties": [ - "n_bins" - ] - }, - "fixture": { - "exists": true, - "generator": "topic_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/HistoryExamples_gold.mat" - }, - "mapping": { - "alias_methods": { - "getDesignMatrix": "design_matrix", - "getNumBins": "n_bins" - }, - "compat_class": "nstat.compat.matlab.History", - "python_class": "nstat.history.HistoryBasis" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "windowTimes", - "minTime", - "maxTime" - ], - "line": 59, - "name": "History", - "static": false - }, - "matlab_class": "History", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/History.m", - "methods": [ - { - "access": "public", - "args": [ - "windowTimes", - "minTime", - "maxTime" - ], - "line": 59, - "name": "History", - "static": false - }, - { - "access": "public", - "args": [ - "HistObj", - "nst", - "historyNum", - "tn" - ], - "line": 76, - "name": "computeHistory", - "static": false - }, - { - "access": "public", - "args": [ - "HistObj", - "windowTimes" - ], - "line": 137, - "name": "setWindow", - "static": false - }, - { - "access": "public", - "args": [ - "HistObj" - ], - "line": 144, - "name": "plot", - "static": false - }, - { - "access": "public", - "args": [ - "HistObj", - "delta" - ], - "line": 164, - "name": "toFilter", - "static": false - }, - { - "access": "public", - "args": [ - "HistObj" - ], - "line": 193, - "name": "toStructure", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 203, - "name": "fromStructure", - "static": true - }, - { - "access": "private", - "args": [ - "HistObj", - "nst", - "historyNum", - "tn" - ], - "line": 216, - "name": "computeNSTHistoryWindow", - "static": false - } - ], - "private_methods": [ - "computeNSTHistoryWindow" - ], - "properties": [ - { - "access": "public", - "line": 53, - "name": "windowTimes" - }, - { - "access": "public", - "line": 54, - "name": "minTime" - }, - { - "access": "public", - "line": 55, - "name": "maxTime" - } - ], - "public_methods": [ - "History", - "computeHistory", - "fromStructure", - "plot", - "setWindow", - "toFilter", - "toStructure" - ], - "superclass": "handle" - }, - "matlab_class": "History", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "History", - "mapped_via_alias": false, - "matlab_method": "History", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeHistory", - "mapped_via_alias": false, - "matlab_method": "computeHistory", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fromStructure", - "mapped_via_alias": false, - "matlab_method": "fromStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plot", - "mapped_via_alias": false, - "matlab_method": "plot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setWindow", - "mapped_via_alias": false, - "matlab_method": "setWindow", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toFilter", - "mapped_via_alias": false, - "matlab_method": "toFilter", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toStructure", - "mapped_via_alias": false, - "matlab_method": "toStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, bin_edges_s: 'np.ndarray') -> None", - "fields": [ - "bin_edges_s" - ], - "methods": { - "design_matrix": "(self, spike_times_s: 'np.ndarray', time_grid_s: 'np.ndarray') -> 'np.ndarray'" - }, - "properties": [ - "n_bins" - ] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.SignalObj", - "fixture_path": "tests/parity/fixtures/matlab_gold/SignalObjExamples_gold.mat", - "key_methods": [ - "copy", - "resample", - "periodogram", - "get_sub_signal", - "merge" - ], - "python_class": "nstat.signal.Signal" - }, - "compat": { - "constructor_signature": "(self, time: 'ArrayLike', data: 'ArrayLike', name: 'str' = 'signal', units: 'str | None' = None, x_label: 'str | None' = None, y_label: 'str | None' = None, x_units: 'str | None' = None, y_units: 'str | None' = None, plot_props: 'dict[str, Any]' = ) -> None", - "fields": [ - "data", - "name", - "plot_props", - "time", - "units", - "x_label", - "x_units", - "y_label", - "y_units" - ], - "methods": { - "MTMspectrum": "(self) -> 'tuple[np.ndarray, np.ndarray]'", - "abs": "(self) -> \"'SignalObj'\"", - "alignTime": "(self, newZero: 'float' = 0.0) -> \"'SignalObj'\"", - "alignToMax": "(self, targetTime: 'float' = 0.0) -> \"'SignalObj'\"", - "align_time": "(self, new_zero_time: 'float' = 0.0) -> \"'Signal'\"", - "areDataLabelsEmpty": "(self) -> 'bool'", - "autocorrelation": "(self, maxLag: 'int | None' = None) -> 'tuple[np.ndarray, np.ndarray]'", - "cell2str": "(cells: 'list[Any]', delimiter: 'str' = ',') -> 'str'", - "clearPlotProps": "(self) -> \"'SignalObj'\"", - "clear_plot_props": "(self) -> \"'Signal'\"", - "convertNamesToIndices": "(self, labels: 'list[str]') -> 'list[int]'", - "convertSigStructureToStructure": "(payload: 'dict[str, Any]') -> 'dict[str, Any]'", - "convertSimpleStructureToSigStructure": "(payload: 'dict[str, Any]') -> 'dict[str, Any]'", - "copy": "(self) -> \"'Signal'\"", - "copySignal": "(self) -> \"'SignalObj'\"", - "copy_signal": "(self) -> \"'Signal'\"", - "crosscorrelation": "(self, other: \"'SignalObj'\", maxLag: 'int | None' = None) -> 'tuple[np.ndarray, np.ndarray]'", - "ctranspose": "(self) -> \"'SignalObj'\"", - "dataToMatrix": "(self) -> 'np.ndarray'", - "dataToStructure": "(self) -> 'dict[str, Any]'", - "data_to_matrix": "(self) -> 'np.ndarray'", - "derivative": "(self) -> \"'SignalObj'\"", - "derivativeAt": "(self, queryTime: 'float') -> 'np.ndarray'", - "filter": "(self, b: 'np.ndarray', a: 'np.ndarray') -> \"'SignalObj'\"", - "filtfilt": "(self, b: 'np.ndarray', a: 'np.ndarray') -> \"'SignalObj'\"", - "findGlobalPeak": "(self) -> 'tuple[float, float, int]'", - "findIndFromDataMask": "(self) -> 'list[int]'", - "findMaxima": "(self) -> 'tuple[np.ndarray, np.ndarray]'", - "findMinima": "(self) -> 'tuple[np.ndarray, np.ndarray]'", - "findNearestTimeIndex": "(self, queryTime: 'float') -> 'int'", - "findNearestTimeIndices": "(self, queryTimes: 'np.ndarray') -> 'np.ndarray'", - "findPeaks": "(self) -> 'tuple[np.ndarray, np.ndarray]'", - "getAvailableColor": "(index: 'int' = 0) -> 'str'", - "getData": "(self) -> 'np.ndarray'", - "getDuration": "(self) -> 'float'", - "getIndexFromLabel": "(self, label: 'str') -> 'int'", - "getIndicesFromLabels": "(self, labels: 'list[str]') -> 'list[int]'", - "getNumSamples": "(self) -> 'int'", - "getNumSignals": "(self) -> 'int'", - "getOrigDataSig": "(self) -> \"'SignalObj'\"", - "getOriginalData": "(self) -> 'np.ndarray'", - "getPlotProps": "(self) -> 'dict[str, Any]'", - "getSampleRate": "(self) -> 'float'", - "getSigInTimeWindow": "(self, t0: 'float', tf: 'float') -> \"'SignalObj'\"", - "getSubSignal": "(self, selector: 'int | list[int] | np.ndarray') -> \"'SignalObj'\"", - "getSubSignalFromInd": "(self, selector: 'int | list[int] | np.ndarray') -> \"'SignalObj'\"", - "getSubSignalFromNames": "(self, labels: 'list[str]') -> \"'SignalObj'\"", - "getSubSignalsWithinNStd": "(self, nStd: 'float' = 1.0) -> \"'SignalObj'\"", - "getTime": "(self) -> 'np.ndarray'", - "getValueAt": "(self, queryTime: 'float') -> 'np.ndarray'", - "get_sub_signal": "(self, selector: 'int | list[int] | np.ndarray') -> \"'Signal'\"", - "integral": "(self) -> 'np.ndarray'", - "isLabelPresent": "(self, label: 'str') -> 'bool'", - "isMaskSet": "(self) -> 'bool'", - "ldivide": "(self, other: \"float | np.ndarray | 'SignalObj'\") -> \"'SignalObj'\"", - "log": "(self) -> \"'SignalObj'\"", - "makeCompatible": "(self, other: '_Signal') -> \"tuple['SignalObj', 'SignalObj']\"", - "max": "(self) -> 'float'", - "mean": "(self) -> 'float'", - "median": "(self) -> 'float'", - "merge": "(self, other: '_Signal') -> \"'SignalObj'\"", - "min": "(self) -> 'float'", - "minus": "(self, other: \"float | np.ndarray | 'SignalObj'\") -> \"'SignalObj'\"", - "mode": "(self) -> 'float'", - "mtimes": "(self, other: \"float | np.ndarray | 'SignalObj'\") -> \"'SignalObj'\"", - "normWindowedSignal": "(self, windowSamples: 'int' = 11) -> \"'SignalObj'\"", - "periodogram": "(self) -> 'tuple[np.ndarray, np.ndarray]'", - "plot": "(self, *_args: 'Any', **_kwargs: 'Any') -> 'Any'", - "plotAllVariability": "(self) -> 'Any'", - "plotPropsSet": "(self) -> 'bool'", - "plotVariability": "(self) -> 'Any'", - "plus": "(self, other: \"float | np.ndarray | 'SignalObj'\") -> \"'SignalObj'\"", - "power": "(self, exponent: 'float') -> \"'SignalObj'\"", - "rdivide": "(self, other: \"float | np.ndarray | 'SignalObj'\") -> \"'SignalObj'\"", - "resample": "(self, sampleRate: 'float') -> \"'SignalObj'\"", - "resampleMe": "(self, sampleRate: 'float') -> \"'SignalObj'\"", - "resetMask": "(self) -> \"'SignalObj'\"", - "restoreToOriginal": "(self) -> \"'SignalObj'\"", - "restrict_to_time_window": "(self, min_time: 'float', max_time: 'float') -> \"'Signal'\"", - "setDataLabels": "(self, labels: 'list[str]') -> \"'SignalObj'\"", - "setDataMask": "(self, mask: 'list[int] | np.ndarray') -> \"'SignalObj'\"", - "setMask": "(self, selector: 'list[int] | list[str] | np.ndarray') -> \"'SignalObj'\"", - "setMaskByInd": "(self, mask: 'list[int] | np.ndarray') -> \"'SignalObj'\"", - "setMaskByLabels": "(self, labels: 'list[str]') -> \"'SignalObj'\"", - "setMaxTime": "(self, maxTime: 'float') -> \"'SignalObj'\"", - "setMinTime": "(self, minTime: 'float') -> \"'SignalObj'\"", - "setName": "(self, name: 'str') -> \"'SignalObj'\"", - "setPlotProps": "(self, props: 'dict[str, Any]') -> \"'SignalObj'\"", - "setSampleRate": "(self, sampleRate: 'float') -> \"'SignalObj'\"", - "setUnits": "(self, units: 'str') -> \"'SignalObj'\"", - "setXUnits": "(self, units: 'str') -> \"'SignalObj'\"", - "setXlabel": "(self, label: 'str') -> \"'SignalObj'\"", - "setYLabel": "(self, label: 'str') -> \"'SignalObj'\"", - "setYUnits": "(self, units: 'str') -> \"'SignalObj'\"", - "set_max_time": "(self, max_time: 'float') -> \"'Signal'\"", - "set_min_time": "(self, min_time: 'float') -> \"'Signal'\"", - "set_name": "(self, name: 'str') -> \"'Signal'\"", - "set_plot_props": "(self, props: 'dict[str, Any]') -> \"'Signal'\"", - "set_units": "(self, units: 'str') -> \"'Signal'\"", - "set_x_units": "(self, units: 'str') -> \"'Signal'\"", - "set_xlabel": "(self, label: 'str') -> \"'Signal'\"", - "set_y_units": "(self, units: 'str') -> \"'Signal'\"", - "set_ylabel": "(self, label: 'str') -> \"'Signal'\"", - "setupPlots": "(self) -> \"'SignalObj'\"", - "shift": "(self, offset_s: 'float') -> \"'SignalObj'\"", - "shiftMe": "(self, offset_s: 'float') -> \"'SignalObj'\"", - "shiftTime": "(self, offset_s: 'float') -> \"'SignalObj'\"", - "shift_time": "(self, offset_s: 'float') -> \"'Signal'\"", - "signalFromStruct": "(payload: 'dict[str, Any]') -> \"'SignalObj'\"", - "spectrogram": "(self) -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "sqrt": "(self) -> \"'SignalObj'\"", - "std": "(self) -> 'float'", - "times": "(self, other: \"float | np.ndarray | 'SignalObj'\") -> \"'SignalObj'\"", - "transpose": "(self) -> \"'SignalObj'\"", - "uminus": "(self) -> \"'SignalObj'\"", - "uplus": "(self) -> \"'SignalObj'\"", - "windowedSignal": "(self, windowSamples: 'int' = 11) -> \"'SignalObj'\"", - "xcorr": "(self, other: \"'SignalObj | None'\" = None, maxLag: 'int | None' = None) -> 'tuple[np.ndarray, np.ndarray]'", - "xcov": "(self, other: \"'SignalObj | None'\" = None, maxLag: 'int | None' = None) -> 'tuple[np.ndarray, np.ndarray]'" - }, - "properties": [ - "duration_s", - "n_channels", - "n_samples", - "sample_rate_hz" - ] - }, - "fixture": { - "exists": true, - "generator": "topic_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/SignalObjExamples_gold.mat" - }, - "mapping": { - "alias_methods": { - "SignalObj": "copy", - "copy": "copy", - "getData": "data", - "getDuration": "duration_s", - "getName": "name", - "getNumSamples": "n_samples", - "getNumSignals": "n_channels", - "getSampleRate": "sample_rate_hz", - "getTime": "time" - }, - "compat_class": "nstat.compat.matlab.SignalObj", - "python_class": "nstat.signal.Signal" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "time", - "data", - "name", - "xlabelval", - "xunits", - "yunits", - "dataLabels", - "plotProps" - ], - "line": 121, - "name": "SignalObj", - "static": false - }, - "matlab_class": "SignalObj", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/SignalObj.m", - "methods": [ - { - "access": "public", - "args": [ - "time", - "data", - "name", - "xlabelval", - "xunits", - "yunits", - "dataLabels", - "plotProps" - ], - "line": 121, - "name": "SignalObj", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "name" - ], - "line": 196, - "name": "setName", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "name" - ], - "line": 205, - "name": "setXlabel", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "name" - ], - "line": 210, - "name": "setYLabel", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "xUnits", - "yUnits" - ], - "line": 216, - "name": "setUnits", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "units" - ], - "line": 234, - "name": "setXUnits", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "units" - ], - "line": 241, - "name": "setYUnits", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "sampleRate" - ], - "line": 248, - "name": "setSampleRate", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "dataLabels" - ], - "line": 262, - "name": "setDataLabels", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "minTime", - "holdVals" - ], - "line": 301, - "name": "setMinTime", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "maxTime", - "holdVals" - ], - "line": 341, - "name": "setMaxTime", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "plotProps", - "index" - ], - "line": 383, - "name": "setPlotProps", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "mask" - ], - "line": 435, - "name": "setMask", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 462, - "name": "getTime", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 467, - "name": "getData", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 475, - "name": "getOriginalData", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 484, - "name": "getOrigDataSig", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "x" - ], - "line": 499, - "name": "getValueAt", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "index" - ], - "line": 522, - "name": "getPlotProps", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "label" - ], - "line": 532, - "name": "getIndicesFromLabels", - "static": false - }, - { - "access": "public", - "args": [ - "s1", - "s2" - ], - "line": 573, - "name": "plus", - "static": false - }, - { - "access": "public", - "args": [ - "s1", - "s2" - ], - "line": 642, - "name": "minus", - "static": false - }, - { - "access": "public", - "args": [ - "s1" - ], - "line": 647, - "name": "uplus", - "static": false - }, - { - "access": "public", - "args": [ - "s1" - ], - "line": 652, - "name": "uminus", - "static": false - }, - { - "access": "public", - "args": [ - "s1", - "exponent" - ], - "line": 662, - "name": "power", - "static": false - }, - { - "access": "public", - "args": [ - "s1" - ], - "line": 671, - "name": "sqrt", - "static": false - }, - { - "access": "public", - "args": [ - "s1", - "s2" - ], - "line": 676, - "name": "times", - "static": false - }, - { - "access": "public", - "args": [ - "s1", - "s2" - ], - "line": 709, - "name": "mtimes", - "static": false - }, - { - "access": "public", - "args": [ - "s1", - "s2" - ], - "line": 728, - "name": "rdivide", - "static": false - }, - { - "access": "public", - "args": [ - "s1", - "s2" - ], - "line": 748, - "name": "ldivide", - "static": false - }, - { - "access": "public", - "args": [ - "s1" - ], - "line": 768, - "name": "ctranspose", - "static": false - }, - { - "access": "public", - "args": [ - "s1" - ], - "line": 774, - "name": "transpose", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 780, - "name": "derivative", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "x0" - ], - "line": 807, - "name": "derivativeAt", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "t0", - "tf" - ], - "line": 814, - "name": "integral", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "B", - "A" - ], - "line": 849, - "name": "filter", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "B", - "A" - ], - "line": 857, - "name": "filtfilt", - "static": false - }, - { - "access": "public", - "args": [ - "s1", - "s2", - "holdVals" - ], - "line": 865, - "name": "makeCompatible", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 907, - "name": "abs", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 926, - "name": "log", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "varargin" - ], - "line": 946, - "name": "median", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "varargin" - ], - "line": 984, - "name": "mode", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "varargin" - ], - "line": 1019, - "name": "mean", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "varargin" - ], - "line": 1052, - "name": "std", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "varargin" - ], - "line": 1087, - "name": "max", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "varargin" - ], - "line": 1095, - "name": "min", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 1103, - "name": "autocorrelation", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "s2" - ], - "line": 1120, - "name": "crosscorrelation", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 1130, - "name": "periodogram", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "NW", - "NFFT", - "Pval" - ], - "line": 1164, - "name": "MTMspectrum", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "freqVec", - "h" - ], - "line": 1205, - "name": "spectrogram", - "static": false - }, - { - "access": "public", - "args": [ - "s1", - "s2", - "varargin" - ], - "line": 1245, - "name": "xcorr", - "static": false - }, - { - "access": "public", - "args": [ - "s1", - "s2", - "varargin" - ], - "line": 1282, - "name": "xcov", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "varargin" - ], - "line": 1327, - "name": "merge", - "static": false - }, - { - "access": "public", - "args": [ - "sigIn" - ], - "line": 1366, - "name": "copySignal", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "newSampleRate" - ], - "line": 1386, - "name": "resample", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "newSampleRate" - ], - "line": 1398, - "name": "resampleMe", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "rMask" - ], - "line": 1423, - "name": "restoreToOriginal", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 1444, - "name": "resetMask", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 1450, - "name": "findIndFromDataMask", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "times" - ], - "line": 1458, - "name": "findNearestTimeIndices", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "time" - ], - "line": 1465, - "name": "findNearestTimeIndex", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "deltaT", - "updateLabels" - ], - "line": 1487, - "name": "shift", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "deltaT", - "updateLabels" - ], - "line": 1515, - "name": "shiftMe", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "timeMarker", - "newTime" - ], - "line": 1526, - "name": "alignTime", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 1532, - "name": "plotPropsSet", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 1544, - "name": "areDataLabelsEmpty", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "label" - ], - "line": 1555, - "name": "isLabelPresent", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 1568, - "name": "isMaskSet", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "selectorArray" - ], - "line": 1573, - "name": "convertNamesToIndices", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 1604, - "name": "alignToMax", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "type" - ], - "line": 1618, - "name": "findGlobalPeak", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "type", - "minDistance" - ], - "line": 1630, - "name": "findPeaks", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 1654, - "name": "findMaxima", - "static": false - }, - { - "access": "public", - "args": [ - "sObj" - ], - "line": 1658, - "name": "findMinima", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "index" - ], - "line": 1662, - "name": "clearPlotProps", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "selectorArray" - ], - "line": 1705, - "name": "dataToStructure", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "selectorArray" - ], - "line": 1745, - "name": "dataToMatrix", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "identifier" - ], - "line": 1766, - "name": "getSubSignal", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "windowTimes", - "numPoints", - "lbound", - "ubound" - ], - "line": 1787, - "name": "normWindowedSignal", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "windowTimes" - ], - "line": 1847, - "name": "windowedSignal", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "wMin", - "wMax", - "holdVals" - ], - "line": 1861, - "name": "getSigInTimeWindow", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "nStd" - ], - "line": 1932, - "name": "getSubSignalsWithinNStd", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "selectorArray", - "plotPropsIn", - "handle" - ], - "line": 1948, - "name": "plot", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "handle", - "sArray" - ], - "line": 2067, - "name": "setupPlots", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "selectorArray" - ], - "line": 2133, - "name": "plotVariability", - "static": false - }, - { - "access": "public", - "args": [ - "sObj", - "faceColor", - "linewidth", - "ciUpper", - "ciLower" - ], - "line": 2168, - "name": "plotAllVariability", - "static": false - }, - { - "access": "private", - "args": [ - "sObj", - "label" - ], - "line": 2248, - "name": "getIndexFromLabel", - "static": false - }, - { - "access": "private", - "args": [ - "sObj", - "dataMask" - ], - "line": 2261, - "name": "setDataMask", - "static": false - }, - { - "access": "private", - "args": [ - "sObj", - "index" - ], - "line": 2273, - "name": "setMaskByInd", - "static": false - }, - { - "access": "private", - "args": [ - "sObj", - "labels" - ], - "line": 2287, - "name": "setMaskByLabels", - "static": false - }, - { - "access": "private", - "args": [ - "sObj", - "selectorArray" - ], - "line": 2298, - "name": "getSubSignalFromInd", - "static": false - }, - { - "access": "private", - "args": [ - "sObj", - "labels" - ], - "line": 2343, - "name": "getSubSignalFromNames", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 2360, - "name": "signalFromStruct", - "static": true - }, - { - "access": "public", - "args": [ - "sigStructure" - ], - "line": 2371, - "name": "convertSigStructureToStructure", - "static": true - }, - { - "access": "public", - "args": [ - "simpleStructure" - ], - "line": 2381, - "name": "convertSimpleStructureToSigStructure", - "static": true - }, - { - "access": "public", - "args": [ - "input" - ], - "line": 2398, - "name": "cell2str", - "static": true - }, - { - "access": "public", - "args": [ - "index" - ], - "line": 2409, - "name": "getAvailableColor", - "static": true - } - ], - "private_methods": [ - "getIndexFromLabel", - "getSubSignalFromInd", - "getSubSignalFromNames", - "setDataMask", - "setMaskByInd", - "setMaskByLabels" - ], - "properties": [ - { - "access": "private", - "line": 97, - "name": "name" - }, - { - "access": "private", - "line": 98, - "name": "time" - }, - { - "access": "private", - "line": 99, - "name": "data" - }, - { - "access": "private", - "line": 100, - "name": "dimension" - }, - { - "access": "private", - "line": 101, - "name": "minTime" - }, - { - "access": "private", - "line": 102, - "name": "maxTime" - }, - { - "access": "private", - "line": 103, - "name": "xlabelval" - }, - { - "access": "private", - "line": 104, - "name": "xunits" - }, - { - "access": "private", - "line": 105, - "name": "yunits" - }, - { - "access": "private", - "line": 106, - "name": "dataLabels" - }, - { - "access": "private", - "line": 107, - "name": "dataMask" - }, - { - "access": "private", - "line": 108, - "name": "sampleRate" - }, - { - "access": "private", - "line": 109, - "name": "plotProps" - }, - { - "access": "public", - "line": 112, - "name": "origSampleRate" - }, - { - "access": "public", - "line": 113, - "name": "originalTime" - }, - { - "access": "public", - "line": 114, - "name": "originalData" - } - ], - "public_methods": [ - "MTMspectrum", - "SignalObj", - "abs", - "alignTime", - "alignToMax", - "areDataLabelsEmpty", - "autocorrelation", - "cell2str", - "clearPlotProps", - "convertNamesToIndices", - "convertSigStructureToStructure", - "convertSimpleStructureToSigStructure", - "copySignal", - "crosscorrelation", - "ctranspose", - "dataToMatrix", - "dataToStructure", - "derivative", - "derivativeAt", - "filter", - "filtfilt", - "findGlobalPeak", - "findIndFromDataMask", - "findMaxima", - "findMinima", - "findNearestTimeIndex", - "findNearestTimeIndices", - "findPeaks", - "getAvailableColor", - "getData", - "getIndicesFromLabels", - "getOrigDataSig", - "getOriginalData", - "getPlotProps", - "getSigInTimeWindow", - "getSubSignal", - "getSubSignalsWithinNStd", - "getTime", - "getValueAt", - "integral", - "isLabelPresent", - "isMaskSet", - "ldivide", - "log", - "makeCompatible", - "max", - "mean", - "median", - "merge", - "min", - "minus", - "mode", - "mtimes", - "normWindowedSignal", - "periodogram", - "plot", - "plotAllVariability", - "plotPropsSet", - "plotVariability", - "plus", - "power", - "rdivide", - "resample", - "resampleMe", - "resetMask", - "restoreToOriginal", - "setDataLabels", - "setMask", - "setMaxTime", - "setMinTime", - "setName", - "setPlotProps", - "setSampleRate", - "setUnits", - "setXUnits", - "setXlabel", - "setYLabel", - "setYUnits", - "setupPlots", - "shift", - "shiftMe", - "signalFromStruct", - "spectrogram", - "sqrt", - "std", - "times", - "transpose", - "uminus", - "uplus", - "windowedSignal", - "xcorr", - "xcov" - ], - "superclass": "handle" - }, - "matlab_class": "SignalObj", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "MTMspectrum", - "mapped_via_alias": false, - "matlab_method": "MTMspectrum", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": true, - "excluded_method": false, - "mapped_member": "copy", - "mapped_via_alias": true, - "matlab_method": "SignalObj", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "abs", - "mapped_via_alias": false, - "matlab_method": "abs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "alignTime", - "mapped_via_alias": false, - "matlab_method": "alignTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "alignToMax", - "mapped_via_alias": false, - "matlab_method": "alignToMax", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "areDataLabelsEmpty", - "mapped_via_alias": false, - "matlab_method": "areDataLabelsEmpty", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "autocorrelation", - "mapped_via_alias": false, - "matlab_method": "autocorrelation", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "cell2str", - "mapped_via_alias": false, - "matlab_method": "cell2str", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "clearPlotProps", - "mapped_via_alias": false, - "matlab_method": "clearPlotProps", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "convertNamesToIndices", - "mapped_via_alias": false, - "matlab_method": "convertNamesToIndices", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "convertSigStructureToStructure", - "mapped_via_alias": false, - "matlab_method": "convertSigStructureToStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "convertSimpleStructureToSigStructure", - "mapped_via_alias": false, - "matlab_method": "convertSimpleStructureToSigStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "copySignal", - "mapped_via_alias": false, - "matlab_method": "copySignal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "crosscorrelation", - "mapped_via_alias": false, - "matlab_method": "crosscorrelation", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "ctranspose", - "mapped_via_alias": false, - "matlab_method": "ctranspose", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "dataToMatrix", - "mapped_via_alias": false, - "matlab_method": "dataToMatrix", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "dataToStructure", - "mapped_via_alias": false, - "matlab_method": "dataToStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "derivative", - "mapped_via_alias": false, - "matlab_method": "derivative", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "derivativeAt", - "mapped_via_alias": false, - "matlab_method": "derivativeAt", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "filter", - "mapped_via_alias": false, - "matlab_method": "filter", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "filtfilt", - "mapped_via_alias": false, - "matlab_method": "filtfilt", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "findGlobalPeak", - "mapped_via_alias": false, - "matlab_method": "findGlobalPeak", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "findIndFromDataMask", - "mapped_via_alias": false, - "matlab_method": "findIndFromDataMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "findMaxima", - "mapped_via_alias": false, - "matlab_method": "findMaxima", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "findMinima", - "mapped_via_alias": false, - "matlab_method": "findMinima", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "findNearestTimeIndex", - "mapped_via_alias": false, - "matlab_method": "findNearestTimeIndex", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "findNearestTimeIndices", - "mapped_via_alias": false, - "matlab_method": "findNearestTimeIndices", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "findPeaks", - "mapped_via_alias": false, - "matlab_method": "findPeaks", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getAvailableColor", - "mapped_via_alias": false, - "matlab_method": "getAvailableColor", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "data", - "mapped_via_alias": true, - "matlab_method": "getData", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getIndicesFromLabels", - "mapped_via_alias": false, - "matlab_method": "getIndicesFromLabels", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getOrigDataSig", - "mapped_via_alias": false, - "matlab_method": "getOrigDataSig", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getOriginalData", - "mapped_via_alias": false, - "matlab_method": "getOriginalData", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getPlotProps", - "mapped_via_alias": false, - "matlab_method": "getPlotProps", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getSigInTimeWindow", - "mapped_via_alias": false, - "matlab_method": "getSigInTimeWindow", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getSubSignal", - "mapped_via_alias": false, - "matlab_method": "getSubSignal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getSubSignalsWithinNStd", - "mapped_via_alias": false, - "matlab_method": "getSubSignalsWithinNStd", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "time", - "mapped_via_alias": true, - "matlab_method": "getTime", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getValueAt", - "mapped_via_alias": false, - "matlab_method": "getValueAt", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "integral", - "mapped_via_alias": false, - "matlab_method": "integral", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isLabelPresent", - "mapped_via_alias": false, - "matlab_method": "isLabelPresent", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isMaskSet", - "mapped_via_alias": false, - "matlab_method": "isMaskSet", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "ldivide", - "mapped_via_alias": false, - "matlab_method": "ldivide", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "log", - "mapped_via_alias": false, - "matlab_method": "log", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "makeCompatible", - "mapped_via_alias": false, - "matlab_method": "makeCompatible", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "max", - "mapped_via_alias": false, - "matlab_method": "max", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "mean", - "mapped_via_alias": false, - "matlab_method": "mean", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "median", - "mapped_via_alias": false, - "matlab_method": "median", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": true, - "excluded_method": false, - "mapped_member": "merge", - "mapped_via_alias": false, - "matlab_method": "merge", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "min", - "mapped_via_alias": false, - "matlab_method": "min", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "minus", - "mapped_via_alias": false, - "matlab_method": "minus", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "mode", - "mapped_via_alias": false, - "matlab_method": "mode", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "mtimes", - "mapped_via_alias": false, - "matlab_method": "mtimes", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "normWindowedSignal", - "mapped_via_alias": false, - "matlab_method": "normWindowedSignal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": true, - "excluded_method": false, - "mapped_member": "periodogram", - "mapped_via_alias": false, - "matlab_method": "periodogram", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plot", - "mapped_via_alias": false, - "matlab_method": "plot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotAllVariability", - "mapped_via_alias": false, - "matlab_method": "plotAllVariability", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotPropsSet", - "mapped_via_alias": false, - "matlab_method": "plotPropsSet", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotVariability", - "mapped_via_alias": false, - "matlab_method": "plotVariability", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plus", - "mapped_via_alias": false, - "matlab_method": "plus", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "power", - "mapped_via_alias": false, - "matlab_method": "power", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "rdivide", - "mapped_via_alias": false, - "matlab_method": "rdivide", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": true, - "excluded_method": false, - "mapped_member": "resample", - "mapped_via_alias": false, - "matlab_method": "resample", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resampleMe", - "mapped_via_alias": false, - "matlab_method": "resampleMe", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resetMask", - "mapped_via_alias": false, - "matlab_method": "resetMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "restoreToOriginal", - "mapped_via_alias": false, - "matlab_method": "restoreToOriginal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setDataLabels", - "mapped_via_alias": false, - "matlab_method": "setDataLabels", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMask", - "mapped_via_alias": false, - "matlab_method": "setMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMaxTime", - "mapped_via_alias": false, - "matlab_method": "setMaxTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMinTime", - "mapped_via_alias": false, - "matlab_method": "setMinTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setName", - "mapped_via_alias": false, - "matlab_method": "setName", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setPlotProps", - "mapped_via_alias": false, - "matlab_method": "setPlotProps", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setSampleRate", - "mapped_via_alias": false, - "matlab_method": "setSampleRate", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setUnits", - "mapped_via_alias": false, - "matlab_method": "setUnits", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setXUnits", - "mapped_via_alias": false, - "matlab_method": "setXUnits", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setXlabel", - "mapped_via_alias": false, - "matlab_method": "setXlabel", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setYLabel", - "mapped_via_alias": false, - "matlab_method": "setYLabel", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setYUnits", - "mapped_via_alias": false, - "matlab_method": "setYUnits", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setupPlots", - "mapped_via_alias": false, - "matlab_method": "setupPlots", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "shift", - "mapped_via_alias": false, - "matlab_method": "shift", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "shiftMe", - "mapped_via_alias": false, - "matlab_method": "shiftMe", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "signalFromStruct", - "mapped_via_alias": false, - "matlab_method": "signalFromStruct", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "spectrogram", - "mapped_via_alias": false, - "matlab_method": "spectrogram", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "sqrt", - "mapped_via_alias": false, - "matlab_method": "sqrt", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "std", - "mapped_via_alias": false, - "matlab_method": "std", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "times", - "mapped_via_alias": false, - "matlab_method": "times", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "transpose", - "mapped_via_alias": false, - "matlab_method": "transpose", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "uminus", - "mapped_via_alias": false, - "matlab_method": "uminus", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "uplus", - "mapped_via_alias": false, - "matlab_method": "uplus", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "windowedSignal", - "mapped_via_alias": false, - "matlab_method": "windowedSignal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "xcorr", - "mapped_via_alias": false, - "matlab_method": "xcorr", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "xcov", - "mapped_via_alias": false, - "matlab_method": "xcov", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, time: 'ArrayLike', data: 'ArrayLike', name: 'str' = 'signal', units: 'str | None' = None, x_label: 'str | None' = None, y_label: 'str | None' = None, x_units: 'str | None' = None, y_units: 'str | None' = None, plot_props: 'dict[str, Any]' = ) -> None", - "fields": [ - "data", - "name", - "plot_props", - "time", - "units", - "x_label", - "x_units", - "y_label", - "y_units" - ], - "methods": { - "align_time": "(self, new_zero_time: 'float' = 0.0) -> \"'Signal'\"", - "clear_plot_props": "(self) -> \"'Signal'\"", - "copy": "(self) -> \"'Signal'\"", - "copy_signal": "(self) -> \"'Signal'\"", - "data_to_matrix": "(self) -> 'np.ndarray'", - "derivative": "(self) -> \"'Signal'\"", - "get_sub_signal": "(self, selector: 'int | list[int] | np.ndarray') -> \"'Signal'\"", - "integral": "(self) -> 'np.ndarray'", - "merge": "(self, other: \"'Signal'\") -> \"'Signal'\"", - "resample": "(self, sample_rate_hz: 'float') -> \"'Signal'\"", - "restrict_to_time_window": "(self, min_time: 'float', max_time: 'float') -> \"'Signal'\"", - "set_max_time": "(self, max_time: 'float') -> \"'Signal'\"", - "set_min_time": "(self, min_time: 'float') -> \"'Signal'\"", - "set_name": "(self, name: 'str') -> \"'Signal'\"", - "set_plot_props": "(self, props: 'dict[str, Any]') -> \"'Signal'\"", - "set_units": "(self, units: 'str') -> \"'Signal'\"", - "set_x_units": "(self, units: 'str') -> \"'Signal'\"", - "set_xlabel": "(self, label: 'str') -> \"'Signal'\"", - "set_y_units": "(self, units: 'str') -> \"'Signal'\"", - "set_ylabel": "(self, label: 'str') -> \"'Signal'\"", - "shift_time": "(self, offset_s: 'float') -> \"'Signal'\"" - }, - "properties": [ - "duration_s", - "n_channels", - "n_samples", - "sample_rate_hz" - ] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.Trial", - "fixture_path": "tests/parity/fixtures/matlab_gold/TrialExamples_gold.mat", - "key_methods": [ - "aligned_binned_observation", - "get_design_matrix", - "set_history", - "set_trial_partition", - "to_structure" - ], - "python_class": "nstat.trial.Trial" - }, - "compat": { - "constructor_signature": "(self, spikes: 'SpikeTrainCollection', covariates: 'CovariateCollection') -> None", - "fields": [ - "covariates", - "spikes" - ], - "methods": { - "addCov": "(self, cov: '_Covariate') -> \"'Trial'\"", - "aligned_binned_observation": "(self, bin_size_s: 'float', unit_index: 'int' = 0, mode: \"Literal['binary', 'count']\" = 'binary') -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "findMaxSampleRate": "(self) -> 'float'", - "findMaxTime": "(self) -> 'float'", - "findMinSampleRate": "(self) -> 'float'", - "findMinTime": "(self) -> 'float'", - "find_max_sample_rate": "(self) -> 'float'", - "find_max_time": "(self) -> 'float'", - "find_min_sample_rate": "(self) -> 'float'", - "find_min_time": "(self) -> 'float'", - "flattenCovMask": "(self, mask: 'list[int] | list[list[int]] | np.ndarray') -> 'list[int]'", - "flattenMask": "(self, mask: 'list[int] | list[list[int]] | np.ndarray') -> 'list[int]'", - "fromStructure": "(payload: 'dict[str, Any]') -> \"'Trial'\"", - "getAlignedBinnedObservation": "(self, binSize_s: 'float', unitIndex: 'int' = 0, mode: \"Literal['binary', 'count']\" = 'binary') -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "getAllCovLabels": "(self) -> 'list[str]'", - "getAllLabels": "(self, binSize_s: 'float' = 0.001) -> 'list[str]'", - "getCov": "(self, selector: 'int | str') -> '_Covariate'", - "getCovLabelsFromMask": "(self) -> 'list[str]'", - "getCovSelectorFromMask": "(self) -> 'list[str]'", - "getDesignMatrix": "(self) -> 'tuple[np.ndarray, list[str]]'", - "getEnsCovLabels": "(self, binSize_s: 'float' = 0.001) -> 'list[str]'", - "getEnsCovLabelsFromMask": "(self, binSize_s: 'float' = 0.001) -> 'list[str]'", - "getEnsCovMatrix": "(self, binSize_s: 'float' = 0.001, mode: \"Literal['binary', 'count']\" = 'binary') -> 'tuple[np.ndarray, list[str]]'", - "getEnsembleNeuronCovariates": "(self, binSize_s: 'float' = 0.001, mode: \"Literal['binary', 'count']\" = 'binary') -> 'CovColl'", - "getEvents": "(self) -> '_Events | None'", - "getHistForNeurons": "(self, neuronIndices: 'list[int] | np.ndarray', binSize_s: 'float' = 0.001) -> 'list[np.ndarray]'", - "getHistLabels": "(self) -> 'list[str]'", - "getHistMatrices": "(self, binSize_s: 'float' = 0.001) -> 'list[np.ndarray]'", - "getLabelsFromMask": "(self) -> 'list[str]'", - "getNeuron": "(self, unitInd: 'int' = 0) -> 'nstColl'", - "getNeuronIndFromMask": "(self) -> 'list[int]'", - "getNeuronIndFromName": "(self, name: 'str') -> 'list[int]'", - "getNeuronNames": "(self) -> 'list[str]'", - "getNeuronNeighbors": "(self) -> 'Any'", - "getNumHist": "(self) -> 'int'", - "getNumUniqueNeurons": "(self) -> 'int'", - "getSpikeVector": "(self, binSize_s: 'float', unitIndex: 'int' = 0, mode: \"Literal['binary', 'count']\" = 'binary') -> 'tuple[np.ndarray, np.ndarray]'", - "getTrialPartition": "(self) -> 'dict[str, tuple[float, float]]'", - "getUniqueNeuronNames": "(self) -> 'list[str]'", - "get_all_cov_labels": "(self) -> 'list[str]'", - "get_cov": "(self, selector: 'int | str') -> 'Covariate'", - "get_design_matrix": "(self) -> 'tuple[np.ndarray, list[str]]'", - "get_neuron": "(self, unit_index: 'int' = 0) -> 'SpikeTrainCollection'", - "get_spike_vector": "(self, bin_size_s: 'float', unit_index: 'int' = 0, mode: \"Literal['binary', 'count']\" = 'binary') -> 'tuple[np.ndarray, np.ndarray]'", - "isCovMaskSet": "(self) -> 'bool'", - "isEnsCovHistSet": "(self) -> 'bool'", - "isHistSet": "(self) -> 'bool'", - "isMaskSet": "(self) -> 'bool'", - "isNeuronMaskSet": "(self) -> 'bool'", - "isSampleRateConsistent": "(self) -> 'bool'", - "is_sample_rate_consistent": "(self, rtol: 'float' = 1e-06) -> 'bool'", - "makeConsistentSampleRate": "(self, sampleRate: 'float | None' = None) -> \"'Trial'\"", - "makeConsistentTime": "(self) -> \"'Trial'\"", - "plot": "(self, *_args: 'Any', **_kwargs: 'Any') -> 'Any'", - "plotCovariates": "(self, *_args: 'Any', **_kwargs: 'Any') -> 'Any'", - "plotRaster": "(self, *_args: 'Any', **_kwargs: 'Any') -> 'Any'", - "removeCov": "(self, selector: 'int | str') -> \"'Trial'\"", - "resample": "(self, sampleRate: 'float') -> \"'Trial'\"", - "resampleEnsColl": "(self, sampleRate: 'float') -> 'CovColl'", - "resetCovMask": "(self) -> \"'Trial'\"", - "resetEnsCovMask": "(self) -> \"'Trial'\"", - "resetHistory": "(self) -> \"'Trial'\"", - "resetNeuronMask": "(self) -> \"'Trial'\"", - "restoreToOriginal": "(self) -> \"'Trial'\"", - "setCovMask": "(self, selector: 'list[int] | list[str]') -> \"'Trial'\"", - "setEnsCovHist": "(self, ensCovHist: 'Any') -> \"'Trial'\"", - "setEnsCovMask": "(self, selector: 'list[int] | list[str] | np.ndarray') -> \"'Trial'\"", - "setHistory": "(self, history: 'Any') -> \"'Trial'\"", - "setMaxTime": "(self, t_max: 'float') -> \"'Trial'\"", - "setMinTime": "(self, t_min: 'float') -> \"'Trial'\"", - "setNeighbors": "(self, neighbors: 'Any') -> \"'Trial'\"", - "setNeuronMask": "(self, selector: 'list[int] | list[str] | np.ndarray') -> \"'Trial'\"", - "setSampleRate": "(self, sampleRate: 'float') -> \"'Trial'\"", - "setTrialEvents": "(self, events: '_Events') -> \"'Trial'\"", - "setTrialPartition": "(self, partition: 'dict[str, tuple[float, float]]') -> \"'Trial'\"", - "setTrialTimesFor": "(self, *args: 'Any') -> \"'Trial'\"", - "shiftCovariates": "(self, lag_s: 'float') -> \"'Trial'\"", - "toStructure": "(self) -> 'dict[str, Any]'", - "updateTimePartitions": "(self) -> \"'Trial'\"" - }, - "properties": [] - }, - "fixture": { - "exists": true, - "generator": "topic_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/TrialExamples_gold.mat" - }, - "mapping": { - "alias_methods": { - "Trial": "getDesignMatrix", - "getAlignedBinnedObservation": "aligned_binned_observation" - }, - "compat_class": "nstat.compat.matlab.Trial", - "python_class": "nstat.trial.Trial" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "nspikeColl", - "covarColl", - "event", - "hist", - "ensCovHist", - "ensCovMask" - ], - "line": 77, - "name": "Trial", - "static": false - }, - "matlab_class": "Trial", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/Trial.m", - "methods": [ - { - "access": "public", - "args": [ - "nspikeColl", - "covarColl", - "event", - "hist", - "ensCovHist", - "ensCovMask" - ], - "line": 77, - "name": "Trial", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "event" - ], - "line": 147, - "name": "setTrialEvents", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "partitionTimes" - ], - "line": 172, - "name": "setTrialPartition", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 202, - "name": "getTrialPartition", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "partitionName" - ], - "line": 214, - "name": "setTrialTimesFor", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "minTime" - ], - "line": 241, - "name": "setMinTime", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "maxTime" - ], - "line": 256, - "name": "setMaxTime", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 270, - "name": "updateTimePartitions", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "sampleRate" - ], - "line": 287, - "name": "setSampleRate", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "mask" - ], - "line": 296, - "name": "setEnsCovMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "mask" - ], - "line": 306, - "name": "setCovMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "mask" - ], - "line": 320, - "name": "setNeuronMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "varargin" - ], - "line": 326, - "name": "setNeighbors", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "hist" - ], - "line": 329, - "name": "setHistory", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "hist" - ], - "line": 360, - "name": "setEnsCovHist", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 400, - "name": "isNeuronMaskSet", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 406, - "name": "isCovMaskSet", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 412, - "name": "isMaskSet", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 418, - "name": "isHistSet", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 438, - "name": "isEnsCovHistSet", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "cov" - ], - "line": 445, - "name": "addCov", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "identifier" - ], - "line": 453, - "name": "removeCov", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "varargin" - ], - "line": 464, - "name": "getSpikeVector", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "neuronNum", - "varargin" - ], - "line": 471, - "name": "getDesignMatrix", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "neuronNum", - "includedNeurons", - "varargin" - ], - "line": 508, - "name": "getEnsCovMatrix", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "neuronIndex" - ], - "line": 529, - "name": "getHistForNeurons", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "neuronIndex" - ], - "line": 568, - "name": "getHistMatrices", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "varargin" - ], - "line": 590, - "name": "getEnsembleNeuronCovariates", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 594, - "name": "getNeuronIndFromMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 599, - "name": "getNumUniqueNeurons", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 602, - "name": "getNeuronNames", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 605, - "name": "getUniqueNeuronNames", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "neuronName" - ], - "line": 608, - "name": "getNeuronIndFromName", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "neuronNum" - ], - "line": 623, - "name": "getNeuronNeighbors", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 630, - "name": "getCovSelectorFromMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "identifier" - ], - "line": 635, - "name": "getCov", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "identifier" - ], - "line": 640, - "name": "getNeuron", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 645, - "name": "getEvents", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 652, - "name": "getAllLabels", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 669, - "name": "getNumHist", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 685, - "name": "getAllCovLabels", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 688, - "name": "getCovLabelsFromMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 692, - "name": "getHistLabels", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 707, - "name": "getEnsCovLabels", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "neuronNum" - ], - "line": 727, - "name": "getEnsCovLabelsFromMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "neuronNum" - ], - "line": 764, - "name": "getLabelsFromMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 792, - "name": "flattenCovMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 806, - "name": "flattenMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "varargin" - ], - "line": 827, - "name": "shiftCovariates", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 832, - "name": "resetEnsCovMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 836, - "name": "resetCovMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 841, - "name": "resetNeuronMask", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 846, - "name": "resetHistory", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "sampleRate" - ], - "line": 878, - "name": "resample", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 884, - "name": "resampleEnsColl", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 891, - "name": "restoreToOriginal", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 908, - "name": "makeConsistentSampleRate", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 911, - "name": "makeConsistentTime", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "handle" - ], - "line": 921, - "name": "plotRaster", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "handle" - ], - "line": 926, - "name": "plotCovariates", - "static": false - }, - { - "access": "public", - "args": [ - "tObj", - "handle" - ], - "line": 966, - "name": "plot", - "static": false - }, - { - "access": "public", - "args": [ - "tObj" - ], - "line": 1015, - "name": "toStructure", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 1033, - "name": "fromStructure", - "static": true - }, - { - "access": "private", - "args": [ - "tObj" - ], - "line": 1054, - "name": "isSampleRateConsistent", - "static": false - }, - { - "access": "private", - "args": [ - "tObj" - ], - "line": 1057, - "name": "findMinTime", - "static": false - }, - { - "access": "private", - "args": [ - "tObj" - ], - "line": 1060, - "name": "findMaxTime", - "static": false - }, - { - "access": "private", - "args": [ - "tObj" - ], - "line": 1063, - "name": "findMinSampleRate", - "static": false - }, - { - "access": "private", - "args": [ - "tObj" - ], - "line": 1066, - "name": "findMaxSampleRate", - "static": false - } - ], - "private_methods": [ - "findMaxSampleRate", - "findMaxTime", - "findMinSampleRate", - "findMinTime", - "isSampleRateConsistent" - ], - "properties": [ - { - "access": "public", - "line": 56, - "name": "nspikeColl" - }, - { - "access": "public", - "line": 57, - "name": "covarColl" - }, - { - "access": "public", - "line": 58, - "name": "ensCovHist" - }, - { - "access": "public", - "line": 59, - "name": "ev" - }, - { - "access": "public", - "line": 60, - "name": "history" - }, - { - "access": "public", - "line": 61, - "name": "sampleRate" - }, - { - "access": "public", - "line": 62, - "name": "minTime" - }, - { - "access": "public", - "line": 63, - "name": "maxTime" - }, - { - "access": "public", - "line": 64, - "name": "covMask" - }, - { - "access": "public", - "line": 65, - "name": "ensCovMask" - }, - { - "access": "public", - "line": 66, - "name": "neuronMask" - }, - { - "access": "public", - "line": 67, - "name": "trainingWindow" - }, - { - "access": "public", - "line": 68, - "name": "validationWindow" - }, - { - "access": "public", - "line": 72, - "name": "ensCovColl" - } - ], - "public_methods": [ - "Trial", - "addCov", - "flattenCovMask", - "flattenMask", - "fromStructure", - "getAllCovLabels", - "getAllLabels", - "getCov", - "getCovLabelsFromMask", - "getCovSelectorFromMask", - "getDesignMatrix", - "getEnsCovLabels", - "getEnsCovLabelsFromMask", - "getEnsCovMatrix", - "getEnsembleNeuronCovariates", - "getEvents", - "getHistForNeurons", - "getHistLabels", - "getHistMatrices", - "getLabelsFromMask", - "getNeuron", - "getNeuronIndFromMask", - "getNeuronIndFromName", - "getNeuronNames", - "getNeuronNeighbors", - "getNumHist", - "getNumUniqueNeurons", - "getSpikeVector", - "getTrialPartition", - "getUniqueNeuronNames", - "isCovMaskSet", - "isEnsCovHistSet", - "isHistSet", - "isMaskSet", - "isNeuronMaskSet", - "makeConsistentSampleRate", - "makeConsistentTime", - "plot", - "plotCovariates", - "plotRaster", - "removeCov", - "resample", - "resampleEnsColl", - "resetCovMask", - "resetEnsCovMask", - "resetHistory", - "resetNeuronMask", - "restoreToOriginal", - "setCovMask", - "setEnsCovHist", - "setEnsCovMask", - "setHistory", - "setMaxTime", - "setMinTime", - "setNeighbors", - "setNeuronMask", - "setSampleRate", - "setTrialEvents", - "setTrialPartition", - "setTrialTimesFor", - "shiftCovariates", - "toStructure", - "updateTimePartitions" - ], - "superclass": "handle" - }, - "matlab_class": "Trial", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getDesignMatrix", - "mapped_via_alias": true, - "matlab_method": "Trial", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "addCov", - "mapped_via_alias": false, - "matlab_method": "addCov", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "flattenCovMask", - "mapped_via_alias": false, - "matlab_method": "flattenCovMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "flattenMask", - "mapped_via_alias": false, - "matlab_method": "flattenMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fromStructure", - "mapped_via_alias": false, - "matlab_method": "fromStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getAllCovLabels", - "mapped_via_alias": false, - "matlab_method": "getAllCovLabels", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getAllLabels", - "mapped_via_alias": false, - "matlab_method": "getAllLabels", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getCov", - "mapped_via_alias": false, - "matlab_method": "getCov", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getCovLabelsFromMask", - "mapped_via_alias": false, - "matlab_method": "getCovLabelsFromMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getCovSelectorFromMask", - "mapped_via_alias": false, - "matlab_method": "getCovSelectorFromMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getDesignMatrix", - "mapped_via_alias": false, - "matlab_method": "getDesignMatrix", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getEnsCovLabels", - "mapped_via_alias": false, - "matlab_method": "getEnsCovLabels", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getEnsCovLabelsFromMask", - "mapped_via_alias": false, - "matlab_method": "getEnsCovLabelsFromMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getEnsCovMatrix", - "mapped_via_alias": false, - "matlab_method": "getEnsCovMatrix", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getEnsembleNeuronCovariates", - "mapped_via_alias": false, - "matlab_method": "getEnsembleNeuronCovariates", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getEvents", - "mapped_via_alias": false, - "matlab_method": "getEvents", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getHistForNeurons", - "mapped_via_alias": false, - "matlab_method": "getHistForNeurons", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getHistLabels", - "mapped_via_alias": false, - "matlab_method": "getHistLabels", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getHistMatrices", - "mapped_via_alias": false, - "matlab_method": "getHistMatrices", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getLabelsFromMask", - "mapped_via_alias": false, - "matlab_method": "getLabelsFromMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNeuron", - "mapped_via_alias": false, - "matlab_method": "getNeuron", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNeuronIndFromMask", - "mapped_via_alias": false, - "matlab_method": "getNeuronIndFromMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNeuronIndFromName", - "mapped_via_alias": false, - "matlab_method": "getNeuronIndFromName", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNeuronNames", - "mapped_via_alias": false, - "matlab_method": "getNeuronNames", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNeuronNeighbors", - "mapped_via_alias": false, - "matlab_method": "getNeuronNeighbors", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNumHist", - "mapped_via_alias": false, - "matlab_method": "getNumHist", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNumUniqueNeurons", - "mapped_via_alias": false, - "matlab_method": "getNumUniqueNeurons", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getSpikeVector", - "mapped_via_alias": false, - "matlab_method": "getSpikeVector", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getTrialPartition", - "mapped_via_alias": false, - "matlab_method": "getTrialPartition", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getUniqueNeuronNames", - "mapped_via_alias": false, - "matlab_method": "getUniqueNeuronNames", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isCovMaskSet", - "mapped_via_alias": false, - "matlab_method": "isCovMaskSet", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isEnsCovHistSet", - "mapped_via_alias": false, - "matlab_method": "isEnsCovHistSet", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isHistSet", - "mapped_via_alias": false, - "matlab_method": "isHistSet", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isMaskSet", - "mapped_via_alias": false, - "matlab_method": "isMaskSet", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isNeuronMaskSet", - "mapped_via_alias": false, - "matlab_method": "isNeuronMaskSet", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "makeConsistentSampleRate", - "mapped_via_alias": false, - "matlab_method": "makeConsistentSampleRate", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "makeConsistentTime", - "mapped_via_alias": false, - "matlab_method": "makeConsistentTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plot", - "mapped_via_alias": false, - "matlab_method": "plot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotCovariates", - "mapped_via_alias": false, - "matlab_method": "plotCovariates", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotRaster", - "mapped_via_alias": false, - "matlab_method": "plotRaster", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "removeCov", - "mapped_via_alias": false, - "matlab_method": "removeCov", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resample", - "mapped_via_alias": false, - "matlab_method": "resample", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resampleEnsColl", - "mapped_via_alias": false, - "matlab_method": "resampleEnsColl", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resetCovMask", - "mapped_via_alias": false, - "matlab_method": "resetCovMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resetEnsCovMask", - "mapped_via_alias": false, - "matlab_method": "resetEnsCovMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resetHistory", - "mapped_via_alias": false, - "matlab_method": "resetHistory", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resetNeuronMask", - "mapped_via_alias": false, - "matlab_method": "resetNeuronMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "restoreToOriginal", - "mapped_via_alias": false, - "matlab_method": "restoreToOriginal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setCovMask", - "mapped_via_alias": false, - "matlab_method": "setCovMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setEnsCovHist", - "mapped_via_alias": false, - "matlab_method": "setEnsCovHist", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setEnsCovMask", - "mapped_via_alias": false, - "matlab_method": "setEnsCovMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setHistory", - "mapped_via_alias": false, - "matlab_method": "setHistory", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMaxTime", - "mapped_via_alias": false, - "matlab_method": "setMaxTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMinTime", - "mapped_via_alias": false, - "matlab_method": "setMinTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setNeighbors", - "mapped_via_alias": false, - "matlab_method": "setNeighbors", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setNeuronMask", - "mapped_via_alias": false, - "matlab_method": "setNeuronMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setSampleRate", - "mapped_via_alias": false, - "matlab_method": "setSampleRate", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setTrialEvents", - "mapped_via_alias": false, - "matlab_method": "setTrialEvents", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setTrialPartition", - "mapped_via_alias": false, - "matlab_method": "setTrialPartition", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setTrialTimesFor", - "mapped_via_alias": false, - "matlab_method": "setTrialTimesFor", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "shiftCovariates", - "mapped_via_alias": false, - "matlab_method": "shiftCovariates", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toStructure", - "mapped_via_alias": false, - "matlab_method": "toStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "updateTimePartitions", - "mapped_via_alias": false, - "matlab_method": "updateTimePartitions", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, spikes: 'SpikeTrainCollection', covariates: 'CovariateCollection') -> None", - "fields": [ - "covariates", - "spikes" - ], - "methods": { - "aligned_binned_observation": "(self, bin_size_s: 'float', unit_index: 'int' = 0, mode: \"Literal['binary', 'count']\" = 'binary') -> 'tuple[np.ndarray, np.ndarray, np.ndarray]'", - "find_max_sample_rate": "(self) -> 'float'", - "find_max_time": "(self) -> 'float'", - "find_min_sample_rate": "(self) -> 'float'", - "find_min_time": "(self) -> 'float'", - "get_all_cov_labels": "(self) -> 'list[str]'", - "get_cov": "(self, selector: 'int | str') -> 'Covariate'", - "get_design_matrix": "(self) -> 'tuple[np.ndarray, list[str]]'", - "get_neuron": "(self, unit_index: 'int' = 0) -> 'SpikeTrainCollection'", - "get_spike_vector": "(self, bin_size_s: 'float', unit_index: 'int' = 0, mode: \"Literal['binary', 'count']\" = 'binary') -> 'tuple[np.ndarray, np.ndarray]'", - "is_sample_rate_consistent": "(self, rtol: 'float' = 1e-06) -> 'bool'" - }, - "properties": [] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.TrialConfig", - "fixture_path": "tests/parity/fixtures/matlab_gold/classes/TrialConfig/basic.mat", - "key_methods": [ - "get_name", - "set_name", - "to_structure", - "from_structure" - ], - "python_class": "nstat.trial.TrialConfig" - }, - "compat": { - "constructor_signature": "(self, covariateLabels: 'list[str] | None' = None, Fs: 'float' = 1000.0, fitType: 'str' = 'poisson', name: 'str' = 'config', **kwargs: 'Any') -> 'None'", - "fields": [ - "covariate_labels", - "fit_type", - "name", - "sample_rate_hz" - ], - "methods": { - "fromStructure": "(payload: 'dict[str, Any]') -> \"'TrialConfig'\"", - "getCovariateLabels": "(self) -> 'list[str]'", - "getFitType": "(self) -> 'str'", - "getName": "(self) -> 'str'", - "getSampleRate": "(self) -> 'float'", - "setConfig": "(self, trial: \"'Trial'\") -> \"'TrialConfig'\"", - "setName": "(self, name: 'str') -> \"'TrialConfig'\"", - "toStructure": "(self) -> 'dict[str, Any]'" - }, - "properties": [] - }, - "fixture": { - "exists": true, - "generator": "class_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/classes/TrialConfig/basic.mat" - }, - "mapping": { - "alias_methods": { - "TrialConfig": "getName", - "getCovariateLabels": "covariate_labels", - "getFitType": "fit_type", - "getSampleRate": "sample_rate_hz" - }, - "compat_class": "nstat.compat.matlab.TrialConfig", - "python_class": "nstat.trial.TrialConfig" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "covMask", - "sampleRate", - "history", - "ensCovHist", - "ensCovMask", - "covLag", - "name" - ], - "line": 62, - "name": "TrialConfig", - "static": false - }, - "matlab_class": "TrialConfig", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/TrialConfig.m", - "methods": [ - { - "access": "public", - "args": [ - "covMask", - "sampleRate", - "history", - "ensCovHist", - "ensCovMask", - "covLag", - "name" - ], - "line": 62, - "name": "TrialConfig", - "static": false - }, - { - "access": "public", - "args": [ - "tcObj", - "trial" - ], - "line": 108, - "name": "setConfig", - "static": false - }, - { - "access": "public", - "args": [ - "tcObj" - ], - "line": 148, - "name": "getName", - "static": false - }, - { - "access": "public", - "args": [ - "tcObj", - "n" - ], - "line": 153, - "name": "setName", - "static": false - }, - { - "access": "public", - "args": [ - "tcObj" - ], - "line": 158, - "name": "toStructure", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 173, - "name": "fromStructure", - "static": true - } - ], - "private_methods": [], - "properties": [ - { - "access": "public", - "line": 50, - "name": "covMask" - }, - { - "access": "public", - "line": 51, - "name": "covLag" - }, - { - "access": "public", - "line": 52, - "name": "sampleRate" - }, - { - "access": "public", - "line": 53, - "name": "history" - }, - { - "access": "public", - "line": 54, - "name": "ensCovHist" - }, - { - "access": "public", - "line": 55, - "name": "ensCovMask" - }, - { - "access": "public", - "line": 56, - "name": "name" - } - ], - "public_methods": [ - "TrialConfig", - "fromStructure", - "getName", - "setConfig", - "setName", - "toStructure" - ], - "superclass": "handle" - }, - "matlab_class": "TrialConfig", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getName", - "mapped_via_alias": true, - "matlab_method": "TrialConfig", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fromStructure", - "mapped_via_alias": false, - "matlab_method": "fromStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getName", - "mapped_via_alias": false, - "matlab_method": "getName", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setConfig", - "mapped_via_alias": false, - "matlab_method": "setConfig", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setName", - "mapped_via_alias": false, - "matlab_method": "setName", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toStructure", - "mapped_via_alias": false, - "matlab_method": "toStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, covariate_labels: 'list[str]' = , sample_rate_hz: 'float' = 1000.0, fit_type: 'str' = 'poisson', name: 'str' = 'config') -> None", - "fields": [ - "covariate_labels", - "fit_type", - "name", - "sample_rate_hz" - ], - "methods": {}, - "properties": [] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.nspikeTrain", - "fixture_path": "tests/parity/fixtures/matlab_gold/nstCollExamples_gold.mat", - "key_methods": [ - "firing_rate_hz", - "bin_counts", - "binarize", - "shift_time", - "copy" - ], - "python_class": "nstat.spikes.SpikeTrain" - }, - "compat": { - "constructor_signature": "(self, spike_times: 'np.ndarray', t_start: 'float' = 0.0, t_end: 'float | None' = None, name: 'str' = 'unit') -> None", - "fields": [ - "name", - "spike_times", - "t_end", - "t_start" - ], - "methods": { - "bin_counts": "(self, bin_size_s: 'float') -> 'tuple[np.ndarray, np.ndarray]'", - "binarize": "(self, bin_size_s: 'float') -> 'tuple[np.ndarray, np.ndarray]'", - "clearSigRep": "(self) -> '_SpikeTrain'", - "computeRate": "(self) -> 'float'", - "computeStatistics": "(self) -> 'dict[str, float]'", - "copy": "(self) -> \"'SpikeTrain'\"", - "duration_s": "(self) -> 'float'", - "firing_rate_hz": "(self) -> 'float'", - "fromStructure": "(payload: 'dict[str, Any]') -> '_SpikeTrain'", - "getDuration": "(self) -> 'float'", - "getFieldVal": "(self, fieldName: 'str') -> 'Any'", - "getFiringRate": "(self) -> 'float'", - "getISIs": "(self) -> 'np.ndarray'", - "getLStatistic": "(self) -> 'float'", - "getMaxBinSizeBinary": "(self) -> 'float'", - "getMinISI": "(self) -> 'float'", - "getSigRep": "(self, binSize_s: 'float' = 0.001, mode: \"Literal['binary', 'count']\" = 'binary') -> 'np.ndarray'", - "getSpikeTimes": "(self) -> 'np.ndarray'", - "get_spike_times": "(self) -> 'np.ndarray'", - "isSigRepBinary": "(self, binSize_s: 'float' = 0.001) -> 'bool'", - "nspikeTrain": "(*args: 'Any', **kwargs: 'Any') -> '_SpikeTrain'", - "nstCopy": "(self) -> '_SpikeTrain'", - "partitionNST": "(self, partitionEdges_s: 'np.ndarray | list[float]') -> 'list[_SpikeTrain]'", - "plot": "(self, *_args: 'Any', **_kwargs: 'Any') -> 'Any'", - "plotExponentialFit": "(self) -> 'Any'", - "plotISIHistogram": "(self, bins: 'int' = 20) -> 'Any'", - "plotISISpectrumFunction": "(self) -> 'Any'", - "plotJointISIHistogram": "(self, bins: 'int' = 20) -> 'Any'", - "plotProbPlot": "(self) -> 'Any'", - "resample": "(self, sampleRate: 'float') -> '_SpikeTrain'", - "restoreToOriginal": "(self) -> '_SpikeTrain'", - "setMER": "(self, mer: 'float') -> '_SpikeTrain'", - "setMaxTime": "(self, t_max: 'float') -> '_SpikeTrain'", - "setMinTime": "(self, t_min: 'float') -> '_SpikeTrain'", - "setName": "(self, name: 'str') -> '_SpikeTrain'", - "setSigRep": "(self, sigRep: 'np.ndarray') -> '_SpikeTrain'", - "set_max_time": "(self, t_max: 'float') -> \"'SpikeTrain'\"", - "set_min_time": "(self, t_min: 'float') -> \"'SpikeTrain'\"", - "shiftTime": "(self, offset_s: 'float') -> '_SpikeTrain'", - "shift_time": "(self, offset_s: 'float') -> \"'SpikeTrain'\"", - "toStructure": "(self) -> 'dict[str, Any]'" - }, - "properties": [] - }, - "fixture": { - "exists": true, - "generator": "topic_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/nstCollExamples_gold.mat" - }, - "mapping": { - "alias_methods": { - "binCounts": "bin_counts", - "binarize": "binarize", - "getDuration": "duration_s", - "getFiringRate": "firing_rate_hz", - "getSpikeTimes": "spike_times" - }, - "compat_class": "nstat.compat.matlab.nspikeTrain", - "python_class": "nstat.spikes.SpikeTrain" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "spikeTimes", - "name", - "binwidth", - "minTime", - "maxTime", - "xlabelval", - "xunits", - "yunits", - "dataLabels", - "makePlots" - ], - "line": 103, - "name": "nspikeTrain", - "static": false - }, - "matlab_class": "nspikeTrain", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/nspikeTrain.m", - "methods": [ - { - "access": "public", - "args": [ - "spikeTimes", - "name", - "binwidth", - "minTime", - "maxTime", - "xlabelval", - "xunits", - "yunits", - "dataLabels", - "makePlots" - ], - "line": 103, - "name": "nspikeTrain", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj" - ], - "line": 179, - "name": "getLStatistic", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "MERSig" - ], - "line": 213, - "name": "setMER", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "name" - ], - "line": 219, - "name": "setName", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "makePlots" - ], - "line": 228, - "name": "computeStatistics", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "binwidth", - "minTime", - "maxTime" - ], - "line": 335, - "name": "setSigRep", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "minTime" - ], - "line": 344, - "name": "setMinTime", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "maxTime" - ], - "line": 355, - "name": "setMaxTime", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj" - ], - "line": 364, - "name": "clearSigRep", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "sampleRate" - ], - "line": 370, - "name": "resample", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "binwidth", - "minTime", - "maxTime" - ], - "line": 383, - "name": "getSigRep", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj" - ], - "line": 559, - "name": "getMaxBinSizeBinary", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj" - ], - "line": 569, - "name": "plotISISpectrumFunction", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "minTime", - "maxTime" - ], - "line": 585, - "name": "getSpikeTimes", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj" - ], - "line": 595, - "name": "plotJointISIHistogram", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "fieldName" - ], - "line": 609, - "name": "getFieldVal", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "minTime", - "maxTime", - "numBins", - "handle" - ], - "line": 617, - "name": "plotISIHistogram", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "minTime", - "maxTime", - "numBins", - "handle" - ], - "line": 713, - "name": "plotExponentialFit", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "minTime", - "maxTime", - "handle" - ], - "line": 732, - "name": "plotProbPlot", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "minTime", - "maxTime" - ], - "line": 775, - "name": "getISIs", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "minTime", - "maxTime" - ], - "line": 787, - "name": "getMinISI", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "windowTimes", - "normalizeTime", - "lbound", - "ubound" - ], - "line": 796, - "name": "partitionNST", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj" - ], - "line": 882, - "name": "isSigRepBinary", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj" - ], - "line": 904, - "name": "computeRate", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj" - ], - "line": 909, - "name": "restoreToOriginal", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj" - ], - "line": 924, - "name": "nstCopy", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj", - "dHeight", - "yOffset", - "currentHandle" - ], - "line": 957, - "name": "plot", - "static": false - }, - { - "access": "public", - "args": [ - "nstObj" - ], - "line": 1015, - "name": "toStructure", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 1032, - "name": "fromStructure", - "static": true - } - ], - "private_methods": [], - "properties": [ - { - "access": "private", - "line": 69, - "name": "name" - }, - { - "access": "private", - "line": 70, - "name": "spikeTimes" - }, - { - "access": "private", - "line": 72, - "name": "sigRep" - }, - { - "access": "private", - "line": 73, - "name": "sampleRate" - }, - { - "access": "private", - "line": 74, - "name": "maxTime" - }, - { - "access": "private", - "line": 75, - "name": "minTime" - }, - { - "access": "private", - "line": 79, - "name": "isSigRepBin" - }, - { - "access": "private", - "line": 80, - "name": "xlabelval" - }, - { - "access": "private", - "line": 81, - "name": "xunits" - }, - { - "access": "private", - "line": 82, - "name": "yunits" - }, - { - "access": "private", - "line": 83, - "name": "dataLabels" - }, - { - "access": "private", - "line": 84, - "name": "MER" - }, - { - "access": "private", - "line": 85, - "name": "avgFiringRate" - }, - { - "access": "private", - "line": 87, - "name": "B" - }, - { - "access": "private", - "line": 88, - "name": "An" - }, - { - "access": "private", - "line": 89, - "name": "burstTimes" - }, - { - "access": "private", - "line": 90, - "name": "burstRate" - }, - { - "access": "private", - "line": 91, - "name": "burstDuration" - }, - { - "access": "private", - "line": 92, - "name": "burstSig" - }, - { - "access": "private", - "line": 93, - "name": "burstIndex" - }, - { - "access": "private", - "line": 94, - "name": "numBursts" - }, - { - "access": "private", - "line": 95, - "name": "numSpikesPerBurst" - }, - { - "access": "private", - "line": 96, - "name": "avgSpikesPerBurst" - }, - { - "access": "private", - "line": 97, - "name": "stdSpikesPerBurst" - }, - { - "access": "private", - "line": 98, - "name": "Lstatistic" - } - ], - "public_methods": [ - "clearSigRep", - "computeRate", - "computeStatistics", - "fromStructure", - "getFieldVal", - "getISIs", - "getLStatistic", - "getMaxBinSizeBinary", - "getMinISI", - "getSigRep", - "getSpikeTimes", - "isSigRepBinary", - "nspikeTrain", - "nstCopy", - "partitionNST", - "plot", - "plotExponentialFit", - "plotISIHistogram", - "plotISISpectrumFunction", - "plotJointISIHistogram", - "plotProbPlot", - "resample", - "restoreToOriginal", - "setMER", - "setMaxTime", - "setMinTime", - "setName", - "setSigRep", - "toStructure" - ], - "superclass": "handle" - }, - "matlab_class": "nspikeTrain", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "clearSigRep", - "mapped_via_alias": false, - "matlab_method": "clearSigRep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeRate", - "mapped_via_alias": false, - "matlab_method": "computeRate", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "computeStatistics", - "mapped_via_alias": false, - "matlab_method": "computeStatistics", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fromStructure", - "mapped_via_alias": false, - "matlab_method": "fromStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getFieldVal", - "mapped_via_alias": false, - "matlab_method": "getFieldVal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getISIs", - "mapped_via_alias": false, - "matlab_method": "getISIs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getLStatistic", - "mapped_via_alias": false, - "matlab_method": "getLStatistic", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getMaxBinSizeBinary", - "mapped_via_alias": false, - "matlab_method": "getMaxBinSizeBinary", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getMinISI", - "mapped_via_alias": false, - "matlab_method": "getMinISI", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getSigRep", - "mapped_via_alias": false, - "matlab_method": "getSigRep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "spike_times", - "mapped_via_alias": true, - "matlab_method": "getSpikeTimes", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isSigRepBinary", - "mapped_via_alias": false, - "matlab_method": "isSigRepBinary", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "nspikeTrain", - "mapped_via_alias": false, - "matlab_method": "nspikeTrain", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "nstCopy", - "mapped_via_alias": false, - "matlab_method": "nstCopy", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "partitionNST", - "mapped_via_alias": false, - "matlab_method": "partitionNST", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plot", - "mapped_via_alias": false, - "matlab_method": "plot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotExponentialFit", - "mapped_via_alias": false, - "matlab_method": "plotExponentialFit", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotISIHistogram", - "mapped_via_alias": false, - "matlab_method": "plotISIHistogram", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotISISpectrumFunction", - "mapped_via_alias": false, - "matlab_method": "plotISISpectrumFunction", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotJointISIHistogram", - "mapped_via_alias": false, - "matlab_method": "plotJointISIHistogram", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotProbPlot", - "mapped_via_alias": false, - "matlab_method": "plotProbPlot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resample", - "mapped_via_alias": false, - "matlab_method": "resample", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "restoreToOriginal", - "mapped_via_alias": false, - "matlab_method": "restoreToOriginal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMER", - "mapped_via_alias": false, - "matlab_method": "setMER", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMaxTime", - "mapped_via_alias": false, - "matlab_method": "setMaxTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMinTime", - "mapped_via_alias": false, - "matlab_method": "setMinTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setName", - "mapped_via_alias": false, - "matlab_method": "setName", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setSigRep", - "mapped_via_alias": false, - "matlab_method": "setSigRep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toStructure", - "mapped_via_alias": false, - "matlab_method": "toStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, spike_times: 'np.ndarray', t_start: 'float' = 0.0, t_end: 'float | None' = None, name: 'str' = 'unit') -> None", - "fields": [ - "name", - "spike_times", - "t_end", - "t_start" - ], - "methods": { - "bin_counts": "(self, bin_size_s: 'float') -> 'tuple[np.ndarray, np.ndarray]'", - "binarize": "(self, bin_size_s: 'float') -> 'tuple[np.ndarray, np.ndarray]'", - "copy": "(self) -> \"'SpikeTrain'\"", - "duration_s": "(self) -> 'float'", - "firing_rate_hz": "(self) -> 'float'", - "get_spike_times": "(self) -> 'np.ndarray'", - "set_max_time": "(self, t_max: 'float') -> \"'SpikeTrain'\"", - "set_min_time": "(self, t_min: 'float') -> \"'SpikeTrain'\"", - "shift_time": "(self, offset_s: 'float') -> \"'SpikeTrain'\"" - }, - "properties": [] - }, - "status": "verified" - }, - { - "class_contract": { - "compat_class": "nstat.compat.matlab.nstColl", - "fixture_path": "tests/parity/fixtures/matlab_gold/nstCollExamples_gold.mat", - "key_methods": [ - "to_binned_matrix", - "merge", - "get_first_spike_time", - "get_last_spike_time", - "get_spike_times" - ], - "python_class": "nstat.spikes.SpikeTrainCollection" - }, - "compat": { - "constructor_signature": "(self, trains: 'list[SpikeTrain]' = ) -> None", - "fields": [ - "trains" - ], - "methods": { - "BinarySigRep": "(self, binSize_s: 'float' = 0.001) -> 'np.ndarray'", - "addNeuronNamesToEnsCovColl": "(self, covColl: \"'CovColl'\") -> \"'CovColl'\"", - "addSingleSpikeToColl": "(self, unitInd: 'int', spikeTime: 'float') -> '_SpikeTrainCollection'", - "addToColl": "(self, train: '_SpikeTrain') -> '_SpikeTrainCollection'", - "add_single_spike_to_coll": "(self, unit_index: 'int', spike_time_s: 'float', sort_times: 'bool' = True) -> \"'SpikeTrainCollection'\"", - "add_to_coll": "(self, train: 'SpikeTrain') -> \"'SpikeTrainCollection'\"", - "areNeighborsSet": "(self) -> 'bool'", - "copy": "(self) -> \"'SpikeTrainCollection'\"", - "dataToMatrix": "(self, binSize_s: 'float', mode: \"Literal['binary', 'count']\" = 'binary') -> 'np.ndarray'", - "data_to_matrix": "(self, bin_size_s: 'float', mode: \"Literal['binary', 'count']\" = 'binary') -> 'np.ndarray'", - "enforceSampleRate": "(self, sampleRate: 'float') -> '_SpikeTrainCollection'", - "ensureConsistancy": "(self) -> 'bool'", - "estimateVarianceAcrossTrials": "(self, binSize_s: 'float' = 0.01) -> 'np.ndarray'", - "findMaxSampleRate": "(self) -> 'float'", - "fromStructure": "(payload: 'dict[str, Any]') -> '_SpikeTrainCollection'", - "generateUnitImpulseBasis": "(basisWidth_s: 'float', *args: 'Any', **kwargs: 'Any') -> '_Covariate'", - "getBinnedMatrix": "(self, binSize_s: 'float', mode: \"Literal['binary', 'count']\" = 'binary') -> 'tuple[np.ndarray, np.ndarray]'", - "getEnsembleNeuronCovariates": "(self, binSize_s: 'float' = 0.001, mode: \"Literal['binary', 'count']\" = 'binary') -> \"'CovColl'\"", - "getFieldVal": "(self, fieldName: 'str') -> 'list[Any]'", - "getFirstSpikeTime": "(self) -> 'float'", - "getISIs": "(self) -> 'list[np.ndarray]'", - "getIndFromMask": "(self) -> 'list[int]'", - "getIndFromMaskMinusOne": "(self) -> 'list[int]'", - "getLastSpikeTime": "(self) -> 'float'", - "getMaxBinSizeBinary": "(self) -> 'float'", - "getMinISIs": "(self) -> 'np.ndarray'", - "getNST": "(self, ind: 'int') -> 'nspikeTrain'", - "getNSTFromName": "(self, name: 'str') -> 'nspikeTrain'", - "getNSTIndicesFromName": "(self, name: 'str') -> 'list[int]'", - "getNSTnameFromInd": "(self, ind: 'int') -> 'str'", - "getNSTnames": "(self) -> 'list[str]'", - "getNeighbors": "(self) -> 'Any'", - "getNumUnits": "(self) -> 'int'", - "getSpikeTimes": "(self) -> 'list[np.ndarray]'", - "getUniqueNSTnames": "(self) -> 'list[str]'", - "get_first_spike_time": "(self) -> 'float'", - "get_last_spike_time": "(self) -> 'float'", - "get_nst": "(self, index: 'int') -> 'SpikeTrain'", - "get_nst_from_name": "(self, name: 'str', first_only: 'bool' = True) -> 'SpikeTrain | list[SpikeTrain]'", - "get_nst_indices_from_name": "(self, name: 'str') -> 'list[int]'", - "get_nst_name_from_ind": "(self, index: 'int') -> 'str'", - "get_nst_names": "(self) -> 'list[str]'", - "get_spike_times": "(self) -> 'list[np.ndarray]'", - "get_unique_nst_names": "(self) -> 'list[str]'", - "isNeuronMaskSet": "(self) -> 'bool'", - "isSigRepBinary": "(self, binSize_s: 'float' = 0.001) -> 'bool'", - "merge": "(self, other: '_SpikeTrainCollection') -> '_SpikeTrainCollection'", - "nstColl": "(*args: 'Any', **kwargs: 'Any') -> '_SpikeTrainCollection'", - "plot": "(self, *_args: 'Any', **_kwargs: 'Any') -> 'Any'", - "plotExponentialFit": "(self) -> 'Any'", - "plotISIHistogram": "(self, bins: 'int' = 20) -> 'Any'", - "psth": "(self, binSize_s: 'float' = 0.01) -> 'tuple[np.ndarray, np.ndarray]'", - "psthBars": "(self, binSize_s: 'float' = 0.01) -> 'tuple[np.ndarray, np.ndarray]'", - "psthGLM": "(self, binSize_s: 'float' = 0.01) -> 'tuple[np.ndarray, np.ndarray]'", - "resample": "(self, sampleRate: 'float') -> '_SpikeTrainCollection'", - "resetMask": "(self) -> '_SpikeTrainCollection'", - "restoreToOriginal": "(self) -> '_SpikeTrainCollection'", - "setMask": "(self, selector: 'list[int] | list[str]') -> '_SpikeTrainCollection'", - "setMaxTime": "(self, t_max: 'float') -> '_SpikeTrainCollection'", - "setMinTime": "(self, t_min: 'float') -> '_SpikeTrainCollection'", - "setNeighbors": "(self, neighbors: 'Any') -> '_SpikeTrainCollection'", - "setNeuronMask": "(self, selector: 'list[int] | list[str]') -> '_SpikeTrainCollection'", - "setNeuronMaskFromInd": "(self, indices: 'list[int] | np.ndarray') -> '_SpikeTrainCollection'", - "set_max_time": "(self, t_max: 'float') -> \"'SpikeTrainCollection'\"", - "set_min_time": "(self, t_min: 'float') -> \"'SpikeTrainCollection'\"", - "shiftTime": "(self, offset_s: 'float') -> '_SpikeTrainCollection'", - "shift_time": "(self, offset_s: 'float') -> \"'SpikeTrainCollection'\"", - "ssglm": "(self, binSize_s: 'float' = 0.01) -> 'tuple[np.ndarray, np.ndarray]'", - "toSpikeTrain": "(self, name: 'str' = 'merged') -> 'nspikeTrain'", - "toStructure": "(self) -> 'dict[str, Any]'", - "to_binned_matrix": "(self, bin_size_s: 'float', mode: \"Literal['binary', 'count']\" = 'binary') -> 'tuple[np.ndarray, np.ndarray]'", - "to_spike_train": "(self, name: 'str' = 'merged') -> 'SpikeTrain'", - "updateTimes": "(self) -> '_SpikeTrainCollection'" - }, - "properties": [ - "n_units" - ] - }, - "fixture": { - "exists": true, - "generator": "topic_gold_exporter", - "path": "tests/parity/fixtures/matlab_gold/nstCollExamples_gold.mat" - }, - "mapping": { - "alias_methods": { - "getBinnedMatrix": "to_binned_matrix", - "getNumUnits": "n_units", - "nstColl": "copy" - }, - "compat_class": "nstat.compat.matlab.nstColl", - "python_class": "nstat.spikes.SpikeTrainCollection" - }, - "matlab": { - "constructor": { - "access": "public", - "args": [ - "nst" - ], - "line": 62, - "name": "nstColl", - "static": false - }, - "matlab_class": "nstColl", - "matlab_file": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/nstColl.m", - "methods": [ - { - "access": "public", - "args": [ - "nst" - ], - "line": 62, - "name": "nstColl", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "nstColl2" - ], - "line": 84, - "name": "merge", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj" - ], - "line": 91, - "name": "getFirstSpikeTime", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj" - ], - "line": 97, - "name": "getLastSpikeTime", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj" - ], - "line": 114, - "name": "getMaxBinSizeBinary", - "static": false - }, - { - "access": "public", - "args": [], - "line": 137, - "name": "get", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "neuronNum" - ], - "line": 142, - "name": "getNeighbors", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "fieldName" - ], - "line": 182, - "name": "getFieldVal", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "timeShift" - ], - "line": 196, - "name": "shiftTime", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "minTime" - ], - "line": 210, - "name": "setMinTime", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "maxTime" - ], - "line": 225, - "name": "setMaxTime", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "mask" - ], - "line": 239, - "name": "setMask", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "mask" - ], - "line": 251, - "name": "setNeuronMaskFromInd", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "mask" - ], - "line": 261, - "name": "setNeuronMask", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "neighborArray" - ], - "line": 269, - "name": "setNeighbors", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj" - ], - "line": 286, - "name": "getIndFromMask", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "neuron" - ], - "line": 294, - "name": "getIndFromMaskMinusOne", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj" - ], - "line": 298, - "name": "isNeuronMaskSet", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj" - ], - "line": 308, - "name": "areNeighborsSet", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "rMask" - ], - "line": 316, - "name": "restoreToOriginal", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj" - ], - "line": 340, - "name": "findMaxSampleRate", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj" - ], - "line": 346, - "name": "resetMask", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "nst" - ], - "line": 352, - "name": "addToColl", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "selectorArray" - ], - "line": 378, - "name": "getUniqueNSTnames", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "selectorArray" - ], - "line": 384, - "name": "getNSTnames", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "neuronName" - ], - "line": 394, - "name": "getNSTIndicesFromName", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "ind" - ], - "line": 410, - "name": "getNSTnameFromInd", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "neuronName" - ], - "line": 418, - "name": "getNSTFromName", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "index" - ], - "line": 427, - "name": "getNST", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "sampleRate" - ], - "line": 455, - "name": "resample", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj" - ], - "line": 474, - "name": "isSigRepBinary", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj" - ], - "line": 478, - "name": "BinarySigRep", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "neuronNum", - "neighborIndex", - "windowTimes" - ], - "line": 493, - "name": "getEnsembleNeuronCovariates", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "ensembleCovariates" - ], - "line": 522, - "name": "addNeuronNamesToEnsCovColl", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "selectorArray", - "binwidth", - "minTime", - "maxTime" - ], - "line": 551, - "name": "dataToMatrix", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "selectorArray", - "minTime", - "maxTime", - "windowTimes" - ], - "line": 612, - "name": "toSpikeTrain", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "binwidth", - "selectorArray", - "minTime", - "maxTime" - ], - "line": 680, - "name": "psth", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "binwidth", - "selectorArray", - "minTime", - "maxTime" - ], - "line": 745, - "name": "psthBars", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "windowTimes", - "numBasis", - "numVarEstIter", - "fitType" - ], - "line": 809, - "name": "ssglm", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "basisWidth", - "history", - "fitType", - "selectorArray", - "minTime", - "maxTime", - "sampleRate" - ], - "line": 939, - "name": "psthGLM", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "selectorArray", - "minTime", - "maxTime", - "handle", - "reverseOrderPlot" - ], - "line": 1175, - "name": "plot", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "selectorArray", - "minTime", - "maxTime" - ], - "line": 1258, - "name": "getMinISIs", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "selectorArray", - "minTime", - "maxTime" - ], - "line": 1285, - "name": "getISIs", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "selectorArray", - "minTime", - "maxTime", - "handle" - ], - "line": 1310, - "name": "plotISIHistogram", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "selectorArray", - "minTime", - "maxTime", - "numBins", - "handle" - ], - "line": 1355, - "name": "plotExponentialFit", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "numBasis", - "windowTimes", - "numIter", - "fitType" - ], - "line": 1396, - "name": "estimateVarianceAcrossTrials", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj", - "minTime", - "maxTime" - ], - "line": 1465, - "name": "getSpikeTimes", - "static": false - }, - { - "access": "public", - "args": [ - "nstCollObj" - ], - "line": 1485, - "name": "toStructure", - "static": false - }, - { - "access": "public", - "args": [ - "structure" - ], - "line": 1503, - "name": "fromStructure", - "static": true - }, - { - "access": "public", - "args": [ - "basisWidth", - "minTime", - "maxTime", - "sampleRate" - ], - "line": 1513, - "name": "generateUnitImpulseBasis", - "static": true - }, - { - "access": "private", - "args": [ - "nstCollObj", - "nst" - ], - "line": 1559, - "name": "addSingleSpikeToColl", - "static": false - }, - { - "access": "private", - "args": [ - "nstCollObj" - ], - "line": 1576, - "name": "ensureConsistancy", - "static": false - }, - { - "access": "private", - "args": [ - "nstCollObj" - ], - "line": 1581, - "name": "enforceSampleRate", - "static": false - }, - { - "access": "private", - "args": [ - "nstCollObj", - "nst" - ], - "line": 1589, - "name": "updateTimes", - "static": false - } - ], - "private_methods": [ - "addSingleSpikeToColl", - "enforceSampleRate", - "ensureConsistancy", - "updateTimes" - ], - "properties": [ - { - "access": "private", - "line": 46, - "name": "nstrain" - }, - { - "access": "private", - "line": 47, - "name": "numSpikeTrains" - }, - { - "access": "private", - "line": 48, - "name": "minTime" - }, - { - "access": "private", - "line": 49, - "name": "maxTime" - }, - { - "access": "private", - "line": 50, - "name": "sampleRate" - }, - { - "access": "private", - "line": 51, - "name": "neuronMask" - }, - { - "access": "private", - "line": 52, - "name": "neuronNames" - }, - { - "access": "private", - "line": 54, - "name": "neighbors" - }, - { - "access": "public", - "line": 58, - "name": "uniqueNeuronNames" - } - ], - "public_methods": [ - "BinarySigRep", - "addNeuronNamesToEnsCovColl", - "addToColl", - "areNeighborsSet", - "dataToMatrix", - "estimateVarianceAcrossTrials", - "findMaxSampleRate", - "fromStructure", - "generateUnitImpulseBasis", - "get", - "getEnsembleNeuronCovariates", - "getFieldVal", - "getFirstSpikeTime", - "getISIs", - "getIndFromMask", - "getIndFromMaskMinusOne", - "getLastSpikeTime", - "getMaxBinSizeBinary", - "getMinISIs", - "getNST", - "getNSTFromName", - "getNSTIndicesFromName", - "getNSTnameFromInd", - "getNSTnames", - "getNeighbors", - "getSpikeTimes", - "getUniqueNSTnames", - "isNeuronMaskSet", - "isSigRepBinary", - "merge", - "nstColl", - "plot", - "plotExponentialFit", - "plotISIHistogram", - "psth", - "psthBars", - "psthGLM", - "resample", - "resetMask", - "restoreToOriginal", - "setMask", - "setMaxTime", - "setMinTime", - "setNeighbors", - "setNeuronMask", - "setNeuronMaskFromInd", - "shiftTime", - "ssglm", - "toSpikeTrain", - "toStructure" - ], - "superclass": "handle" - }, - "matlab_class": "nstColl", - "method_rows": [ - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "BinarySigRep", - "mapped_via_alias": false, - "matlab_method": "BinarySigRep", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "addNeuronNamesToEnsCovColl", - "mapped_via_alias": false, - "matlab_method": "addNeuronNamesToEnsCovColl", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "addToColl", - "mapped_via_alias": false, - "matlab_method": "addToColl", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "areNeighborsSet", - "mapped_via_alias": false, - "matlab_method": "areNeighborsSet", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "dataToMatrix", - "mapped_via_alias": false, - "matlab_method": "dataToMatrix", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "estimateVarianceAcrossTrials", - "mapped_via_alias": false, - "matlab_method": "estimateVarianceAcrossTrials", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "findMaxSampleRate", - "mapped_via_alias": false, - "matlab_method": "findMaxSampleRate", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "fromStructure", - "mapped_via_alias": false, - "matlab_method": "fromStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "generateUnitImpulseBasis", - "mapped_via_alias": false, - "matlab_method": "generateUnitImpulseBasis", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": false, - "covered_by_class_contract": false, - "excluded_method": true, - "mapped_member": "get", - "mapped_via_alias": false, - "matlab_method": "get", - "present_in_compat_surface": false, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getEnsembleNeuronCovariates", - "mapped_via_alias": false, - "matlab_method": "getEnsembleNeuronCovariates", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getFieldVal", - "mapped_via_alias": false, - "matlab_method": "getFieldVal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getFirstSpikeTime", - "mapped_via_alias": false, - "matlab_method": "getFirstSpikeTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getISIs", - "mapped_via_alias": false, - "matlab_method": "getISIs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getIndFromMask", - "mapped_via_alias": false, - "matlab_method": "getIndFromMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getIndFromMaskMinusOne", - "mapped_via_alias": false, - "matlab_method": "getIndFromMaskMinusOne", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getLastSpikeTime", - "mapped_via_alias": false, - "matlab_method": "getLastSpikeTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getMaxBinSizeBinary", - "mapped_via_alias": false, - "matlab_method": "getMaxBinSizeBinary", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getMinISIs", - "mapped_via_alias": false, - "matlab_method": "getMinISIs", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNST", - "mapped_via_alias": false, - "matlab_method": "getNST", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNSTFromName", - "mapped_via_alias": false, - "matlab_method": "getNSTFromName", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNSTIndicesFromName", - "mapped_via_alias": false, - "matlab_method": "getNSTIndicesFromName", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNSTnameFromInd", - "mapped_via_alias": false, - "matlab_method": "getNSTnameFromInd", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNSTnames", - "mapped_via_alias": false, - "matlab_method": "getNSTnames", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getNeighbors", - "mapped_via_alias": false, - "matlab_method": "getNeighbors", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getSpikeTimes", - "mapped_via_alias": false, - "matlab_method": "getSpikeTimes", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "getUniqueNSTnames", - "mapped_via_alias": false, - "matlab_method": "getUniqueNSTnames", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isNeuronMaskSet", - "mapped_via_alias": false, - "matlab_method": "isNeuronMaskSet", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "isSigRepBinary", - "mapped_via_alias": false, - "matlab_method": "isSigRepBinary", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": true, - "excluded_method": false, - "mapped_member": "merge", - "mapped_via_alias": false, - "matlab_method": "merge", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "copy", - "mapped_via_alias": true, - "matlab_method": "nstColl", - "present_in_compat_surface": true, - "present_in_python_surface": true - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plot", - "mapped_via_alias": false, - "matlab_method": "plot", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotExponentialFit", - "mapped_via_alias": false, - "matlab_method": "plotExponentialFit", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "plotISIHistogram", - "mapped_via_alias": false, - "matlab_method": "plotISIHistogram", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "psth", - "mapped_via_alias": false, - "matlab_method": "psth", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "psthBars", - "mapped_via_alias": false, - "matlab_method": "psthBars", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "psthGLM", - "mapped_via_alias": false, - "matlab_method": "psthGLM", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resample", - "mapped_via_alias": false, - "matlab_method": "resample", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "resetMask", - "mapped_via_alias": false, - "matlab_method": "resetMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "restoreToOriginal", - "mapped_via_alias": false, - "matlab_method": "restoreToOriginal", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMask", - "mapped_via_alias": false, - "matlab_method": "setMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMaxTime", - "mapped_via_alias": false, - "matlab_method": "setMaxTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setMinTime", - "mapped_via_alias": false, - "matlab_method": "setMinTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setNeighbors", - "mapped_via_alias": false, - "matlab_method": "setNeighbors", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setNeuronMask", - "mapped_via_alias": false, - "matlab_method": "setNeuronMask", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "setNeuronMaskFromInd", - "mapped_via_alias": false, - "matlab_method": "setNeuronMaskFromInd", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "shiftTime", - "mapped_via_alias": false, - "matlab_method": "shiftTime", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "ssglm", - "mapped_via_alias": false, - "matlab_method": "ssglm", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toSpikeTrain", - "mapped_via_alias": false, - "matlab_method": "toSpikeTrain", - "present_in_compat_surface": true, - "present_in_python_surface": false - }, - { - "covered_by_behavior_contract": true, - "covered_by_class_contract": false, - "excluded_method": false, - "mapped_member": "toStructure", - "mapped_via_alias": false, - "matlab_method": "toStructure", - "present_in_compat_surface": true, - "present_in_python_surface": false - } - ], - "python": { - "constructor_signature": "(self, trains: 'list[SpikeTrain]' = ) -> None", - "fields": [ - "trains" - ], - "methods": { - "add_single_spike_to_coll": "(self, unit_index: 'int', spike_time_s: 'float', sort_times: 'bool' = True) -> \"'SpikeTrainCollection'\"", - "add_to_coll": "(self, train: 'SpikeTrain') -> \"'SpikeTrainCollection'\"", - "copy": "(self) -> \"'SpikeTrainCollection'\"", - "data_to_matrix": "(self, bin_size_s: 'float', mode: \"Literal['binary', 'count']\" = 'binary') -> 'np.ndarray'", - "get_first_spike_time": "(self) -> 'float'", - "get_last_spike_time": "(self) -> 'float'", - "get_nst": "(self, index: 'int') -> 'SpikeTrain'", - "get_nst_from_name": "(self, name: 'str', first_only: 'bool' = True) -> 'SpikeTrain | list[SpikeTrain]'", - "get_nst_indices_from_name": "(self, name: 'str') -> 'list[int]'", - "get_nst_name_from_ind": "(self, index: 'int') -> 'str'", - "get_nst_names": "(self) -> 'list[str]'", - "get_spike_times": "(self) -> 'list[np.ndarray]'", - "get_unique_nst_names": "(self) -> 'list[str]'", - "merge": "(self, other: \"'SpikeTrainCollection'\") -> \"'SpikeTrainCollection'\"", - "set_max_time": "(self, t_max: 'float') -> \"'SpikeTrainCollection'\"", - "set_min_time": "(self, t_min: 'float') -> \"'SpikeTrainCollection'\"", - "shift_time": "(self, offset_s: 'float') -> \"'SpikeTrainCollection'\"", - "to_binned_matrix": "(self, bin_size_s: 'float', mode: \"Literal['binary', 'count']\" = 'binary') -> 'tuple[np.ndarray, np.ndarray]'", - "to_spike_train": "(self, name: 'str' = 'merged') -> 'SpikeTrain'" - }, - "properties": [ - "n_units" - ] - }, - "status": "verified" - } - ], - "generated_at_utc": "2026-03-04T13:56:22.456047+00:00", - "matlab_root": "/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local", - "python_root": "/private/tmp/nstat_python_exec_next", - "required_classes": [ - "SignalObj", - "Covariate", - "ConfidenceInterval", - "Events", - "History", - "nspikeTrain", - "nstColl", - "CovColl", - "TrialConfig", - "ConfigColl", - "Trial", - "CIF", - "Analysis", - "FitResult", - "FitResSummary", - "DecodingAlgorithms" - ], - "summary": { - "classes_missing_fixtures": [], - "classes_missing_mapping": [], - "classes_with_missing_method_symbols": [], - "required_classes_missing_from_matlab_scan": [], - "total_matlab_classes": 16 - } -} diff --git a/parity/class_equivalence_report.json b/parity/class_equivalence_report.json deleted file mode 100644 index 31499bb6..00000000 --- a/parity/class_equivalence_report.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "generated_at_utc": "2026-03-04T13:56:22.458597+00:00", - "remaining_issues": [], - "summary": { - "gap_classes": 0, - "partial_classes": 0, - "required_class_coverage_ok": true, - "total_classes": 16, - "verified_classes": 16 - }, - "top_critical_methods_tested": { - "Analysis": [ - "fit_glm", - "fit_trial", - "run_analysis_for_neuron", - "run_analysis_for_all_neurons", - "compute_hist_lag" - ], - "CIF": [ - "evaluate", - "linear_predictor", - "log_likelihood", - "simulate_by_thinning", - "simulateCIFByThinningFromLambda" - ], - "ConfidenceInterval": [ - "width", - "contains", - "set_color", - "set_value", - "from_structure" - ], - "ConfigColl": [ - "get_config", - "add_config", - "get_config_names", - "to_structure", - "from_structure" - ], - "CovColl": [ - "design_matrix", - "get_cov", - "set_mask", - "to_structure", - "from_structure" - ], - "Covariate": [ - "get_sub_signal", - "data_to_matrix", - "compute_mean_plus_ci", - "to_structure", - "from_structure" - ], - "DecodingAlgorithms": [ - "compute_spike_rate_cis", - "compute_spike_rate_diff_cis", - "decode_weighted_center", - "decode_state_posterior", - "computeSpikeRateCIs" - ], - "Events": [ - "subset", - "merge", - "shift", - "to_structure", - "from_structure" - ], - "FitResSummary": [ - "best_by_aic", - "best_by_bic", - "diff_aic", - "diff_bic", - "to_structure" - ], - "FitResult": [ - "predict", - "aic", - "bic", - "as_cif_model", - "to_structure" - ], - "History": [ - "design_matrix", - "to_filter", - "set_window", - "to_structure", - "from_structure" - ], - "SignalObj": [ - "copy", - "resample", - "periodogram", - "get_sub_signal", - "merge" - ], - "Trial": [ - "aligned_binned_observation", - "get_design_matrix", - "set_history", - "set_trial_partition", - "to_structure" - ], - "TrialConfig": [ - "get_name", - "set_name", - "to_structure", - "from_structure" - ], - "nspikeTrain": [ - "firing_rate_hz", - "bin_counts", - "binarize", - "shift_time", - "copy" - ], - "nstColl": [ - "to_binned_matrix", - "merge", - "get_first_spike_time", - "get_last_spike_time", - "get_spike_times" - ] - } -} diff --git a/parity/cycle_validation/cycle2.log b/parity/cycle_validation/cycle2.log deleted file mode 100644 index d0292864..00000000 --- a/parity/cycle_validation/cycle2.log +++ /dev/null @@ -1,333 +0,0 @@ -=== Cycle 2 2026-03-04T13:57:40Z === -sssssss................................................................. [ 57%] -...................................................... [100%] -=============================== warnings summary =============================== -../../../opt/anaconda3/lib/python3.12/site-packages/jupyter_client/connect.py:22 - /opt/anaconda3/lib/python3.12/site-packages/jupyter_client/connect.py:22: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs - given by the platformdirs library. To remove this warning and - see the appropriate new directories, set the environment variable - `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. - The use of platformdirs will be the default in `jupyter_core` v6 - from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write - -tests/test_compat_behavior_contracts.py::test_compat_behavior_contracts_execute - /private/tmp/nstat_python_exec_next/src/nstat/compat/matlab/__init__.py:582: UserWarning: nperseg = 256 is greater than input length = 5, using nperseg = 5 - f, t, s = spectrogram(mat[:, 0], fs=fs) - -tests/test_compat_behavior_contracts.py::test_compat_behavior_contracts_execute - /private/tmp/nstat_python_exec_next/src/nstat/compat/matlab/__init__.py:3239: RuntimeWarning: Mean of empty slice - vals.append(float(np.nanmean(arr)) if arr.size else np.nan) - --- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html -Validation image baseline check passed. -Copied baseline images to tmp/pdfs/validation_report/notebook_images (49 png files). -Wrote MATLAB inventory to /private/tmp/nstat_python_exec_next/parity/matlab_api_inventory.json -Wrote Python inventory to /private/tmp/nstat_python_exec_next/parity/python_api_inventory.json -Wrote parity gap report to /private/tmp/nstat_python_exec_next/parity/parity_gap_report.json -Issue summary: high=0, medium=0, low=0 -/private/tmp/nstat_python_exec_next/src/nstat/compat/matlab/__init__.py:582: UserWarning: nperseg = 256 is greater than input length = 11, using nperseg = 11 - f, t, s = spectrogram(mat[:, 0], fs=fs) -/private/tmp/nstat_python_exec_next/src/nstat/compat/matlab/__init__.py:3239: RuntimeWarning: Mean of empty slice - vals.append(float(np.nanmean(arr)) if arr.size else np.nan) -/private/tmp/nstat_python_exec_next/src/nstat/compat/matlab/__init__.py:3252: RuntimeWarning: Mean of empty slice - vals.append(float(np.nanmean(np.abs(arr))) if arr.size else np.nan) -Wrote method probe report to /private/tmp/nstat_python_exec_next/parity/method_probe_report.json -Method probe summary: total=502, attempted=402, successful=329 -Wrote equivalence audit report to /private/tmp/nstat_python_exec_next/parity/function_example_alignment_report.json -Method functional audit: total=502, excluded=21, verified=481, unverified=0, missing=0 -Example alignment audit: topics=30, pending_manual_review=0 -Strict line-port audit: verified=26, partial=0, gap=0 -Wrote numeric drift report: /private/tmp/nstat_python_exec_next/parity/numeric_drift_report.json -Topics: 31 -Failed topics: 0 -Failed metrics: 0 -Required topics coverage: 30/30 -Functional parity gate passed. -Example output spec check passed. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -Generated help pages, TOC, and mapping artifacts. -/private/tmp/nstat_python_exec_next/tools/reports/generate_validation_pdf.py:861: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). - "generated_at_utc": datetime.utcnow().isoformat(timespec="seconds") + "Z", -Generated PDF report: /private/tmp/nstat_python_exec_next/output/pdf/nstat_python_validation_report_20260304_085753.pdf -Machine-readable summary (JSON): /private/tmp/nstat_python_exec_next/output/pdf/nstat_python_validation_report_20260304_085753.json -Machine-readable summary (CSV): /private/tmp/nstat_python_exec_next/output/pdf/nstat_python_validation_report_20260304_085753.csv -MATLAB help root: /Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/helpfiles -Notebook results: total=30 executed=30 exec_failures=0 with_images=30 with_unique_images=30 duplicate_topics=0 -Parity results (gate mode): checked=30 failures=0 -Numeric drift topic results: checked=30 failures=0 -Command checks: total=0 failed=0 -Uniqueness stats: total_instances=37 total_unique=37 cross_topic_reused=0 cross_topic_reuse_ratio=0.000000 -Uniqueness violations: 0 -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -Generated help pages, TOC, and mapping artifacts. -/private/tmp/nstat_python_exec_next/tools/reports/generate_validation_pdf.py:861: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). - "generated_at_utc": datetime.utcnow().isoformat(timespec="seconds") + "Z", -Generated PDF report: /private/tmp/nstat_python_exec_next/output/pdf/nstat_python_validation_report_20260304_085939.pdf -Machine-readable summary (JSON): /private/tmp/nstat_python_exec_next/output/pdf/nstat_python_validation_report_20260304_085939.json -Machine-readable summary (CSV): /private/tmp/nstat_python_exec_next/output/pdf/nstat_python_validation_report_20260304_085939.csv -MATLAB help root: /Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/helpfiles -Notebook results: total=30 executed=30 exec_failures=0 with_images=30 with_unique_images=30 duplicate_topics=0 -Parity results (image mode): checked=0 failures=0 -Numeric drift topic results: checked=30 failures=0 -Command checks: total=0 failed=0 -Uniqueness stats: total_instances=37 total_unique=37 cross_topic_reused=0 cross_topic_reuse_ratio=0.000000 -Uniqueness violations: 0 -Wrote Python PDF: output/pdf/image_mode_parity/python_pages.pdf -Wrote MATLAB PDF: output/pdf/image_mode_parity/matlab_pages.pdf -Wrote pairs JSON: output/pdf/image_mode_parity/pairs.json -Wrote image-mode parity summary: /private/tmp/nstat_python_exec_next/output/pdf/image_mode_parity/summary.json -Compared pages: 30 (python=30 matlab=30) -Failed pages: 0 -Wrote Python performance JSON: output/performance/python_performance_report.json -Wrote Python performance CSV: output/performance/python_performance_report.csv -Benchmarked case-tier pairs: 7 -Skipping regression gating: benchmark environments are not comparable (current={'python': '3.12.4', 'platform': 'macOS-26.3-arm64-arm-64bit', 'numpy': '1.26.4', 'scipy': '1.13.1', 'matplotlib': '3.8.4', 'omp_num_threads': '', 'mkl_num_threads': '', 'openblas_num_threads': '', 'veclib_maximum_threads': ''}, previous={'python': '3.11.14', 'platform': 'Linux-6.14.0-1017-azure-x86_64-with-glibc2.39', 'numpy': '2.4.2', 'scipy': '1.17.1', 'matplotlib': '3.10.8', 'omp_num_threads': '1', 'mkl_num_threads': '1', 'openblas_num_threads': '1', 'veclib_maximum_threads': '1'}) -Wrote performance parity JSON: output/performance/performance_parity_report.json -Wrote performance parity CSV: output/performance/performance_parity_report.csv -Counts: total=7 missing_matlab=2 ratio_fail=0 regression_fail=0 diff --git a/parity/cycle_validation/cycle3.log b/parity/cycle_validation/cycle3.log deleted file mode 100644 index 9887b392..00000000 --- a/parity/cycle_validation/cycle3.log +++ /dev/null @@ -1,333 +0,0 @@ -=== Cycle 3 2026-03-04T14:02:15Z === -sssssss................................................................. [ 57%] -...................................................... [100%] -=============================== warnings summary =============================== -../../../opt/anaconda3/lib/python3.12/site-packages/jupyter_client/connect.py:22 - /opt/anaconda3/lib/python3.12/site-packages/jupyter_client/connect.py:22: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs - given by the platformdirs library. To remove this warning and - see the appropriate new directories, set the environment variable - `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. - The use of platformdirs will be the default in `jupyter_core` v6 - from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write - -tests/test_compat_behavior_contracts.py::test_compat_behavior_contracts_execute - /private/tmp/nstat_python_exec_next/src/nstat/compat/matlab/__init__.py:582: UserWarning: nperseg = 256 is greater than input length = 5, using nperseg = 5 - f, t, s = spectrogram(mat[:, 0], fs=fs) - -tests/test_compat_behavior_contracts.py::test_compat_behavior_contracts_execute - /private/tmp/nstat_python_exec_next/src/nstat/compat/matlab/__init__.py:3239: RuntimeWarning: Mean of empty slice - vals.append(float(np.nanmean(arr)) if arr.size else np.nan) - --- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html -Validation image baseline check passed. -Copied baseline images to tmp/pdfs/validation_report/notebook_images (49 png files). -Wrote MATLAB inventory to /private/tmp/nstat_python_exec_next/parity/matlab_api_inventory.json -Wrote Python inventory to /private/tmp/nstat_python_exec_next/parity/python_api_inventory.json -Wrote parity gap report to /private/tmp/nstat_python_exec_next/parity/parity_gap_report.json -Issue summary: high=0, medium=0, low=0 -/private/tmp/nstat_python_exec_next/src/nstat/compat/matlab/__init__.py:582: UserWarning: nperseg = 256 is greater than input length = 11, using nperseg = 11 - f, t, s = spectrogram(mat[:, 0], fs=fs) -/private/tmp/nstat_python_exec_next/src/nstat/compat/matlab/__init__.py:3239: RuntimeWarning: Mean of empty slice - vals.append(float(np.nanmean(arr)) if arr.size else np.nan) -/private/tmp/nstat_python_exec_next/src/nstat/compat/matlab/__init__.py:3252: RuntimeWarning: Mean of empty slice - vals.append(float(np.nanmean(np.abs(arr))) if arr.size else np.nan) -Wrote method probe report to /private/tmp/nstat_python_exec_next/parity/method_probe_report.json -Method probe summary: total=502, attempted=402, successful=329 -Wrote equivalence audit report to /private/tmp/nstat_python_exec_next/parity/function_example_alignment_report.json -Method functional audit: total=502, excluded=21, verified=481, unverified=0, missing=0 -Example alignment audit: topics=30, pending_manual_review=0 -Strict line-port audit: verified=26, partial=0, gap=0 -Wrote numeric drift report: /private/tmp/nstat_python_exec_next/parity/numeric_drift_report.json -Topics: 31 -Failed topics: 0 -Failed metrics: 0 -Required topics coverage: 30/30 -Functional parity gate passed. -Example output spec check passed. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -Generated help pages, TOC, and mapping artifacts. -/private/tmp/nstat_python_exec_next/tools/reports/generate_validation_pdf.py:861: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). - "generated_at_utc": datetime.utcnow().isoformat(timespec="seconds") + "Z", -Generated PDF report: /private/tmp/nstat_python_exec_next/output/pdf/nstat_python_validation_report_20260304_090228.pdf -Machine-readable summary (JSON): /private/tmp/nstat_python_exec_next/output/pdf/nstat_python_validation_report_20260304_090228.json -Machine-readable summary (CSV): /private/tmp/nstat_python_exec_next/output/pdf/nstat_python_validation_report_20260304_090228.csv -MATLAB help root: /Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/helpfiles -Notebook results: total=30 executed=30 exec_failures=0 with_images=30 with_unique_images=30 duplicate_topics=0 -Parity results (gate mode): checked=30 failures=0 -Numeric drift topic results: checked=30 failures=0 -Command checks: total=0 failed=0 -Uniqueness stats: total_instances=37 total_unique=37 cross_topic_reused=0 cross_topic_reuse_ratio=0.000000 -Uniqueness violations: 0 -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -0.00s - Debugger warning: It seems that frozen modules are being used, which may -0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off -0.00s - to python to disable frozen modules. -0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -Generated help pages, TOC, and mapping artifacts. -/private/tmp/nstat_python_exec_next/tools/reports/generate_validation_pdf.py:861: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). - "generated_at_utc": datetime.utcnow().isoformat(timespec="seconds") + "Z", -Generated PDF report: /private/tmp/nstat_python_exec_next/output/pdf/nstat_python_validation_report_20260304_090412.pdf -Machine-readable summary (JSON): /private/tmp/nstat_python_exec_next/output/pdf/nstat_python_validation_report_20260304_090412.json -Machine-readable summary (CSV): /private/tmp/nstat_python_exec_next/output/pdf/nstat_python_validation_report_20260304_090412.csv -MATLAB help root: /Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/helpfiles -Notebook results: total=30 executed=30 exec_failures=0 with_images=30 with_unique_images=30 duplicate_topics=0 -Parity results (image mode): checked=0 failures=0 -Numeric drift topic results: checked=30 failures=0 -Command checks: total=0 failed=0 -Uniqueness stats: total_instances=37 total_unique=37 cross_topic_reused=0 cross_topic_reuse_ratio=0.000000 -Uniqueness violations: 0 -Wrote Python PDF: output/pdf/image_mode_parity/python_pages.pdf -Wrote MATLAB PDF: output/pdf/image_mode_parity/matlab_pages.pdf -Wrote pairs JSON: output/pdf/image_mode_parity/pairs.json -Wrote image-mode parity summary: /private/tmp/nstat_python_exec_next/output/pdf/image_mode_parity/summary.json -Compared pages: 30 (python=30 matlab=30) -Failed pages: 0 -Wrote Python performance JSON: output/performance/python_performance_report.json -Wrote Python performance CSV: output/performance/python_performance_report.csv -Benchmarked case-tier pairs: 7 -Skipping regression gating: benchmark environments are not comparable (current={'python': '3.12.4', 'platform': 'macOS-26.3-arm64-arm-64bit', 'numpy': '1.26.4', 'scipy': '1.13.1', 'matplotlib': '3.8.4', 'omp_num_threads': '', 'mkl_num_threads': '', 'openblas_num_threads': '', 'veclib_maximum_threads': ''}, previous={'python': '3.11.14', 'platform': 'Linux-6.14.0-1017-azure-x86_64-with-glibc2.39', 'numpy': '2.4.2', 'scipy': '1.17.1', 'matplotlib': '3.10.8', 'omp_num_threads': '1', 'mkl_num_threads': '1', 'openblas_num_threads': '1', 'veclib_maximum_threads': '1'}) -Wrote performance parity JSON: output/performance/performance_parity_report.json -Wrote performance parity CSV: output/performance/performance_parity_report.csv -Counts: total=7 missing_matlab=2 ratio_fail=0 regression_fail=0 diff --git a/tests/test_class_equivalence_artifacts.py b/tests/test_class_equivalence_artifacts.py index e196cea7..6d06cb22 100644 --- a/tests/test_class_equivalence_artifacts.py +++ b/tests/test_class_equivalence_artifacts.py @@ -1,14 +1,68 @@ from __future__ import annotations import json +import os +from argparse import Namespace from pathlib import Path +import pytest -def test_class_equivalence_inventory_exists_and_has_full_class_coverage() -> None: - inventory_path = Path("parity/class_equivalence_inventory.json") - assert inventory_path.exists(), "Missing parity/class_equivalence_inventory.json" +from tools.parity.generate_class_equivalence_inventory import build_inventory - payload = json.loads(inventory_path.read_text(encoding="utf-8")) + +def _resolve_matlab_root(repo_root: Path) -> Path | None: + env_candidates = [ + os.environ.get("NSTAT_MATLAB_ROOT"), + os.environ.get("MATLAB_NSTAT_ROOT"), + ] + for candidate in env_candidates: + if candidate: + path = Path(candidate).expanduser().resolve() + if path.exists(): + return path + + checkout_meta = repo_root / "parity/matlab_reference_checkout.json" + if checkout_meta.exists(): + payload = json.loads(checkout_meta.read_text(encoding="utf-8")) + path = Path(str(payload.get("dest", ""))).expanduser().resolve() + if path.exists(): + return path + + default_path = Path("/tmp/upstream-nstat") + if default_path.exists(): + return default_path + + return None + + +def _build_runtime_artifacts(tmp_path: Path) -> tuple[dict, dict]: + repo_root = Path(__file__).resolve().parents[1] + matlab_root = _resolve_matlab_root(repo_root) + if matlab_root is None: + pytest.skip( + "MATLAB reference checkout not available; set NSTAT_MATLAB_ROOT " + "or provide /tmp/upstream-nstat to generate class-equivalence artifacts." + ) + + args = Namespace( + repo_root=repo_root, + matlab_root=matlab_root, + method_mapping=Path("parity/method_mapping.yaml"), + method_exclusions=Path("parity/method_exclusions.yml"), + class_contracts=Path("parity/class_contracts.yml"), + fixture_spec=Path("parity/class_fixture_export_spec.yml"), + behavior_contracts=[Path("tests/parity/class_behavior_specs.yml"), Path("tests/parity/compat_behavior_specs.yml")], + out_inventory=tmp_path / "class_equivalence_inventory.json", + out_report=tmp_path / "class_equivalence_report.json", + ) + inventory, report = build_inventory(args) + args.out_inventory.write_text(json.dumps(inventory, indent=2, sort_keys=True) + "\n", encoding="utf-8") + args.out_report.write_text(json.dumps(report, indent=2, sort_keys=True) + "\n", encoding="utf-8") + return inventory, report + + +def test_class_equivalence_inventory_runtime_generation_has_full_class_coverage(tmp_path: Path) -> None: + payload, _ = _build_runtime_artifacts(tmp_path) rows = payload.get("class_rows", []) assert len(rows) >= 16 @@ -41,11 +95,8 @@ def test_class_equivalence_inventory_exists_and_has_full_class_coverage() -> Non assert summary.get("classes_missing_mapping", []) == [] -def test_class_equivalence_report_exists_and_is_clean() -> None: - report_path = Path("parity/class_equivalence_report.json") - assert report_path.exists(), "Missing parity/class_equivalence_report.json" - - payload = json.loads(report_path.read_text(encoding="utf-8")) +def test_class_equivalence_report_runtime_generation_is_clean(tmp_path: Path) -> None: + _, payload = _build_runtime_artifacts(tmp_path) summary = payload.get("summary", {}) assert int(summary.get("total_classes", 0)) >= 16 assert int(summary.get("gap_classes", 1)) == 0