Skip to content

Commit

Permalink
no logging
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Apr 30, 2024
1 parent 3068482 commit 6c0e416
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions montara/catalogsampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,22 @@ def CatalogRow(config, base, name):
base['_catalog_sampler_index'] = index
base['_catalog_colnames'] = colnames
base['_catalog_used_rngnum'] = config.get("rng_num", None)

# FIXME
print(
"sampling catalog row info: %s %s %s %s %s" % (
index,
index_key,
base['_catalog_row_data_catalog_row_ind'],
config.get("rng_num", None),
"\n\n\n",
),
flush=True,
)
else:
if base['_catalog_used_rngnum'] != config.get("rng_num", None):
raise ValueError("Catalog sampler rng num changed from %s to %s!" % (
base['_catalog_used_rngnum'], config.get("rng_num", None)
))

print(
"sampling catalog row info: %s %s %s %s" % (
index,
index_key,
base['_catalog_row_data_catalog_row_ind'],
config.get("rng_num", None),
),
flush=True,
)

return base['_catalog_row_data'], base['_catalog_colnames']


Expand Down

0 comments on commit 6c0e416

Please sign in to comment.