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

all exported values are published #73

Open
nadiavp opened this issue Jun 1, 2021 · 2 comments
Open

all exported values are published #73

nadiavp opened this issue Jun 1, 2021 · 2 comments

Comments

@nadiavp
Copy link
Collaborator

nadiavp commented Jun 1, 2021

I would like a way to export lots of values without publishing all of them when running with HELICS.
I see that you have the start of that ability in the helics_interface.py with an input argument to registering subscriptions, but there is no connection from that to the tomls which define the setup of the run.

Please let me know if I can help with this.

@AadilLatif
Copy link
Collaborator

Can you please paste code ar line number where you see the issue ?

@nadiavp
Copy link
Collaborator Author

nadiavp commented Jun 11, 2021

I'm not sure how to give this function a pubs input so that it doesn't just publish all the exported values. In the initialization of helics_interface, it only registers pubs and subs if default, without a pubs input, so it always uses the export toml and within the toml there's no toggle to publish as a HELICS publication or not.

Line 179 of helics_interface.py from the Master branch:

<!--StartFragment-->    def _registerFederatePublications(self, pubs):
                if pubs is not None:
                    publicationList= pubs
                else:
                    self._file_reader = pyExportReader(
                        os.path.join(
                            self._system_paths ["ExportLists"],
                            "ExportMode-byClass.toml",
                        ),
                    )

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

No branches or pull requests

2 participants