Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SST1RSoXS: error if conflicting constructor arguments are provided #80

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/PyHyperScattering/SST1RSoXSDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ def __init__(
self.c = from_profile("rsoxs", **catalog_kwargs)
else:
self.c = catalog
if use_chunked_loading:
raise SyntaxError('use_chunked_loading is incompatible with externally supplied catalog. when creating the catalog, pass structure_clients = "dask" as a kwarg.')
if len(catalog_kwargs) != 0:
raise SyntaxError('catalog_kwargs is incompatible with externally supplied catalog. pass those kwargs to whoever gave you the catalog you passed in.')
self.dark_subtract = dark_subtract
self.dark_pedestal = dark_pedestal
self.exposure_offset = exposure_offset
Expand Down
Loading