-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from douglase/spie2018
simpler example
- Loading branch information
Showing
23 changed files
with
140 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,57 @@ | ||
print('generating graphviz diagram with graphviz for python') | ||
from graphviz import Digraph | ||
import yaml | ||
|
||
import numpy as np | ||
import doorstop | ||
import textwrap | ||
np.random.seed(0) | ||
tree=doorstop.core.build() | ||
|
||
dot = Digraph(comment='The Requirements', format='png') | ||
dot.body.extend([ 'rankdir=LR','size="200,50"']) #, | ||
dot.body.extend([ 'rankdir=LR','ratio=.65','size="75,50"','rank=min', "dpi = 25"]) #, | ||
dot.node_attr.update(color='lightblue2', style='filled',fontsize="55") | ||
|
||
show_orphans=True | ||
use_id=True | ||
use_short_names=True | ||
colors=['black','blue','chocolate','crimson', 'orchid', 'green','darkgreen','khaki','violet','purple','orange','lightblue2',] | ||
n_colors = len(colors) | ||
|
||
level_colors = ['gray95','gray88','gray79','green',] | ||
|
||
for document in tree.documents: | ||
for item in document.items: | ||
for doc_n, document in enumerate(tree.documents): | ||
|
||
#skip level 3: | ||
if doc_n >3: | ||
continue | ||
for i,item in enumerate(document.items): | ||
content="" | ||
if use_id: | ||
content=item.uid.value+"\n" | ||
if use_short_names: | ||
content=item.uid.value+"\n"+str(item.data["short name"]) | ||
content=content+str(item.data["short name"]) | ||
else: | ||
content=content+item.uid.value+"\n"+textwrap.fill(item.text,35) | ||
#skip items that have no back links, unless they are the first level | ||
if show_orphans: | ||
dot.node(item.uid.value,content,color=level_colors[doc_n])#item.text) | ||
elif (len(item.links) >0) | (doc_n ==0): | ||
dot.node(item.uid.value,content,color=level_colors[doc_n])#item.text) | ||
else: | ||
content=item.uid.value+"\n"+textwrap.fill(item.text,35) | ||
dot.node(item.uid.value,content)#item.text) | ||
print("skipping: "+item.uid.value) | ||
continue | ||
for link in item.links: | ||
dot.edge(link.value,item.uid.value)#, constraint='false') | ||
|
||
|
||
dot.render()#save("dot.svg") | ||
width=str(np.random.rand()*5+5) | ||
if link.value[:6] ==item.uid.value[:6]: | ||
style='dashed' | ||
else: | ||
style='solid' | ||
dot.edge(link.value,item.uid.value, | ||
color=colors[i % n_colors], | ||
style=style, | ||
penwidth=width)#, constraint='false') | ||
|
||
dot.body.append('fontsize=20') | ||
dot.render('Digraph_gv')#save("dot.svg") | ||
|
||
print('graphviz rendered') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,20 @@ | ||
1 Mission-01 | ||
============ | ||
User requirement 1 Mission-01 | ||
============================= | ||
|
||
Demonstrate Coronagraph | ||
|
||
The mission shall demonstrate high contrast imaging via an internal | ||
coronagraph in space | ||
Mission level requirement A | ||
|
||
*Child links:* [SCI-03](L2.markdown#1-sci-03-) | ||
|
||
1 Mission-02 | ||
============ | ||
|
||
Circumstellar Environments | ||
Constraints 1 Mission-02 | ||
======================== | ||
|
||
The mission shall characterize the circumstellar environment of a nearby | ||
star | ||
Mission level requirement B | ||
|
||
*Child links:* [SCI-01](L2.markdown#1-sci-01-) , [SCI-02](L2.markdown#1-sci-02-) | ||
|
||
1 Mission-03 | ||
============ | ||
User requirement 1 Mission-03 | ||
============================= | ||
|
||
Sounding Rocket | ||
Mission level requirement C | ||
|
||
The mission shall fly on a suborbital sounding rocket | ||
|
||
*Child links:* [SCI-03](L2.markdown#1-sci-03-) , [Tech-5](L3.markdown#1-tech-5-) | ||
*Child links:* [SCI-03](L2.markdown#1-sci-03-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,27 @@ | ||
1 SCI-01 | ||
======== | ||
Science requirement I 1 SCI-01 | ||
============================== | ||
|
||
Inner system | ||
|
||
The mission shall observe the inner Epsilon Eridani system from two to | ||
20 astronomical units in visible light | ||
Mission shall be able to perform example measurement one | ||
|
||
*Parent links:* [Mission-02](L1.markdown#1-mission-02-) | ||
|
||
*Child links:* [Tech-1](L3.markdown#1-tech-1-) , [Tech-2](L3.markdown#1-tech-2-) , | ||
[Tech-3](L3.markdown#1-tech-3-) | ||
|
||
1 SCI-02 | ||
======== | ||
*Child links:* [Tech-1](L3.markdown#1-tech-1-) | ||
|
||
Debris disk sensitivity | ||
Science requirement II 1 SCI-02 | ||
=============================== | ||
|
||
The mission shall observe the inner Epsilon Eridani system from for | ||
sufficient time to measure a 2\*10\^(-4) L\_star debris disk at 3AU. See | ||
Backman et al 2009, http://adsabs.harvard.edu/abs/2009ApJ...690.1522B | ||
Mission shall be able to perform example measurement two | ||
|
||
*Parent links:* [Mission-02](L1.markdown#1-mission-02-) | ||
|
||
*Child links:* [Tech-4](L3.markdown#1-tech-4-) , [Tech-5](L3.markdown#1-tech-5-) | ||
|
||
1 SCI-03 | ||
======== | ||
*Child links:* [Tech-2](L3.markdown#1-tech-2-) , [Tech-3](L3.markdown#1-tech-3-) | ||
|
||
Nulling Coronagraph in Space | ||
Science requirement III 1 SCI-03 | ||
================================ | ||
|
||
The mission shall demonstrate operation of a visible nulling coronagraph | ||
in space | ||
Mission shall be able to perform example measurement three | ||
|
||
*Parent links:* [Mission-01](L1.markdown#1-mission-01-) , | ||
[Mission-03](L1.markdown#1-mission-03-) | ||
|
||
*Child links:* [Tech-4](L3.markdown#1-tech-4-) | ||
*Child links:* [Tech-2](L3.markdown#1-tech-2-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,20 @@ | ||
1 Tech-1 | ||
======== | ||
Instrument Alpha 1 Tech-1 | ||
========================= | ||
|
||
Science bandpass | ||
|
||
The science bandpass shall extend from 600-750 nm | ||
Technical instrument requirement Alpha | ||
|
||
*Parent links:* [SCI-01](L2.markdown#1-sci-01-) | ||
|
||
1 Tech-2 | ||
======== | ||
|
||
IWA | ||
|
||
The coronagraph inner working shall be less than 0.7". | ||
|
||
*Parent links:* [SCI-01](L2.markdown#1-sci-01-) | ||
|
||
1 Tech-3 | ||
======== | ||
|
||
OWA | ||
Instrument Beta 1 Tech-2 | ||
======================== | ||
|
||
The coronagraph outer working shall be greater than 7" | ||
|
||
*Parent links:* [SCI-01](L2.markdown#1-sci-01-) | ||
|
||
1 Tech-4 | ||
======== | ||
|
||
Pointing Stability | ||
|
||
The payload shall provide pointing within 10 milliarcseconds. See | ||
Mendillo et al 2012, http://dx.doi.org/10.1364/AO.51.007069. | ||
Technical instrument requirement Beta | ||
|
||
*Parent links:* [SCI-02](L2.markdown#1-sci-02-) , [SCI-03](L2.markdown#1-sci-03-) | ||
|
||
1 Tech-5 | ||
======== | ||
|
||
Telescope aperture | ||
Instrument Gamma 1 Tech-3 | ||
========================= | ||
|
||
The telescope aperture shall be less than 0.5 meters | ||
Technical instrument requirement Gamma | ||
|
||
*Parent links:* [Mission-03](L1.markdown#1-mission-03-) , | ||
[SCI-02](L2.markdown#1-sci-02-) | ||
*Parent links:* [SCI-02](L2.markdown#1-sci-02-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
uid,level,text,links,short name,additional notes,mission success criteria,rationale,reviewed | ||
Mission-01,1,The mission shall demonstrate high contrast imaging via an internal coronagraph in space,,Demonstrate Coronagraph,,,, | ||
Mission-02,1,The mission shall characterize the circumstellar environment of a nearby star,,Circumstellar Environments,,,, | ||
Mission-03,1,The mission shall fly on a suborbital sounding rocket,,Sounding Rocket,,,, | ||
uid,level,text,links,short name,additional notes,mission success criteria,rationale,reviewed,verification plan | ||
Mission-01,1,Mission level requirement A,,User requirement ,,,,, | ||
Mission-02,1,Mission level requirement B,,Constraints,,,,, | ||
Mission-03,1,Mission level requirement C,,User requirement ,,,,, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.