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

Remove old seed deprecation warning #258

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

dafeda
Copy link
Contributor

@dafeda dafeda commented Nov 19, 2024

No description provided.

@dafeda dafeda self-assigned this Nov 19, 2024
@dafeda dafeda requested a review from tralsos November 19, 2024 05:03
Copy link
Collaborator

@tralsos tralsos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's a warning that has been there for a while. Perhaps the option to use "seeds" instead of "rms_seeds" should also be removed ? (line 240) This namechange came when we also introduced to possibility to set seed value for fmudesign, and it was chosen to use "rms_seeds" and "dist_seed" for the two different types of seeds.

@dafeda dafeda force-pushed the remove-old-deprecation-warning branch from eb4d32c to 28b220a Compare November 19, 2024 08:14
@dafeda
Copy link
Contributor Author

dafeda commented Nov 19, 2024

Yes, it's a warning that has been there for a while. Perhaps the option to use "seeds" instead of "rms_seeds" should also be removed ? (line 240) This namechange came when we also introduced to possibility to set seed value for fmudesign, and it was chosen to use "rms_seeds" and "dist_seed" for the two different types of seeds.

Make sense to remove the if statement dealing with "seeds" I think, thanks.

Copy link
Collaborator

@tralsos tralsos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how this is normally done. But I expect some project still have a general_input sheet where they have "seeds" instead of "rms_seeds". Would it be better if "seeds" is found in general_input sheet, to let it fail with the message that they should change this to "rms_seeds"?

@dafeda dafeda force-pushed the remove-old-deprecation-warning branch from 28b220a to 9149180 Compare November 20, 2024 08:46
@dafeda
Copy link
Contributor Author

dafeda commented Nov 20, 2024

Not sure how this is normally done. But I expect some project still have a general_input sheet where they have "seeds" instead of "rms_seeds". Would it be better if "seeds" is found in general_input sheet, to let it fail with the message that they should change this to "rms_seeds"?

I think that makes sense and have added this:

    elif "seeds" in generalinput[1]:
        raise ValueError(
            "The 'seeds' parameter has been deprecated and is no longer supported. "
            "Use 'rms_seeds' instead"
        )
`` `

Thanks.

@dafeda dafeda merged commit 5880b9f into equinor:main Nov 20, 2024
16 checks passed
@dafeda dafeda deleted the remove-old-deprecation-warning branch November 20, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants