Skip to content
Snippets Groups Projects
Commit 5ea8d330 authored by Erin (Josh) Rigler's avatar Erin (Josh) Rigler
Browse files

Changes to AdjustedMatrix class:

- explicitly setting inchannels and outchannels is now optional,
  and default values are pulled from the input stream argument
  of AdjustedMatrix.process() method
- *if* non-F inchannels and outchannels are specified, they are
  checked for dimensional consistency with each other, and with
  self.matrix
- returns dimensionally consistent array of NaNs if there is any
  mismatch in inchannels, outchannels, or self.matrix
- raises exception only if all inchannels are not provided in
  the input stream
- requires F be specified in both inchannels and outchannels, or
  else it returns NaNs for F

This sounds a little complicated, and it is, but it was necessary
in order to allow the AdjustedMatrix class to adjust both vector
values (e.g., HEZ->XYZ), as well as scalar F values (e.g., pier
corrections). An argument could be made to separate these, but I
am not willing to do so at the moment.
parent e2c07570
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment