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

Feature/streaming #30

Merged
merged 14 commits into from
Jan 29, 2025
Merged

Feature/streaming #30

merged 14 commits into from
Jan 29, 2025

Conversation

iromzy
Copy link

@iromzy iromzy commented Jan 27, 2025

No description provided.

@iromzy iromzy changed the base branch from master to develop January 27, 2025 14:31
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.
Copy link
Owner

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:
Copy link
Owner

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):
Copy link
Owner

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.

Copy link

codecov bot commented Jan 28, 2025

Codecov Report

Attention: Patch coverage is 19.76744% with 69 lines in your changes missing coverage. Please review.

Project coverage is 70.13%. Comparing base (3785b74) to head (e56cd06).
Report is 24 commits behind head on develop.

Files with missing lines Patch % Lines
pya2l/parser.py 12.82% 68 Missing ⚠️
pya2l/parser_test.py 87.50% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@Sauci Sauci merged commit ca51dc3 into Sauci:develop Jan 29, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants