Skip to content

Commit 9d7bf93

Browse files
committed
Merge remote-tracking branch 'origin/elab_metadata_integration' into develop
2 parents 86be2a6 + fd2b313 commit 9d7bf93

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

src/specsanalyzer/logging.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ def setup_logging(
5050
user_log_path = DEFAULT_LOG_DIR
5151
try:
5252
os.makedirs(user_log_path, exist_ok=True)
53-
log_file = os.path.join(user_log_path, f"sed_{datetime.now().strftime('%Y-%m-%d')}.log")
53+
log_file = os.path.join(
54+
user_log_path,
55+
f"specsanalyzer_{datetime.now().strftime('%Y-%m-%d')}.log",
56+
)
5457

5558
# Create file handler and set level to debug
5659
file_handler = logging.FileHandler(log_file)

src/specsscan/config/example_config_FHI.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ units:
3838

3939
metadata:
4040
# URL of the elabFTW instance API interface
41-
elab_url: "https://__elabftw_host__/api/v2"
41+
# elab_url: "https://__elabftw_host__/api/v2"
4242
# URL of the epics archiver request engine
43-
archiver_url: "http://__epicsarchiver_host__:17668/retrieval/data/getData.json?pv="
43+
# archiver_url: "http://__epicsarchiver_host__:17668/retrieval/data/getData.json?pv="
4444
# dictionary containing axis names with Epics channels to request from the EPICS archiver
4545
epics_channels:
4646
tempa: "trARPES:Carving:TEMP_RBV"

tests/test_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_logger_has_base_logger(logger_):
6868

6969
def test_logger_creates_logfile(tmp_path):
7070
logger = setup_logging("test_logger", set_base_handler=True, user_log_path=tmp_path)
71-
log_file = os.path.join(tmp_path, f"sed_{datetime.now().strftime('%Y-%m-%d')}.log")
71+
log_file = os.path.join(tmp_path, f"specsanalyzer_{datetime.now().strftime('%Y-%m-%d')}.log")
7272
assert os.path.exists(log_file)
7373
with open(log_file) as f:
7474
assert f.read() == ""

tutorial/3_specsscan_conversion_to_NeXus.ipynb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"outputs": [],
126126
"source": [
127127
"config = {\"nexus\":{\"definition\": \"NXmpes_arpes\"}, \"spa_params\":{\"crop\":True, \"ek_range_min\":0.07597844332538181, \"ek_range_max\":0.9117413199045858, \"ang_range_min\":0.16453159041394336, \"ang_range_max\":0.8840087145969499,}}\n",
128-
"sps = SpecsScan(config=config, user_config=\"../src/specsscan/config/example_config_FHI.yaml\")\n",
128+
"sps = SpecsScan(config=config, user_config=\"../src/specsscan/config/example_config_FHI.yaml\", system_config={})\n",
129129
"path = \"../tests/data/\" # Path to the test data set"
130130
]
131131
},
@@ -234,7 +234,7 @@
234234
],
235235
"metadata": {
236236
"kernelspec": {
237-
"display_name": "Python 3",
237+
"display_name": ".venv",
238238
"language": "python",
239239
"name": "python3"
240240
},
@@ -248,12 +248,7 @@
248248
"name": "python",
249249
"nbconvert_exporter": "python",
250250
"pygments_lexer": "ipython3",
251-
"version": "3.8.12"
252-
},
253-
"vscode": {
254-
"interpreter": {
255-
"hash": "a164666994e9db75450cd7016dd7e51d42ea6e7c1e5e8017af1f8068ca906367"
256-
}
251+
"version": "3.12.8"
257252
}
258253
},
259254
"nbformat": 4,

0 commit comments

Comments
 (0)