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

Mr 127 requiredsvvoltage #133

Closed
wants to merge 9 commits into from
Closed

Mr 127 requiredsvvoltage #133

wants to merge 9 commits into from

Conversation

mr0321
Copy link
Contributor

@mr0321 mr0321 commented Jul 24, 2024

Hack for #127 copy svVoltages for missing boundary nodes from igms

Copy link
Member

Choose a reason for hiding this comment

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

Not related to this issue

Copy link
Member

Choose a reason for hiding this comment

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

Not related to this issue

from emf.task_generator.task_generator import update_task_status
from emf.common.logging.custom_logger import get_elk_logging_handler

logger = logging.getLogger(__name__)
parse_app_properties(caller_globals=globals(), path=config.paths.cgm_worker.merger)


def set_brell_lines_to_zero_in_models(opdm_models, magic_brell_lines: dict = None, profile_to_change: str = "SSH"):
Copy link
Member

Choose a reason for hiding this comment

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

Not related to this issue

return first_row


def copy_topological_nodes_over(cgm_sv_data, original_data: list | pandas.DataFrame):
Copy link
Member

Choose a reason for hiding this comment

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

Unclear what is happening here. CN has two terminals, one has EI and other has ACLineSegment, we need dataframe with the other end voltage, eg other end TP node

already_existing = cgm_sv_data[(cgm_sv_data['KEY'] == 'SvVoltage.TopologicalNode') &
(cgm_sv_data['VALUE'].isin(in_several_igms.index))]
# Exclude the existing nodes
in_several_igms = in_several_igms[~in_several_igms.index.isin(already_existing['VALUE'])]
Copy link
Member

Choose a reason for hiding this comment

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

Please do not use isin, it is known to be slow, there is function in triplet, filter data frame by data frame, if needed

@mr0321 mr0321 marked this pull request as draft July 30, 2024 04:56
@mr0321
Copy link
Contributor Author

mr0321 commented Jul 30, 2024

Was intended to be illustration only

@mr0321 mr0321 closed this Sep 11, 2024
@mr0321 mr0321 deleted the mr-127-requiredsvvoltage branch September 11, 2024 09:16
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.

3 participants