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

ValueError: Length of new names must be 1, got 2 #41

Open
asaravia-butler opened this issue Nov 6, 2023 · 0 comments
Open

ValueError: Length of new names must be 1, got 2 #41

asaravia-butler opened this issue Nov 6, 2023 · 0 comments

Comments

@asaravia-butler
Copy link

START OSD-168

pull metrics

2023-11-05 22:42:12.124 | DEBUG | dp_tools.core.files.isa_archive:fetch_isa_files:29 - Extracting ISA Archive to temp directory: /tmp/tmp3l9cofpy
2023-11-05 22:42:12.145 | DEBUG | dp_tools.core.files.isa_archive:fetch_isa_files:29 - Extracting ISA Archive to temp directory: /tmp/tmp15r2btgk
2023-11-05 22:42:12.166 | DEBUG | dp_tools.core.files.isa_archive:fetch_isa_files:29 - Extracting ISA Archive to temp directory: /tmp/tmpb_pzicre
2023-11-05 22:42:12.172 | DEBUG | dp_tools.core.files.isa_archive:fetch_isa_files:29 - Extracting ISA Archive to temp directory: /tmp/tmp4a549v0w
2023-11-05 22:42:12.194 | DEBUG | dp_tools.core.files.isa_archive:fetch_isa_files:29 - Extracting ISA Archive to temp directory: /tmp/tmpyjsd9vkh
2023-11-05 22:42:12.195 | DEBUG | dp_tools.core.files.isa_archive:fetch_isa_files:29 - Extracting ISA Archive to temp directory: /tmp/tmpuxpvi9wa
/workspace/dp_tools/dp_tools/core/utilites/metrics_extractor.py:186: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
self.metrics = self.metrics.append(df_updated_metrics)
Traceback (most recent call last):
File "/workspace/dp_tools/multiQC_output_ASB/PE_datasets_w_raw_trim_align_multiQC/OSD-168/../../../extract_dataset.py", line 36, in
main()
File "/home/gitpod/miniconda3/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/gitpod/miniconda3/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/gitpod/miniconda3/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/gitpod/miniconda3/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/workspace/dp_tools/multiQC_output_ASB/PE_datasets_w_raw_trim_align_multiQC/OSD-168/../../../extract_dataset.py", line 29, in main
metricsExtractor.extract_sections()
File "/workspace/dp_tools/dp_tools/core/utilites/metrics_extractor.py", line 266, in extract_sections
_extract_section_from_json(
File "/workspace/dp_tools/dp_tools/core/utilites/metrics_extractor.py", line 154, in _extract_section_from_json
df_plot_data.index = df_plot_data.index.set_names(
File "/home/gitpod/miniconda3/lib/python3.10/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
File "/home/gitpod/miniconda3/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 1848, in set_names
idx._set_names(names, level=level)
File "/home/gitpod/miniconda3/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 1731, in _set_names
raise ValueError(f"Length of new names must be 1, got {len(values)}")
ValueError: Length of new names must be 1, got 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant