Skip to content

get_intensity method is broken #15

@brandonaltieri1

Description

@brandonaltieri1

This method does not seem to work - it yields the exception attached below. I believe it should instead be:

def get_intensity(self) -> float:
  """Get the current intensity value in volts.
  
  :raises: ProberException if an error occured.
  :returns: The intensity value.
  """
  
  self.comm.send("siph:get_intensity")
  resp = Response.check_resp(self.comm.read_line())
  # prober returns the light intensity shifted by one decimal place to the right
  return float(resp.message()) * 1e-1

I am planning on using this library extensively in the future - are there any plans to add unit tests to this repo? This seems like a bug that could be caught easily enough by a simple unit test.

Thanks!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions