add argument to enable to create a bucket

also fo t.py
This commit is contained in:
2025-05-21 09:59:12 +02:00
parent dd571fc3ea
commit 7225dcbe19
2 changed files with 4 additions and 4 deletions

View File

@@ -21,10 +21,10 @@ Usage:
"""
def main(dbname=None):
def main(dbname=None, access='write'):
# egen = EventStream(ScanReply(), ScanStream(), n=NicosStream('localhost:14002'))
egen = EventStream(ScanReply(), ScanStream())
db = SEHistory(dbname, access='write')
db = SEHistory(dbname, access=access)
db.enable_write_access()
host = socket.gethostname().split('.')[0]