Skip to content

Instantly share code, notes, and snippets.

View aquaresima's full-sized avatar

Alessio Quaresima aquaresima

View GitHub Profile
exp_params = helper.get_parameter_set_for_experiment(yaml_cfg_path, exp_params_path, exp_params_idx)
pprint(exp_params)
AttributeError Traceback (most recent call last)
Cell In[24], line 1
----> 1 exp_params = helper.get_parameter_set_for_experiment(yaml_cfg_path, exp_params_path, exp_params_idx)
2 pprint(exp_params)
File ~/Documents/Research/projects/bio-seqlearn/models/tripod/../../libs/conic_tasks/examples/run_example.py:111, in get_parameter_set_for_experiment(yaml_cfg_path, exp_params_path, exp_params_idx)
92 def get_parameter_set_for_experiment(yaml_cfg_path, exp_params_path, exp_params_idx):
exp_params = helper.get_parameter_set_for_experiment(yaml_cfg_path, exp_params_path, exp_params_idx)
pprint(exp_params)
########################################################
TypeError Traceback (most recent call last)
Cell In[16], line 2
1 # this is reproducible
----> 2 sequencer, input_dict = helper.load_input_helper(yaml_cfg_path, exp_params_path, exp_params_idx)
@aquaresima
aquaresima / zotero_tags_lowercase.py
Created June 19, 2023 11:36
Script to make all zotero tags lowercase
# The script below will update ALL your tags except those in the skip_tags list. Use it with caution.
# It also splits all tags that have more than a word. It saves both the old tag and the new one.
# That is, you have ("my tag word"), and you get ("my","tag", "word", "my tag word").
#The API_KEY and LIBRARY_ID are private. See the documentation.api_key = "xxxxx"
# Documentation: https://pyzotero.readthedocs.io/en/latest/
# Original thread: https://forums.zotero.org/discussion/92493/any-way-to-switch-all-tags-to-all-lower-case-or-ignore-case-in-tags
library_id = 0000000
library_type = "user"
from pyzotero import zotero