Skip to content

Commit

Permalink
corrected index from 0 to 1 in topo_map_sim
Browse files Browse the repository at this point in the history
  • Loading branch information
joelfiddes committed Aug 14, 2024
1 parent 59f9d99 commit 777a59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TopoPyScale/sim_fsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def topo_map_sim(ds_var, n_decimals=2, dtype='float32', new_res=None):
# Build a "lookup array" where the index is the original value and the value
# is the reclassified value. Setting all of the reclassified values is cheap
# because the memory is only allocated once for the lookup array.
nclust = ds_var.shape[0]
nclust = ds_var.shape[1]
lookup = np.arange(nclust, dtype=dtype)

# replicate looup through timedimens (dims Time X sample )
Expand Down

0 comments on commit 777a59e

Please sign in to comment.