Modify dfs2 items not working

Open
#38 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Read tests/examples_dfs2.py at lines 47-58 and reproduce the reported behavior with the DFS2 item update flow. Trace why the file date changes while eumUnit and eumItem remain unchanged, then verify that the items can be updated without rewriting the 100GB-plus files.

Written by the indexing model from the issue text.

Description

Hi.

I have a bunch of files with wrong item type (I did not make them). I need to re-write the eumUnit and eumItem but re-writing the files is not an option since each file is +100GB.

I am currently using DataUtility which takes like a second but I need to click in each item of each file (it is 4 items and 50 files, so lots of clicks).

I tried this, but does not work. File date is updated, but the items remain unchanged.

https://github.com/DHI/mikecore-python/blob/bdccb538c21dc34b929686fce32a243f2b0b480c/tests/examples_dfs2.py#L47-L58

is there any suggestion?

Dominant language
Python
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DHI/mikecore-python

All issues in DHI/mikecore-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.