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

🎨 Just improving logic structure. #6351

Merged
merged 7 commits into from
Aug 3, 2024

Conversation

arafune
Copy link
Contributor

@arafune arafune commented Aug 1, 2024

While I'm not so sure, whether you can accept such PR or not.

In the meanwhile, I'm trying to fix #6327. I sent the PR #6333.
However, at that moment, I didn't figure out the correct way of testing. I realized the previous PR is far from robustness. Thus I feel I need analyze the code firstly and then think to improve the code to workaround it.

During the analysis of the code, I have felt the original code is not somehow elegant.

In the original

if not isinstance(....):
A
else:
B

But I believe

if isinstance(...):
B
else:
A

is much simpler and easy to read.

This PR is just change to the above. No essential change.
I'm afraid the original authors' feel such change is needless. But I believe for further analysis by many contributors such revision would be works good.

Could you please think about acceptance?

@hoxbro hoxbro added the type: enhancement Minor feature or improvement to an existing feature label Aug 3, 2024
@hoxbro
Copy link
Member

hoxbro commented Aug 3, 2024

Thanks for the PR.

Copy link

codecov bot commented Aug 3, 2024

Codecov Report

Attention: Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.48%. Comparing base (a28189d) to head (f67d532).

Files Patch % Lines
holoviews/core/data/xarray.py 95.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6351   +/-   ##
=======================================
  Coverage   88.48%   88.48%           
=======================================
  Files         323      323           
  Lines       68162    68162           
=======================================
  Hits        60313    60313           
  Misses       7849     7849           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hoxbro hoxbro enabled auto-merge (squash) August 3, 2024 13:32
@hoxbro hoxbro merged commit 6adedbe into holoviz:main Aug 3, 2024
13 of 14 checks passed
@arafune arafune deleted the toward_workaround_6327 branch August 4, 2024 00:36
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(Possibly) wrong way for determination about X- and Y- axis in hv.Image
2 participants