bp / bp/ResSimpy

Completions: Allow string input for date format

Open
#212 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
23
Forks
8
Avg merge
16d 4h
Merged PRs (30d)
1

Description

The `init` method for the `Completion` class should be converted to allow string input for the `date_format` parameter.

- The code should automatically convert this string to the correct Enum entry when setting the attribute value.
- If no date format has been provided, the code should default to the Nexus default.
- The docstring should also be updated to add this parameter in, and specify that either string or enums are allowed.
- New tests / test cases should be added to test this new functionality.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.