Skip to content

Commit

Permalink
added power unit, mode and upper limit options to selection
Browse files Browse the repository at this point in the history
  • Loading branch information
JymBone5 committed Jul 24, 2024
1 parent e896eb7 commit 6f28400
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/SiEPIC_TestCreator/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

class MYAPP:
version = '0.1.17'
version = '0.1.20'
pypi_token = 'pypi-AgEIcHlwaS5vcmcCJGU5ZWI5NWZiLTIzODUtNDMyNi05NGQ3LWNhZWU5NWI3ZWYzMwACGlsxLFsic2llcGljLXRlc3RjcmVhdG9yIl1dAAIsWzIsWyIzNDFlYzM3OC1jYmE2LTQxMzYtYjhhZi1mN2U4ZDE5MjEzNjAiXV0AAAYgsgF4EVG7qeB7ED0QsM1jeZxjHJxBEGU39NHJaAlyQZk'
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def __init__(self, ps):
'Power': 1,
'Power_info': 'unit dBm',
'Power_bounds': [-70, 10],
'Power Unit': 'dBm',
'Power Unit_info': 'choose between dBm and mW',
'Power Unit_options': ['dBm', 'mW'],
'Sweep Speed': 20,
'Sweep Speed_info': 'controls the speed of the sweep, if yaml fails time execution test increase this',
'Upper Limit': 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def __init__(self, ps):
'Power': 1,
'Power_info': 'unit dBm',
'Power_bounds': [1200, 1400],
'Power Unit': 'dBm',
'Power Unit_info': 'choose between dBm and mW',
'Power Unit_options': ['dBm', 'mW'],
'Sweep Speed': 20,
'Sweep Speed_info': 'controls the speed of the sweep, if yaml fails time execution test increase this',
'Upper Limit': 0,
Expand Down
3 changes: 3 additions & 0 deletions app/SiEPIC_TestCreator/sequences/DREAM/wavelength_sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ def __init__(self, ps):
'Power': 1,
'Power_info': 'unit dBm',
'Power_bounds': [-70, 100],
'Power Unit': 'dBm',
'Power Unit_info': 'choose between dBm and mW',
'Power Unit_options': ['dBm', 'mW'],
'Sweep Speed': 'auto',
'Sweep Speed_info': 'controls the speed of the sweep, if yaml fails time execution test increase this',
'Sweep Speed_options': ['20nm', '10nm', 'auto'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ def __init__(self, ps):
'Power': 1,
'Power_info': 'Please enter the power in dBm',
'Power_bounds': [-70, 10],
'Power Unit': 'dBm',
'Power Unit_info': 'choose between dBm and mW',
'Power Unit_options': ['dBm', 'mW'],
'Sweep Speed': 'auto',
'Sweep Speed_info': 'controls the speed of the sweep, if yaml fails time execution test increase this, options are 20nm, 10nm, auto',
'Sweep Speed_options': ['20nm', '10nm', 'auto'],
Expand All @@ -37,6 +40,12 @@ def __init__(self, ps):
'Initialrange': '-20',
'Initialrange_info': 'default -20',
'Initialrange_bounds': [-100, 100],
'Upper Limit': 0,
'Upper Limit_info': 'set to 0',
'Upper Limit_bounds': [-30, 0],
'Mode': 'CONT',
'Mode_info': 'Set Mode of laser, default is CONT',
'Mode_options': ['CONT', 'STEP'],
'Channel A': 'True',
'Channel A_info': 'Please enter True to use Channel A if not enter False',
'Channel A_options': ['True','False'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ def __init__(self, ps):
'Power': 1,
'Power_info': 'unit dBm',
'Power_bounds': [-70, 10],
'Power Unit': 'dBm',
'Power Unit_info': 'choose between dBm and mW',
'Power Unit_options': ['dBm', 'mW'],
'Sweep Speed': 'auto',
'Sweep Speed_info': 'controls the speed of the sweep, if yaml fails time execution test increase this, options are 20nm, 10nm, auto',
'Sweep Speed_options': ['20nm', '10nm', 'auto'],
Expand All @@ -37,6 +40,12 @@ def __init__(self, ps):
'Initialrange': '-20',
'Initialrange_info': 'default -20',
'Initialrange_bounds': [-100, 100],
'Upper Limit': 0,
'Upper Limit_info': 'set to 0',
'Upper Limit_bounds': [-30, 0],
'Mode': 'CONT',
'Mode_info': 'Set Mode of laser, default is CONT',
'Mode_options': ['CONT', 'STEP'],
'Channel A': 'True',
'Channel A_info': 'Please enter True to use Channel A if not enter False',
'Channel A_options': ['True','False'],
Expand All @@ -45,7 +54,7 @@ def __init__(self, ps):
'Channel B_options': ['True','False'],
'Voltages': '0, 1, 2',
'Voltages_info': 'Please enter voltages in units (V) in the form x1, x2, x3',
'Voltages_bounds': [-50, 50]
'Voltages_bounds': [-50, 50],
}
self.results_info = {
'num_plots': 1,
Expand Down
11 changes: 10 additions & 1 deletion app/SiEPIC_TestCreator/sequences/IDA/wavelength_sweep_ida.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def __init__(self, ps):
'Power': 1,
'Power_info': 'unit dBm',
'Power_bounds': [-70, 10],
'Power Unit': 'dBm',
'Power Unit_info': 'choose between dBm and mW',
'Power Unit_options': ['dBm', 'mW'],
'Sweep Speed': 'auto',
'Sweep Speed_info': 'controls the speed of the sweep, if yaml fails time execution test increase this, options are 20nm, 10nm, auto',
'Sweep Speed_options': ['20nm', '10nm', 'auto'],
Expand All @@ -35,7 +38,13 @@ def __init__(self, ps):
'RangeDec_bounds': [-100, 100],
'Initialrange': '-20',
'Initialrange_info': 'default -20',
'Initialrange_bounds': [-100, 100]
'Initialrange_bounds': [-100, 100],
'Upper Limit': 0,
'Upper Limit_info': 'set to 0',
'Upper Limit_bounds': [-30, 0],
'Mode': 'CONT',
'Mode_info': 'Set Mode of laser, default is CONT',
'Mode_options': ['CONT', 'STEP'],
}

self.results_info = {
Expand Down

0 comments on commit 6f28400

Please sign in to comment.