Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
  • Sign in
pygwinc
pygwinc
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 5
    • Merge Requests 5
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Packages
    • Packages
    • Container Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gwinc
  • pygwincpygwinc
  • Issues
  • #29

Closed
Open
Opened Jan 30, 2019 by Brian O'Reilly@brian.oreilly
  • Report abuse
  • New issue
Report abuse New issue

Convenience Function fails

>> python3
Python 3.7.1 (default, Oct 21 2018, 05:48:29) 
[Clang 9.1.0 (clang-902.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gwinc
>>> import numpy as np
>>> freq = np.logspace(1, 3, 1000)
>>> ifo = gwinc.load_ifo('aLIGO')
>>> ifo = gwinc.precompIFO(freq, ifo)
>>> noises = gwinc.noise_calc(freq, ifo)
>>> score, data, ifo = gwinc.gwinc(freq, ifo, plot=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/irish/GWINC/pygwinc/gwinc/gwinc.py", line 158, in gwinc
    (2 * ifo.Materials.MassThickness) * ifo.Optics.ITM.SubstrateAbsorption])
AttributeError: 'Struct' object has no attribute 'SubstrateAbsorption'
>>> myplot=gwinc.plot_noise(ifo, noises)
>>> myplot.show()
>>> 
Edited Jan 30, 2019 by Brian O'Reilly

Related issues

  • Discussion
  • Designs
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: gwinc/pygwinc#29