问题标签 [propagation]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1562 浏览

sql-server - SSIS 阻止警告传播

我在包的控制流中的 Foreach 循环容器中运行了一个脚本。

在脚本中,我发出警告,然后成功退出

我已将系统传播变量全部设置为 false。

还尝试将 Package 属性 DisableEventHandlers 设置为 True。

变量

但是,仍然按以下顺序抛出重复的警告消息:

  1. 脚本
  2. Foreach 循环容器
  3. 包裹

我可以将每个事件记录为信息而不是警告......但我不想记录所有信息。记录所有警告更加现实。

0 投票
3 回答
93 浏览

python - Python: operation being unexpectedly propagated along parent lists

I am inserting and removing elements from a list that has been copied from another one I want to preserve unchanged. However, after applying the operations to the former, the later results also changed. How can I avoid that?

This is an example of what is happening:

I do not understand why the operation propagates over the parent list. How can I avoid that? Should I save the list as an arrange, or should I create the list copy by using a loop?

0 投票
0 回答
242 浏览

python - Python Turtle Graphics with Geometry Propogation

I am trying to make the window my turtle graphics run in have geometry propagation, but when I have the following code:

I get two windows, one with geometry propagation and no graphics, and one with graphics and no propagation.

Any help is appreciated.

0 投票
1 回答
25 浏览

objective-c - Included category propagates to other included files?

So, basically here's what I want to do. I'm testing a class and in order to do that I want to redefine "today" (or "now"), meaning that I can test date transitions and other related properties simply by stating, say, "tomorrow is now" and then write my asserts.

My idea is to put a custom Test category on NSDate (NSDate+Test). But, at this moment I'm no longer sure how and where that category will propagate. I mean, will my class-under-test (that uses NSDate) automatically start to use NSDate+Test?

Just to illustrate:

0 投票
1 回答
63 浏览

spring - @Transactional REQUIRED 中的第二个 tx 打破了第一个?

我不太清楚@Transactional 与传播=必需的行为。我在网上经常看到的一个例子是这样的:

我读到的是,当调用 call2() 时,因为传播策略是必需的,所以它使用“现有事务(如果可用)”,“因为 call1() 打开了一个事务,所以 call2() 将继续使用那个”。

我的问题是,调用 call1() 时, call1() 末尾的 tx 代理代码(通过 Spring 的 AOP 添加)不会关闭事务吗?如果没有,那么它不关闭现有 tx 的关键是什么?例如,如果我在两者之间调用了一个非事务性方法:

在这种情况下, call2() 是否仍然在 call1() 开始的 tx 中被调用?

无论如何,在第一种情况下(call1() 和 call2() 被背靠背调用),如果 call2() 抛出 runtimeException,那么整个 tx 会回滚。这对于 call1() 的声明来说变得相当意外,因为它声明它的整个方法应该一起失败或一起成功,但是现在它的所有代码都成功了,但是 tx 被回滚(由于 call2() 中的一些外部异常)),这不与它自己的声明相矛盾吗?

谢谢杨

0 投票
4 回答
11190 浏览

matlab - 两步菲涅耳衍射

我写了一个简短的 matlab 脚本文件,假设运行菲涅耳的传播(衍射),这样给定某个输入字段 U0,它会告诉您该字段在距离 z0 后的样子。我将结果与教科书的结果进行了比较,看来我的程序运行良好。问题是如果我尝试采取两个传播步骤而不是一个。即,我没有对程序进行一次迭代来传播距离 z0,而是对程序进行两次迭代来传播距离 z0/2。然后我完全胡说八道,我无法弄清楚问题出在哪里。任何建议都将被非常感激地接受。这是代码:

0 投票
1 回答
4902 浏览

spring - 春季事务管理 Propagation.REQUIRES_NEW 不起作用

我的服务类。

}

从我的控制器,服务方法 blockAllDevices() 被调用。addToLogTables() 方法被标记为 Propergation.REQUIRED_NEW,但问题在于 addToLogTables() 方法没有创建新事务并且正在使用现有事务。

我想做的是, addToLogTables() 方法上的事务应该在执行 smsService.sendSms() 方法之前提交。

我的问题在这里,如果事务提交失败,在方法 addToLogTables() 方法上,它不应该执行 smsService.sendSms() 方法。

0 投票
1 回答
439 浏览

spring - 一个方法上的Spring注解@Transactional(Propagation.REQUIRED),它的行为如何?

我已阅读有关 Spring 的官方文档

@Transactional(传播。需要)

注释,但仍有一些疑问。我将向您展示一个关于我认为它的行为方式的示例:

首次服务

二次服务


从 Spring Controller 调用 MyServiceImpl 类:

  1. 如果我调用saveItem(),将创建一个新的物理和逻辑事务,对吗?

  2. 如果我从控制器对该服务进行两次调用,一次调用saveItem()和下一次调用updateItem(),Spring 将为每个方法创建两个物理不同的事务,对吗?

  3. 如果我调用deleteItem(),将只创建一个物理事务,因为它会在调用 deleteItem 时打开一个事务,但是从这个方法的内部调用otherService.checkItem()将重用第一个物理事务,对吗?

0 投票
0 回答
1136 浏览

matlab - Matlab:室内平面图,射频传播

我是 matlab 新手,我的目标对我来说似乎有点挑战。希望我能从你们那里得到一些指导。

基本上我有一个 2D 室内办公室平面图,我想将我的射频传播模型映射到地图上。我在这个论坛上看到了关于地图上热量产生的问题,但不幸的是它没有给我带来任何结果。

平面图图像的热图生成器

关于我希望达到的目标的一点解释。首先,在我的地图(带有网格点)上,我应该能够绘制一些 RF 接入点。

其次,我希望在每个接入点上映射我的射频传播模型。棘手的部分是,传播不是各向同性的,并且有许多由不同材料制成的平面图墙壁引起的规律性。我的模型基于接入点之间的距离和接收信号强度。它非常像下图。

在此处输入图像描述

这在matlab上可行吗?如果是,我应该注意哪些步骤或关键术语?

0 投票
1 回答
291 浏览

neural-network - iRPROP+ 多层感知器

大家好这是我的 MLP 的 iRPROP+ 算法的代码。当我尝试训练我的网络时,标准偏差减少了 1500 个 epoch(如此缓慢:从 ~0.5 到 0.4732),但它突然开始增加。有人可以说我做错了什么吗?