Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dask>=2022.4.2 breaks calculate_measurement_pair_metrics #737

Open
ddobie opened this issue Aug 7, 2024 · 0 comments
Open

dask>=2022.4.2 breaks calculate_measurement_pair_metrics #737

ddobie opened this issue Aug 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ddobie
Copy link
Contributor

ddobie commented Aug 7, 2024

From ./manage.py test vast_pipeline.tests.test_runpipeline.RunPipelineTest.test_check_run:

2024-08-07 23:48:34,182 runpipeline ERROR Processing error:
Too many levels: Index has only 1 level, not 2
Traceback (most recent call last):
  File "/import/ada2/ddob1600/vast-pipeline/vast_pipeline/management/commands/runpipeline.py", line 340, in run_pipe
    pipeline.process_pipeline(p_run)
  File "/import/ada2/ddob1600/vast-pipeline/vast_pipeline/pipeline/main.py", line 293, in process_pipeline
    nr_sources, nr_new_sources = final_operations(
  File "/import/ada2/ddob1600/vast-pipeline/vast_pipeline/pipeline/finalise.py", line 166, in final_operations
    measurement_pairs_df = calculate_measurement_pair_metrics(sources_df)
  File "/import/ada2/ddob1600/vast-pipeline/vast_pipeline/pipeline/pairs.py", line 116, in calculate_measurement_pair_metrics
    measurement_combinations = measurement_combinations.reset_index(
  File "/import/ada2/ddob1600/.conda/envs/vast-pipeline-dev-py3.9/lib/python3.9/site-packages/pandas/util/_decorators.py", line 331, in wrapper
    return func(*args, **kwargs)
  File "/import/ada2/ddob1600/.conda/envs/vast-pipeline-dev-py3.9/lib/python3.9/site-packages/pandas/core/frame.py", line 6314, in reset_index
    level = [self.index._get_level_number(lev) for lev in level]
  File "/import/ada2/ddob1600/.conda/envs/vast-pipeline-dev-py3.9/lib/python3.9/site-packages/pandas/core/frame.py", line 6314, in <listcomp>
    level = [self.index._get_level_number(lev) for lev in level]
  File "/import/ada2/ddob1600/.conda/envs/vast-pipeline-dev-py3.9/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 2055, in _get_level_number
    self._validate_index_level(level)
  File "/import/ada2/ddob1600/.conda/envs/vast-pipeline-dev-py3.9/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 2046, in _validate_index_level
    raise IndexError(
IndexError: Too many levels: Index has only 1 level, not 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To do
Status: To do
Development

No branches or pull requests

1 participant