-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feature/streaming #30
Conversation
pya2l/parser.py
Outdated
@@ -110,12 +142,37 @@ def tree_from_json(self, json_data: bytes, allow_partial: bool = False) -> RootN | |||
""" | |||
if self._logger: | |||
self._logger.info('start parsing JSON A2L') | |||
response = self._client.GetTreeFromJSON(TreeFromJSONRequest(json=json_data, allow_partial=allow_partial)) | |||
|
|||
# Générateur de requêtes : on envoie les options `allow_partial` dans le premier chunk. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change the comments to english?
pya2l/parser.py
Outdated
|
||
for response in self._client.GetTreeFromJSON(request_generator()): | ||
if response.error: | ||
if self._logger: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be changed into a single if
statement and a and
condition probably
@pytest.mark.parametrize('module', [pytest.param(['COMPU_METHOD', 0, 'COEFFS_LINEAR'], id='COMPU_METHOD')], indirect=True) | ||
@pytest.mark.parametrize('s', ['COEFFS_LINEAR {float} {float}']) | ||
@pytest.mark.parametrize('float_string, float_value', floats) | ||
def test_coeffs_linear(module, s, float_string, float_value): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any update of the shared libraries here, I think you have to merge the latest release in your branch.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #30 +/- ##
============================================
- Coverage 94.15% 70.13% -24.02%
============================================
Files 17 17
Lines 2496 2588 +92
============================================
- Hits 2350 1815 -535
- Misses 146 773 +627 ☔ View full report in Codecov by Sentry. |
No description provided.