Skip to content

Conversation

@vijayabhaskar78
Copy link
Contributor

When I have updated the repository to new json requirements it has added python 2 code and I have used 2to3 tool to convert the generated repository to python 3

@codecov
Copy link

codecov bot commented Feb 2, 2025

Codecov Report

Attention: Patch coverage is 28.94737% with 459 lines in your changes missing coverage. Please review.

Project coverage is 31.95%. Comparing base (9e34d58) to head (65afe33).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
elexonpy/api/demand_api.py 27.50% 87 Missing ⚠️
elexonpy/api/bid_offer_acceptances_api.py 11.45% 85 Missing ⚠️
elexonpy/api/remit_api.py 20.20% 79 Missing ⚠️
elexonpy/api/margin_forecast_api.py 25.45% 41 Missing ⚠️
elexonpy/api/generation_api.py 32.20% 40 Missing ⚠️
elexonpy/api/indicated_forecast_api.py 20.58% 27 Missing ⚠️
elexonpy/api/balancing_mechanism_dynamic_api.py 36.00% 16 Missing ⚠️
elexonpy/api/reference_api.py 52.00% 12 Missing ⚠️
elexonpy/api/balancing_mechanism_physical_api.py 33.33% 10 Missing ⚠️
elexonpy/api/bid_offer_api.py 35.71% 9 Missing ⚠️
... and 12 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
+ Coverage   31.89%   31.95%   +0.05%     
==========================================
  Files         311      311              
  Lines       33703    37984    +4281     
==========================================
+ Hits        10750    12136    +1386     
- Misses      22953    25848    +2895     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vijayabhaskar78
Copy link
Contributor Author

closes #58

import elexonpy
from elexonpy.rest import ApiException
import swagger_client
from swagger_client.rest import ApiException
Copy link
Contributor

Choose a reason for hiding this comment

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

can you change back to elexonpy please. This might be an option when you generatte the code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK sir I will change it, if you don't mind I have sent you a LinkedIn message please have a look at it.

@vijayabhaskar78
Copy link
Contributor Author

Done sir but I did not get why the codecov/patch is failing it you don't mind please explain me sir and please view my Linkedin message which I have sent sir

return (return_data)
else:
return (return_data, response_data.status,
response_data.getheaders())

def format_to_dataframe(self, query_params):
Copy link
Contributor

Choose a reason for hiding this comment

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

could you add this back in please?

Copy link
Contributor

Choose a reason for hiding this comment

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

could you add this back in, in the same format please

@vijayabhaskar78
Copy link
Contributor Author

Sir, I have resolved the issues as per your suggestions.

@vijayabhaskar78
Copy link
Contributor Author

@peterdudfield Sir please review this PR


# **balancing_physical_get**
> InsightsApiModelsResponsesResponseWithMetadata1InsightsApiModelsResponsesBalancingPhysicalPhysicalData balancing_physical_get(bm_unit, _from, to, settlement_period_from=settlement_period_from, settlement_period_to=settlement_period_to, dataset=dataset, format=format)
# **get_balancing_physical_bmunit_bmunit_from_from_to_to**
Copy link
Contributor

Choose a reason for hiding this comment

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

do you know why the functions have changed names? They seem less readable now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They have been updated by 2to3 tool sir as the functions names will be changed in it like the traces of python 2 will be removed

Copy link
Contributor

Choose a reason for hiding this comment

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

can this be changed back?

@peterdudfield
Copy link
Contributor

@peterdudfield Sir please review this PR

Thanks, ive left 2 comment. Can you also confirm the examples in the readme and in the example folder still work. Thanks

@vijayabhaskar78
Copy link
Contributor Author

@peterdudfield I sincerely apologize for the delay. I've been searching for ways to improve the function names, wanting to make sure we get them just right. Unfortunately, we can’t revert them back to the old ones, but I truly appreciate your patience and understanding.

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