Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
capocchi committed Nov 18, 2022
1 parent ae71ddc commit b93effe
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Binary file removed Domain/Web/WebPageCreator.amd
Binary file not shown.
2 changes: 1 addition & 1 deletion PropertiesGridCtrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ def SelectProp(self, evt):

### for .amd or .cmd
if model.isAMD():
wcd = _('Atomic DEVSimPy model (*.amd)|*.amd|*.cmd|All files (*)|*')
wcd = _('Atomic DEVSimPy model (*.amd)|*.amd|All files (*)|*')
elif model.isCMD():
wcd = _('Coupled DEVSimPy model (*.cmd)|*.cmd|All files (*)|*')
elif model.isPY():
Expand Down
20 changes: 10 additions & 10 deletions ZipManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,16 @@ def Update(self, replace_files:[str]=[])->None:
#sys.stdout.write("%s unknown\n"%(fn))

### try to rewrite not replaced files from original zip
try:
info_list = zin.infolist()
for item in info_list:
s = os.path.basename(item.filename)
if s not in map(os.path.basename, replace_files) and info_list.index(item) not in exclude_file:
buffer = zin.read(item.filename)
zout.writestr(item, buffer)
sys.stdout.write("%s rewrite\n"%(item.filename))
except Exception as e:
sys.stdout.write("%s not updated\n"%(self.fn))
#try:
info_list = zin.infolist()
for item in info_list:
s = os.path.basename(item.filename)
if s not in map(os.path.basename, replace_files) and info_list.index(item) not in exclude_file:
buffer = zin.read(item.filename)
zout.writestr(item, buffer)
sys.stdout.write("%s rewrite\n"%(item.filename))
#except Exception as e:
# sys.stdout.write("%s not updated\n"%(self.fn))

### close all files
zout.close()
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ chart_studio #>= 1.0.0
matildapeak-guesstag >= 2018.2

# plugins\state_trajectory.py: 26
matplotlib >= 3.1.1
matplotlib

# PreferencesGUI.py: 6
#notipy >= 1.0.0
Expand All @@ -131,7 +131,7 @@ matplotlib >= 3.1.1
# PlotGUI.py: 35
# Utilities.py: 49
# test_plotly.py: 5
numpy <= 1.17.2
numpy

# DEVSKernel\PyPDEVS\pypdevs221\src\templates\tracer.py: 1
#package-generator >= 0.0.1
Expand Down

0 comments on commit b93effe

Please sign in to comment.