Skip to content

feat: AvgMol Node#2328

Draft
rprospero wants to merge 3 commits intodevelop2from
AvgMolNode
Draft

feat: AvgMol Node#2328
rprospero wants to merge 3 commits intodevelop2from
AvgMolNode

Conversation

@rprospero
Copy link
Contributor

This PR ports the AvgMol module into a new node. I've done my best to make the transition as direct as possible, while trying to be idiomatic to the new node setup.

@rprospero rprospero changed the base branch from develop to develop2 March 2, 2026 14:57
@RobBuchananCompPhys RobBuchananCompPhys self-requested a review March 4, 2026 09:38
Copy link
Contributor

@RobBuchananCompPhys RobBuchananCompPhys left a comment

Choose a reason for hiding this comment

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

Looking good, a couple of suggestions for cosmetic changes.

Comment on lines +9 to +14
addInput("Configuration", "Set target configuration for the module", targetConfiguration_);

addOption("Site", "Target site about which to calculate average species geometry", targetSite_);
addOption("ExportCoordinates", "Whether to save average coordinates to disk", exportFileAndFormat_);

addPointerOutput<const Species>("Average Species", "The species with the average coordinates", averageSpecies_);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
addInput("Configuration", "Set target configuration for the module", targetConfiguration_);
addOption("Site", "Target site about which to calculate average species geometry", targetSite_);
addOption("ExportCoordinates", "Whether to save average coordinates to disk", exportFileAndFormat_);
addPointerOutput<const Species>("Average Species", "The species with the average coordinates", averageSpecies_);
// Inputs
addInput("Configuration", "Set target configuration for the module", targetConfiguration_);
// Outputs
addPointerOutput<const Species>("Average Species", "The species with the average coordinates", averageSpecies_);
// Options
addOption("Site", "Target site about which to calculate average species geometry", targetSite_);
addOption("ExportCoordinates", "Whether to save average coordinates to disk", exportFileAndFormat_);

I believe we are currently structuring this in the following way:

SpeciesExportFileFormat &SpeciesExportFileFormat::operator=(const SpeciesExportFileFormat &other)
{
formats_=other.formats_;

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

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