示例#1
0
import BOM

## Add ADNI to include assembly DNI parts that are required
optionset = set(["ADNI"])

bom = BOM.BOM("../hermeslite.xml", optionset=optionset)

pre = """\\section*{Hermes-Lite 2.0build8 BOM}
Standard Build - \\today"""

bom.LaTeXPrint(pre, ['Mouser', 'Digi-Key'])
示例#2
0

import BOM

optionset = set(['DNI'])

## 'NOASSEMBLY' to include parts needed by not put on by assembly house

bom = BOM.BOM("../radioberry-juice.xml",optionset=optionset)


bom.CSVAssemblyPrint(['Mouser','Digi-Key'])


示例#3
0

import BOM

optionset = set([])

## 'NOASSEMBLY' to include parts needed by not put on by assembly house

bom = BOM.BOM("../n2adr.xml",optionset=optionset)

pre = """\\section*{N2ADR Filter Board E5 BOM}
Assembly Build - \\today"""

bom.LaTeXAssemblyPrint(pre,['Mouser','Digi-Key'])


示例#4
0
import BOM

optionset = set(['DNI'])

## 'NOASSEMBLY' to include parts needed by not put on by assembly house

bom = BOM.BOM("../radioberry-preamp.xml", optionset=optionset)

bom.CSVAssemblyPrint(['Mouser', 'Digi-Key'])
示例#5
0

import BOM

bom = BOM.BOM("../n2adr.xml")

bom.OctoPartUpdatePrices()
示例#6
0
 def test_answer_more_BOM_inputs(self, mock_input):
     self.assertEqual(BOM.BOM([['System_Name']]), ([[
         'System_Name'
     ], ['case', 'provides protection from exterior elements', 50, 15, 0
         ], ['screen', 'provides visual', 50, 15, 1]]))
示例#7
0

import BOM

bom = BOM.BOM("../hermeslite.xml")

bom.OctoPartUpdatePrices()
示例#8
0
 def test_answer_semi_fail_inputs(self, mock_input):
     self.assertEqual(BOM.child_data(['hi', 'world', 'foo']), (2))
示例#9
0
 def test_answer_valid_inputs(self, mock_input):
     self.assertEqual(BOM.BOM([['System_Name']]), ([[
         'System_Name'
     ], ['case', 'provides protection from exterior elements', 50, 15, 0]]))
示例#10
0
 def test_answer_valid_inputs(self, mock_input):
     self.assertEqual(BOM.child_data(['hi', 'world', 'foo']), (1))
示例#11
0
 def test_answer_semi_fail_inputs(self, mock_input):
     self.assertEqual(
         BOM.artifact(),
         (['case', 'provides protection from exterior elements', 50, 15
           ], False))
示例#12
0

import BOM

bom = BOM.BOM("../radioberry.xml")

bom.OctoPartUpdatePrices()
示例#13
0
import BOM

optionset = set([
    'NOSWCLK', 'REGPA', 'PA', 'LVDS25', 'ETH25', 'ETH', 'VERSA', 'VBIAS',
    'VOP', 'RXLPF', 'RXNPOL', 'TXLPF', 'TXPREAMP', 'TXSW', 'TXLP', 'LED',
    'FRONTIO', 'ADC', 'THERMAL', 'PATR', 'EXTPTT', 'EXTFILTER', 'VERSAOSC',
    'CASE', 'PROGRAMMER'
])

## 'NOASSEMBLY' to include parts needed by not put on by assembly house

bom = BOM.BOM("../vswr.xml", optionset=optionset)

pre = """\\section*{VSWR Module beta1 BOM}
Assembly Build - \\today"""

bom.LaTeXAssemblyPrint(pre, ['Mouser', 'Digi-Key'])
示例#14
0
 print('Nice to meet you', user_information.name)
 print('It seems that you are from', user_information.insitution)
 print('Your advisor is', user_information.advisor)
 print('You accessed this package on', user_information.date)
 
 adding_products = True
 global_BOM = []
 
 while adding_products == True:
     
     system_information = initial.system_questions()
   
     print('')
     print('The product you are adding is: ',system_information[0])
 
     component_BOM = BOM.BOM([[system_information[0]]])
     
     end_prompt = []
     while end_prompt != 'yes' and end_prompt != 'no':
             
         end_prompt = input('Are you adding another Product?: ')
         
         if end_prompt == 'no':
             print('Thank you for using PyDamp')
             print('This session ended at: ',datetime.datetime.now().strftime('%c'))
             adding_products = False
             global_BOM.append(component_BOM)
         elif end_prompt == 'yes':
             adding_products == True
             global_BOM.append(component_BOM)