Skip to content

Commit 44a7905

Browse files
author
sreeder
committed
fix identiy insert issue when saving, issues #225, #226
1 parent 68ff94d commit 44a7905

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

odmtools/odmservices/edit_service.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def updateSeries(self, var=None, method=None, qcl=None, is_new_series=False):
506506

507507

508508
#logger.debug("series.data_values: %s" % ([x for x in series.data_values]))
509-
509+
dvs.drop('ValueID', axis=1, inplace=True)
510510
return series, dvs
511511

512512
def save(self):
@@ -533,6 +533,7 @@ def save_as(self, var=None, method=None, qcl=None):
533533
:return:
534534
"""
535535
series, dvs = self.updateSeries(var, method, qcl, is_new_series=True)
536+
536537
if self._series_service.save_new_series(series, dvs):
537538
logger.debug("series saved!")
538539
return True

profiler/Profiler Instructions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ install from source:
44
```pip install runsnakerun```
55

66
run the following command in the console:
7-
```python -m cProfile -o profile.dat ..\odmtools\ODMToolsPython.py```
7+
```python -m cProfile -o profile.dat ../ODMTools.py```
88

99
ODM Tools python will run. Run the code you want to profile. i.e. click buttons
1010
When you close odm tools python the code will also close and generate the .dat file

0 commit comments

Comments
 (0)