Skip to content

Commit 4ae553f

Browse files
Merge branch 'dev'
2 parents 9e9914a + 4fba514 commit 4ae553f

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

.github/actions/SetupEnvironment/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ runs:
2929
shell: bash -el {0}
3030
run: |
3131
mamba env update -n hypercp -f environment.yml
32-
mamba install --channel=conda-forge pyinstaller==6.6
32+
mamba install --channel=conda-forge pyinstaller
3333
3434
- name: 📸 Capture Environment
3535
if: runner.os != 'Windows'
@@ -43,7 +43,7 @@ runs:
4343
shell: pwsh
4444
run: |
4545
mamba env update -n hypercp -f environment.yml
46-
mamba install --channel=conda-forge pyinstaller==6.6
46+
mamba install --channel=conda-forge pyinstaller
4747
4848
- name: 📸 Capture Environment [Windows]
4949
if: runner.os == 'Windows'

Main.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,10 +614,16 @@ def __init__(
614614
super().__init__()
615615

616616
# Confirm that core data files are in place. Download if necessary.
617-
fpfZhang = os.path.join(CODE_HOME, "Data", "Zhang_rho_db.mat")
617+
fpfZhang = os.path.join(CODE_HOME, "Data", "Zhang_rho_db_expanded.mat")
618618
if not os.path.exists(fpfZhang):
619619
Utilities.downloadZhangDB(fpfZhang, force=True)
620620

621+
# Confirm that core data files are in place. Download if necessary.
622+
# fpfZhangLUT = os.path.join(CODE_HOME, "Data", "Zhang_rho_LUT.nc")
623+
fpfZhangLUT = os.path.join(CODE_HOME, "Data", "Z17_LUT_v2.nc")
624+
if not os.path.exists(fpfZhangLUT):
625+
Utilities.downloadZhangLUT(fpfZhangLUT, force=True)
626+
621627
# Create a default main config to be filled with cmd argument
622628
# to avoid reading the one generated with the GUI
623629
MainConfig.createDefaultConfig("cmdline_main.config", VERSION)

Source/ProcessInstrumentUncertainties.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ def ClassBased(self, node: HDFRoot, uncGrp: HDFGroup, stats: dict[str, np.array]
339339
ES_unc = es_unc / es
340340
LI_unc = li_unc / li
341341
LT_unc = lt_unc / lt
342+
# if any(ES_unc < 0):
343+
# print('halt and catch fire')
342344

343345
# interpolation step - bringing uncertainties to common wavebands from radiometric calibration wavebands.
344346
data_wvl = np.asarray(list(stats['ES']['std_Signal_Interpolated'].keys()),
@@ -2269,4 +2271,4 @@ def update_cal_rad(PANEL, S12_sl_corr, LAMP, int_time_t0, t1):
22692271
ind_nocal = ind_nan | ind_zero
22702272
updated_radcal_gain[
22712273
ind_nocal == True] = 1 # set 1 instead of 0 to perform calibration (otherwise division per 0)
2272-
return updated_radcal_gain
2274+
return updated_radcal_gain

Tests/test_sample_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def setUp(self):
4646
self.cfg_filename = os.path.join(root, "Config", "sample_SEABIRD_SOLARTRACKER.cfg")
4747
self.files = sorted(glob.glob(os.path.join(self.path_to_data, 'RAW', f'*.RAW')))
4848

49-
def test_pysas(self):
49+
def test_seabird_solar_tracker(self):
5050
from Main import Command
5151
os.chdir(root) # Need to switch to root as path in Config files are relative
5252
for file in self.files:

environment.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88
- pyqt=5.15
99
- requests=2.28
1010
- tqdm=4.65
11-
- numpy=1.23
11+
- numpy=1
1212
- h5py=3.7
1313
- pytz=2022.7
1414
- matplotlib
@@ -20,10 +20,11 @@ dependencies:
2020
- netcdf4=1.6
2121
- j6s
2222
- pytables=3.7
23-
- pyspectral=0.12
23+
- pyspectral=0.12.5
2424
- pyqtgraph
2525
- ocdb-client
2626
- pip
2727
- pip:
28+
- comet_maths<=1.0.3
2829
- punpy
2930
- fpdf2

0 commit comments

Comments
 (0)