Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
I
IIRrational
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Lee McCuller
  • IIRrational
  • Issues
  • #7

Closed
Open
Opened Jan 16, 2020 by Vladimir Bossilkov@vladimir.bossilkov

Issues in IIRrational/LIGO/foton.py

I have done some successful testing with this file, but it required some fixes to be able to push zpk arrays to foton correctly. I will reference the current master branch.

Firstly, ZPKz_add function:

  • https://git.ligo.org/lee-mcculler/iirrational/blob/master/IIRrational/LIGO/foton.py#L522
    • should say zero_list.append(matlab_complex_str(zero))
    • is a fairly clear copy paste bug
  • https://git.ligo.org/lee-mcculler/iirrational/blob/master/IIRrational/LIGO/foton.py#L510
    • should say return ("{0}".format(np.real(num)))
    • this gets around pushing numbers with the complex part of the number still appended (eg 101 + j0)

Same bugs used to apply (in older versions) to the function ZPK_add, but I see you have moved functionality to the 'IIRrational/LIGO/conversion.py' , which I have not tested. I can clearly see a similar bug here:

  • https://git.ligo.org/lee-mcculler/iirrational/blob/master/IIRrational/LIGO/conversion.py#L108
    • should say return ("{0}".format(np.real(num)))
  • The first bug I noted above is present in the commented out code, but it is clear that it isn't present in the rest of the functions
Edited Jan 16, 2020 by Vladimir Bossilkov
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: lee-mcculler/iirrational#7