Skip to content

Commit e22a691

Browse files
[fix] use micromamba to find path
1 parent 7be5dd2 commit e22a691

File tree

1 file changed

+3
-2
lines changed
  • notebooks/courses/environmental-remote-sensing/src/envrs

1 file changed

+3
-2
lines changed

notebooks/courses/environmental-remote-sensing/src/envrs/corr_plots.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_git_repo_name():
3636
def get_conda_env_path():
3737
conda_prefix = Path("../.conda_envs")
3838
result = subprocess.run(
39-
["conda", "info", "--json"], # noqa
39+
["micromamba", "env", "list", "--json"], # noqa
4040
check=False,
4141
capture_output=True,
4242
text=True,
@@ -122,7 +122,8 @@ def step_corr(x):
122122
y1.plot(y=var1, ax=ax1)
123123
y2.shift(x).plot(y=var2, c="orange", ax=ax1)
124124
res = pd.Series(
125-
smt.ccf(y1.values, y2.values, nlags=length), index=df.index[:length]
125+
smt.ccf(y1.values, y2.values, nlags=length),
126+
index=df.index[:length], # noqa
126127
)
127128
plt.title(f"{var1} and {var2} at lag={x}")
128129

0 commit comments

Comments
 (0)