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

Method to rename curves according to some mapping #213

Open
kwinkunks opened this issue Mar 11, 2022 · 2 comments
Open

Method to rename curves according to some mapping #213

kwinkunks opened this issue Mar 11, 2022 · 2 comments

Comments

@kwinkunks
Copy link
Member

From a user:

I have a well with very ugly curve names. Is there a method in welly (with the alias dictionary like for the quality tests, probably?) to rename them to names I specified?

Possible to use an alias dict in reverse - rename aliased names to the key? Seems risky.

@kwinkunks
Copy link
Member Author

My comment in Slack:

I think we could definitely have something like well.rename_curves(mapping), a la pandas

@GeoGerrit
Copy link

Sharing a word of caution; renaming curves based on curve name only can go wrong in a few occasions. The best know example is C1. Mudgas data or Caliper X?
Solving this in the correct manner you need [unit] and even [file_type].
C1 [ppm] --> C1 mudgas
C1[mm] --> Caliper
C1[mm] in file containing only mudgas data --> wrong unit? most likely C1 mudgas

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

No branches or pull requests

2 participants