Skip to content

Commit

Permalink
Merge branch 'PR_precommit' of github.com:cryobiogeo-projects/snow-sp…
Browse files Browse the repository at this point in the history
…ectral-albedo-emulator into PR_precommit
  • Loading branch information
AdrienWehrle committed Dec 2, 2024
2 parents 1bf9f6d + c74fde5 commit 7b496ad
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
9 changes: 0 additions & 9 deletions app/Intro.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@authors: Adrien Wehrlé (University of Zurich), Lou-Anne Chevrollier (Aarhus University)
"""


import streamlit as st

st.write("# Welcome to Snowlaps! 👋 ❄️ ")
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions snowlaps/snowlaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class SnowlapsEmulator:
def __init__(
self,
emulator_path: str = "./data/emulator/mlp_snw_alg_3.h5",
emulator_path: str = "./data/emulator/snowlaps_emulator_v1.h5",
scaler_path: str = "./data/scaler/minmax_scaler.save",
) -> None:
"""
Expand Down Expand Up @@ -57,7 +57,7 @@ def load_emulator(self, emulator_path: str) -> tuple:

emulator = tf.keras.models.load_model(emulator_path)

if emulator_path == "./data/emulator/mlp_snw_alg_3.h5":
if emulator_path == "./data/emulator/snowlaps_emulator_v1.h5":
emulator_wavelengths = np.arange(295, 2415, 10)
return (emulator, emulator_wavelengths)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_snowlaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class TestSnowlapsEmulator:

my_emulator = SnowlapsEmulator()

emulator_path = "./data/emulator/mlp_snw_alg_3.h5"
emulator_path = "./data/emulator/snowlaps_emulator_v1.h5"

scaler_path = "./data/scaler/minmax_scaler.save"

Expand Down

0 comments on commit 7b496ad

Please sign in to comment.