Skip to content
Snippets Groups Projects
Verified Commit 85596619 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

MAINT: roll-back some renaming changes (linkaheadadvancedtools)

parent c0fc1646
No related branches found
No related tags found
No related merge requests found
Pipeline #48438 failed
......@@ -79,7 +79,7 @@ Then sync the model:
.. code:: python
import linkahead as db
from linkaheadadvancedtools.models.parser import parse_model_from_json_schema
from caosadvancedtools.models.parser import parse_model_from_json_schema
model = parse_model_from_yaml("datamodel.yaml")
model.sync_data_model(noquestion=True)
......@@ -232,6 +232,6 @@ The solution is to create the RecordTypes, e.g. using the Python interface, as f
The data model is also included in the ``tools/query_template_datamodel.yml``
within this repository which can be imported into your database with ``python -m
linkaheadadvancedtools.models.parser --sync query_template_datamodel.yml`` (you need
caosadvancedtools.models.parser --sync query_template_datamodel.yml`` (you need
to have `LinkAhead Advanced User
Tools<https://pypi.org/project/linkaheadadvancedtools/>`__ installed and configured).
Tools<https://pypi.org/project/caosadvancedtools/>`__ installed and configured).
......@@ -32,7 +32,7 @@ from zipfile import ZipFile
import linkahead as db
import pandas as pd
from linkaheadadvancedtools.serverside import helper
from caosadvancedtools.serverside import helper
from linkahead import LinkAheadException, ConsistencyError, EntityDoesNotExistError
......@@ -81,14 +81,14 @@ def collect_files_in_zip(ids, table):
# Desired behavior: The script should go on with the other
# ids, but the user should be informed about the missing files.
# How should we do this?
logger = logging.getLogger("linkaheadadvancedtools")
logger = logging.getLogger("caosadvancedtools")
logger.error("Did not find Entity with ID={}.".format(
file_id))
raise e
savename = nc.get_unique_savename(os.path.basename(tmp.path))
val_file = helper.get_file_via_download(
tmp, logger=logging.getLogger("linkaheadadvancedtools"))
tmp, logger=logging.getLogger("caosadvancedtools"))
zf.write(val_file, savename)
......
......@@ -35,8 +35,8 @@ from datetime import datetime
import linkahead as db
import pandas as pd
from linkaheadadvancedtools.serverside.helper import get_argument_parser
from linkaheadadvancedtools.serverside.logging import configure_server_side_logging
from caosadvancedtools.serverside.helper import get_argument_parser
from caosadvancedtools.serverside.logging import configure_server_side_logging
MAXIMUMFILESIZE = 1e8
VALID_ENDINGS = [".csv", ".tsv", ".xls", ".xlsx"]
......@@ -135,7 +135,7 @@ if __name__ == "__main__":
args = parser.parse_args()
debug_file = configure_server_side_logging()
logger = logging.getLogger("linkaheadadvancedtools")
logger = logging.getLogger("caosadvancedtools")
db.configure_connection(auth_token=args.auth_token)
entity_id = args.filename
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment