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

Get values from invalid signals #990

Open
pergustav opened this issue Mar 5, 2024 · 0 comments
Open

Get values from invalid signals #990

pergustav opened this issue Mar 5, 2024 · 0 comments

Comments

@pergustav
Copy link

Hi,

Using assammdf 7.4.1.

I have signal that I want to read, but the sample values don't match the result from vSignalyzer.
I tried to get the signal over the extract_bus_logging function.

The get function has a deprecated variable, ignore_invalid_signals. When adding it back (with an ugly hack, please see below), I retrieve the values as in vSignalyzer.

Setting the parameter raw=True, didn't make any difference.

My goal would be to get invalid signal values, thefore some questions:

  • Is there a reason why the function is deprecated and will be removed?
  • Is there some other way to ignore to remove invalid signals?
  • On which criteria is a signal invalidated?

`

    if database_files.get("CAN", None):
        out = self._extract_can_logging(
            out,
            database_files["CAN"],
            ignore_value2text_conversion,
            prefix,
            progress=progress,
            ignore_invalid_signals=ignore_invalid_signals
        )

...

def _extract_can_logging(
        self,
        output_file: MDF,
        dbc_files: Iterable[DbcFileType],
        ignore_value2text_conversion: bool = True,
        prefix: str = "",
        progress=None,
        ignore_invalid_signals=False
) -> MDF:

...

    if ignore_invalid_signals:
        if to_keep != all_channels:
            tmp = out.filter(to_keep, out.version)
            out.close()
            out = tmp

`

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

1 participant